• Resolved KimMcDougalcrafter

    (@ormgrecipes)


    Is it possible to show the notification bar only on specific pages? For example, my landing page showcases a new art collection coming soon so I don’t want the notification bar showing on this page. Can I disable the bar, for example by using the page ID?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wpexplorer

    (@wpexplorer)

    Hi,

    The only options built-in to disable the notification bar is the option where you can enable it on the homepage only.

    That said, it’s possible with a little code added to your child theme or via the Code Snippets plugin by hooking into the “easy_notification_bar_is_enabled” filter.

    So for example if you want it disabled on the homepage you can use this code:

    add_filter( 'easy_notification_bar_is_enabled', function( $check ) {
    	if ( is_front_page() ) {
    		return false;
    	}
    	return $check;
    } );

    – AJ

    Thread Starter KimMcDougalcrafter

    (@ormgrecipes)

    Perfect AJ! Thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I disable the bar from showing on selected pages?’ is closed to new replies.