Support » Plugin: WordPress Notification Bar » show/hide notification bar on specific pages

  • I tried to use the code:

    if($template_used == 'main.php') {
    echo '<style type="text/css">div#wnb-bar{display:block: important!}</style>';
    } else {
    echo '<style type="text/css">div#wnb-bar{display:none: important!}</style>';

    but didn’t work and in the error console it said:

    invalid property value display: none

    any idea how to do this?

  • The topic ‘show/hide notification bar on specific pages’ is closed to new replies.