Home › Forums › Pro Themes › Bizroot Pro › Header on Home page doesn't work
Tagged: header image
- This topic has 5 replies, 3 voices, and was last updated 7 years, 6 months ago by wensolutions.
-
AuthorPosts
-
November 7, 2016 at 12:38 pm #22741wichardluedjeParticipant
Hey on my home page the header doesn’t work. on every other page it works and just if i change homepage to another site it won’t work too.
http://www.baby-zahnpflege.de broken header
http://baby-zahnpflege.de/kundenmeinungen/ normal headerNovember 7, 2016 at 11:10 pm #22775wensolutionsKeymasterHello @wichardluedje,
We have inspected your website and it is seen that the “Header Image” in your front page is actually the featured slider.The theme does not display the title in page title and header image in the front page.
You can however set to display the title and link over the featured image in the slider by manually entering the title and the link from your Admin Dashboard > Appearance > Customize > Featured Slider > Slider Type and enter desired “Title” and “Link” in the respective fields below your selected image.
Hope this Helps,
Best Regards !!
December 7, 2016 at 11:46 am #25112remarkabilityParticipantI have the same issue – header image (a gavel on a book) does not display on the home page but does display on the other pages (i.e. about us). I have tried a number of things with no success. I am using Bizroot (not Pro) and the target URL is http://www.probateattorneybroward.com on a GoDaddy WordPress installation, with the hosting as a directory (PAB) under miamiprobateattorney.biz. I need to have the image show on the home page for desktop use especially. Thank you.
December 8, 2016 at 12:54 am #25129wensolutionsKeymasterHello @remarkability,
The theme by default does not have an option to display the header Image and page title in the home page by default.
However you can try creating a child theme and use some code customizarion in the theme to get the header image to display on the front page when the main slider is disabled.
To do so, you will first need to create a child theme, for information of creating and using child theme, see the link here : https://codex.wordpress.org/Child_Themes
You can also choose to use Child theme generator plugin to automate the process.After you have created and activated the child theme, paste in the following code block in your Child Theme’s functions.php file :
function bizroot_check_custom_header_status( $input ) { global $post; // Slider status. $featured_slider_status = bizroot_get_option( 'featured_slider_status' ); if ( is_front_page() && 'posts' === get_option( 'show_on_front' ) ) { $input = true; } else if ( is_front_page() && 'page' === get_option( 'show_on_front' ) && 'home-page' == $featured_slider_status ) { $input = false; } else if ( is_home() && ( $blog_page_id = bizroot_get_index_page_id( 'blog' ) ) > 0 ) { $values = get_post_meta( $blog_page_id, 'bizroot_theme_settings', true ); $disable_banner_area = isset( $values['disable_banner_area'] ) ? absint( $values['disable_banner_area'] ) : 0; if ( 1 === $disable_banner_area ) { $input = false; } } else if ( $post ) { if ( is_singular() ) { $values = get_post_meta( $post->ID, 'bizroot_theme_settings', true ); $disable_banner_area = isset( $values['disable_banner_area'] ) ? absint( $values['disable_banner_area'] ) : 0; if ( 1 === $disable_banner_area ) { $input = false; } } } else{$input = true;} return $input; }
This will now add the header in the front page while the slider is disabled in the theme.
Hope this Helps,
Best Regards !!
December 8, 2016 at 9:39 am #25148remarkabilityParticipantThank you. So the alternative I guess is to use a slider on the home page if I want a graphic?
December 8, 2016 at 10:17 pm #25190wensolutionsKeymasterHello @remarkability,
As per the current design / layout of the theme, you can choose to use the slider with a single page set in the slider for the image placement in the front page that acts as an header or choose to create a child theme approach as we have instructed and get the header show up in the front page while the slider is disabled.
Hope this helps,
Best Regards !!
-
AuthorPosts
- You must be logged in to reply to this topic.