Problems getting ticker to appear in footer.php
-
Hi,
I
m running 1.4.14 of Ditty News Ticker and I
m having a problem trying to the DNT into my theme via Direct Mode.It appears my theme’s header is made up of both header.php and wrapper-header.php.
When I place the DNT code (below) into the header.php it works but is in the wrong place.
Through trial and error it turns out I need to add it into wrapper-header.php (as I want the DNT to appear below the logo but before the main menu).
<div class="container"> <?php if(function_exists('ditty_news_ticker')){ditty_news_ticker(4027);} ?> </div>
The wp_head() function is present in the header.php and the same for footer.php.
The full wrapper-header.php looks like the below:
<?php /* Wrapper Name: Header */ ?> <div class="row"> <div class="span6" data-motopress-type="static" data-motopress-static-file="static/static-logo.php"> <?php get_template_part("static/static-logo"); ?> </div> <div class="span6 hidden-phone" data-motopress-type="static" data-motopress-static-file="static/static-search.php"> <?php get_template_part("static/static-search"); ?> </div> </div> <div class="row"> <div class="container"> <?php if(function_exists('ditty_news_ticker')){ditty_news_ticker(4027);} ?> </div> <div class="<?php echo cherry_get_layout_class( 'full_width_content' ); ?>" data-motopress-type="static" data-motopress-static-file="static/static-nav.php"> <?php get_template_part("static/static-nav"); ?> </div> </div>
Any suggestions how to get it to work? It look a fab plugin and just hope I can get it to work.
My site is https://www.bionicbodies.co.uk/production/
Thanks,
Tom
- The topic ‘Problems getting ticker to appear in footer.php’ is closed to new replies.