Community Forums › Forums › Archived Forums › General Discussion › Beautiful-Pro Issues
Tagged: beautiful pro
- This topic has 4 replies, 2 voices, and was last updated 9 years, 1 month ago by jdweaze.
-
AuthorPosts
-
February 27, 2015 at 1:13 pm #142557jdweazeMember
I'm new to Genesis and I am completely confused...
My client wants a background image on all the pages which I did... but I have a footer widget that changes sizes and it keeps changes the background image... it's weird...
I'm very frustrated with this framework... but I'm trying to learn it.
Also how do you have the banner image only on the front page and the rest of the pages just have the nav bar?
http://www.thefireinsidemovie.com/
Thanks
http://www.thefireinsidemovie.com/February 27, 2015 at 5:16 pm #142606ᴅᴀᴠɪᴅMemberTo make the banner image only appear on the front page you can find this code in the functions.php file
//* Hook site header banner after header add_action( 'genesis_after_header', 'beautiful_site_header_banner' ); function beautiful_site_header_banner() { if ( ! get_background_image() ) return; echo '<div class="site-header-banner"></div>'; }
and change to
//* Hook site header banner after header // only if is front page add_action( 'genesis_after_header', 'beautiful_site_header_banner' ); function beautiful_site_header_banner() { if ( get_background_image() && is_front_page() ) { echo '<div class="site-header-banner"></div>'; } }
The extra condition means it will only appear on the front page.
I'm not sure what you mean about the background img/footer. From what I can see the background is full screen and fixed on every page. the footer has a background color which is semi transparent meaning you can see some of the background image through it, but the image is the same throughout. Maybe you already fixed whatever was happening?
I love helping creative entrepreneurs build epic things with WP & Genesis.
February 28, 2015 at 10:05 am #142662jdweazeMemberHmm... it didn't work...
this is the code that's currently there...
//* Hook site header banner after header
add_action( 'genesis_after_header', 'beautiful_site_header_banner' );
function beautiful_site_header_banner() {if ( ! get_background_image() )
return;echo '<div class="site-header-banner"></div>';
}
Was I supposed to change that code in the genesis framework or in the beautiful-pro child theme? I tried it in the child theme.
February 28, 2015 at 5:07 pm #142682ᴅᴀᴠɪᴅMemberIn the functions.php in your child theme. It should work, i set up a test site with beautiful pro installed and it worked fine. The background image will now only appear on the front page. What actually happened when you tried it? Did it go to a white screen? If so, you may have copied the code wrong.
I love helping creative entrepreneurs build epic things with WP & Genesis.
March 5, 2015 at 1:36 pm #143366jdweazeMemberYes it did go to a white screen... I had to go into the hosting and restore it from there... what did I do wrong? lol
I've got it on 2 sites,
http://www.changeyouthconference.com/
http://www.thefireinsidemovie.com/And on both I want the header to just show up on the home page.
I really appreciate your help.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.