Hi, I am trying to figure out how to use on header on my homepage (Header 7 – full logo and ads suppressed on desktop with toggle). And then use the default header with ads enabled on all other pages.
Different Headers on pages
http://screencast.com/t/xUFzgXJyLS
The above post and screenshot was very useful, but the header.php is not setup this way in Newsmag. Where could I implement the if-else statements in Newsmag to do this?
thanks!
-
This topic was modified 11 years by
fixthisbuildthat.
Hi,
Please edit this file and add if-else statements: http://screencast.com/t/5amz5U7QRtY
if (is_front_page()){
locate_template('parts/header/header-style-7.php', true);
} else {
locate_template('parts/header/header-style-1.php', true);
}
You have to use Header Style 1(default): http://screencast.com/t/I8TGdtJnBi
Homepage: http://screencast.com/t/AeA5uq3d5qTb
Post: http://screencast.com/t/utPevH8ryE5
Thanks!
The different headers are working great! The only other thing is I want to suppress the ad totally on the front page. I don’t want it showing up below the header on the front page in Style 7, but want the ads on all others pages in style 1.
I was doing this when using Style 7 by using the disable buttons in the theme panel, but it now disables them for Style 1 also. Is there a line of code I can add to just suppress ads on homepage header?
thanks!
Hi,
Use this css to hide the banner just on homepage: http://screencast.com/t/oSoi1P17
.home .td-header-style-7 .td-header-container .td-header-header {
display: none;
}
Thanks
How do I suppress the header Ad on just the home page using header style 5? thanks!
edit – sorry just realized I was on newsmag and not paper…
-
This reply was modified 7 years by
ironwoodrg.