Is it possible to add the trending now function so that it sits below the main nav across our entire site?
Thanks,
James
Hi,
You can use do_shortcode function and display it bellow the main menu in the code. Just set it in a page and take the shortcode – http://screencast.com/t/T92s4Uo8X1en – http://screencast.com/t/YxvbaQzfrX Then paste it like this in the header style that you use – http://screencast.com/t/AXRdDjrO
<div class="td-container ticker">
<?php echo do_shortcode('[td_block_trending_now navigation="" style="" header_text_color="" header_color="" category_id="" category_ids="" tag_slug="" autors_id="" installed_post_types="" sort="" limit="5" offset=""]');?>
</div>
You may need to add some margin top using custom css – http://screencast.com/t/RYECyNYB
.ticker {
margin-top: 20px;
}
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].
-
This reply was modified 11 years by
Alin [tagDiv].
Thanks Alin,
will this work if I copy the header-style-1.php file to my child theme parts/header folder?
Hi,
We are still working on child theme as we have some reports regarding it. Also we want to improve child theme functionality so more files to be overwritten by child theme. You can try to add News Ticker using child theme and see if it works.
Thanks!
Hi Alin,
I tried it via a child theme first and it didn’t work – that’s why I asked as I wondered if I had done something wrong. I should have mentioned that in my post above.
James
Hi,
If you use child theme you can add it in header.php file that it is overwrite with child theme – http://screencast.com/t/kgFRvTCZVXEA – http://screencast.com/t/60g1hmXMRD
Thanks!