I have not activated the Newsmag theme yet. Im trying to do a lot of the customizing before it goes live. So it leads me to my question. I need to separate my homepage header from the header used by all the other pages. How do I do this? I have an ad code from my ad network one needs to be used for my homepage and needs to placed in the header. The other code needs to be placed in all the other pages and post header. How do I created two different headers? I notice when you click the header.php it has no header code in it. Where do I find the header for the style Newsmag I want to use?
Hi,
You can find header templates in parts > header – http://screencast.com/t/bbM68e3A You can create a condition depending in template that you use and add a condition to display “header ad” on your homepage and else used do_shortcode to display a custom ad(paste your code in Theme Panel > Ads). You can find out more details about conditional tags here – https://codex.wordpress.org/Conditional_Tags and use this code for your custom ad:
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?>
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
Thank you for the fast response. So I can put the script anywhere in the header and it will work or do I have to put it in between the <div> tags? Also can I use get_header() to tell the Page.php and Single.php which header to use? if so, I want to create a duplicate header for each one of the headers and name them header-style-1.0 what part do I put in between the () to make the header work, the style-1.0 or just 1.0?
Hi,
From version 1.8 of Newsmag also new documentation will be available and you will be able to create a new header style. Unfortunately the theme doesn’t have an option to display a different header on pages and you will need cusotm work.
Like I said above if you want to display header ad on homepage and a different ad(custom) on other pages you can try something like this: http://screencast.com/t/OMWziAGa2
Homepage – http://screencast.com/t/ngHHxChwgacA
Post page – http://screencast.com/t/4qo1NyLFhp
Thanks!
Hi,
Unfortunately Newsmag theme was initially designed at this width – 1021px – with an fixed grid layout, responsive as it is fluid and style for desktop/tables/mobile screens. So changing the width would not be easy as it needs changing the width value for all elements on pages and for this you would need custom work. Also on pages you can use full width row to display your add your banner/ad – http://screencast.com/t/0c0sCetT
If you have basic css/html experience and you want to do this for post pages please check this topic, but you may need additional customziations – https://forum.tagdiv.com/topic/728-x-90px-ads-in-article-inline-ads/#post-43914
I’m not sure what you want to do with thumbnails, you can try to add on your page only blocks that use the same size for thumbnails – you can see here thumbs size on blocks to make an idea – http://screencast.com/t/pgn9npc915B
Also if you want to change the thumb size for a block/module here you can find the code – http://screencast.com/t/Pvy1eMnun if you make any change here please regenerate thumbnails using – https://forum.tagdiv.com/how-to-fix-strange-thumbnails/ Please note that if you create a new thumb there you have to change it also in the module file, for example – http://screencast.com/t/Ns1kn4ECxVNk
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].