• Resolved iBlood Heuer

    (@ibloodheuer)


    I’m trying to put notifications on a hardcoded button on my theme, is there any way?

    I’ve tried to find where is the trigger event to put it on my hardcoded button, but with no luck so far.

    Any help would be greatly aprecciated.

Viewing 1 replies (of 1 total)
  • Plugin Author wpdever

    (@wpdever)

    Hi,

    If you only need to add the notifications for logged-in users, you can add this next to your button:

    <span class="wnbell-count-menu" id="wnbell-count-menu-id"></span>
    <?php 
    wnbell_menu_script( 600000 );  // interval is 600 seconds
                ?>
    <div class="wnbell-dropdown-menu-wrap" id="wnbell-dropdown-menu-wrap-id">
            <div class="your_class" >
            <div class="wnbell-spinner-wrap-menu">
    <span class="wnbell-spinner-menu"></span>
    </div>
        <div class="wnbell-dropdown-menu" id="wnbell-dropdown-menu-id"></div>
    </div></div>
    
Viewing 1 replies (of 1 total)
  • The topic ‘Call from unrelated theme button’ is closed to new replies.