Support » Plugin: WP-TopBar » Using WP-TopBar as a Site Wide Alert Tool

  • Resolved Ava Zinn


    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&nbsp;Detroit						</a>
    <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&nbsp;here						</a>
    <!--- End the WP-TopBar function --->

    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)
  • Plugin Author Bob


    I don’t think this is doable, you’d have to callwpbt::wptb_activate_TopBar_html_js()in your script.

Viewing 1 replies (of 1 total)
  • The topic ‘Using WP-TopBar as a Site Wide Alert Tool’ is closed to new replies.