Using WP-TopBar as a Site Wide Alert Tool
-
I’m creating a bottom nav bar that uses the WP-TopBar plugin and so far, I have the following code in the file:
<div style="display: block;" id="site-wide-alerts" class="full-width hide lean-slider"> <!--- Start the WP-TopBar function ---> <div class="lean-slider-slide"> <a href="#" class="site-wide-alert alert-red"> <i class=" icon-large"></i> WATCH LIVE: Donald Trump lays out economic vision during speech in Detroit </a> </div> <div class="lean-slider-slide current"> <a href="#" class="site-wide-alert alert-green"> <i class="icon-chevron-sign-right icon-large"></i> Update on Service Interruption for Dish Subscribers — Click here </a> </div> <!--- End the WP-TopBar function ---> </div>
I really want to place the
<?php if (function_exists('WPTopBar_annc_display')) { WPTopBar_display(get_the_ID()); } ?>
somewhere in the file, but I’m pretty sure this will end up not working properly.Any ideas? Suggestions?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Using WP-TopBar as a Site Wide Alert Tool’ is closed to new replies.