Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to creare an additional front-page-8 in Altitude Pro?
Tagged: altitude, front page
- This topic has 8 replies, 4 voices, and was last updated 10 years, 7 months ago by
cubicle10.
-
AuthorPosts
-
April 3, 2015 at 4:55 am #146538
PassionVente
MemberHi There,
Is there an easy way to create one more front page, for instance front-page-8, in Altitude Pro?
Thanks for your help!
Cheers
Claude
http://www.plussept.chApril 3, 2015 at 8:54 am #146549saxisme
ParticipantHello PassionVente,
You would have to add in
functions.phpgenesis_register_sidebar( array( 'id' => 'front-page-8', 'name' => __( 'Front Page 8', 'altitude' ), 'description' => __( 'This is the front page 8 section.', 'altitude' ), ) );around line 244 - you will see all the widget areas from 1 to 7.
And in
front-page.phpaddgenesis_widget_area( 'front-page-8', array( 'before' => '<div id="front-page-8" class="front-page-8"><div class="image-section"><div class="flexible-widgets widget-area' . altitude_widget_area_class( 'front-page-8' ) . '"><div class="wrap">', 'after' => '</div></div></div></div>', ) );in the
function altitude_front_page_widgets().
Here you can add/change the classes you need or remove the image-section divBye,
April 3, 2015 at 9:02 pm #146617PassionVente
MemberHello Saxisme,
Thanks a lot... you're just amazing, you did all the code for me!
I just had to click & paste and it's working!
Thank you very much for your help, it was a very important topic for me!
Have a good day,
Cheers
Claude
April 4, 2015 at 10:08 am #146656saxisme
ParticipantYou're welcome 😉
You can mark the topic as solved - as reference for othersBye,
April 4, 2015 at 10:28 pm #146714PassionVente
MemberGood morning Saxisme,
Before I close the topic, would I dare to ask you a last question? 😉
When I add for instance a front-page-8 with the image-section div, how can I set the background image I would like to have? Of course in the menu appearance/customize I have no option to change the image of the new front page I added...
I'm sure it's again an easy one... for you!
Thanks in advance 🙂
Claude
April 5, 2015 at 12:47 am #146718Genesis Developer
MemberAdd this filter in your functions.php file
add_filter( 'altitude_images', 'gd_custom_bg' ); function gd_custom_bg( $arr ){ $arr[4] = '8'; return $arr; }
April 5, 2015 at 1:20 am #146719PassionVente
MemberWhen I add the filter in functions.php I get the option in the appearance menu/customize to change the picture of the front page 8. Then when I set an image obviously something happens (a kind of flash or refresh of the screen) however the image doesn't appears... I cleaned the cache, tried with another browser, still no image!
April 5, 2015 at 2:25 am #146724PassionVente
Member... sorry, I did something wrong 🙁
Everything is working perfectly, thanks a lot to you guys who helped me, it was really great! My site will soon look much better 🙂
Have an excellent week-end, thanks again.
Claude
April 24, 2015 at 9:37 am #149031 -
AuthorPosts
- The topic ‘How to creare an additional front-page-8 in Altitude Pro?’ is closed to new replies.