WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Notification Bar
show/hide notification bar on specific pages (1 post)

  1. LucyTech
    Member
    Posted 3 months ago #

    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?

    https://wordpress.org/plugins/wordpress-notification-bar/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.