{"id":803,"date":"2018-05-29T17:04:26","date_gmt":"2018-05-29T16:04:26","guid":{"rendered":"https:\/\/www.gmitropapas.com\/?p=803"},"modified":"2020-06-15T02:37:47","modified_gmt":"2020-06-15T01:37:47","slug":"generatepress-theme-tutorial-convert-the-top-widget-bar-into-a-notification-window","status":"publish","type":"post","link":"https:\/\/www.gmitropapas.com\/generatepress-theme-tutorial-convert-the-top-widget-bar-into-a-notification-window\/","title":{"rendered":"GeneratePress theme tutorial: Convert the top widget bar into a notification window"},"content":{"rendered":"\n
A notification bar is useful if you want to show a site-wide message to your audience about certain news or a promotion that you offer in your online shop. There is a plethora of notification bars that can be found in the WordPress plugin repository<\/a> or you can embed one yourself<\/a>. GeneratePress has a top bar widget that can be activated from the Customizer so why not take advantage of what’s already available to us and save a few resources and HTTP requests? By going to Appearance->Customize->Widgets->Top Bar<\/strong> a custom widgets can be added including custom menus, social icons, login information, etc. But what if you wanted to add a notification bar that always needs to load at the top of the page but give the user the option to be able to close it with the use of a close () button?<\/p>\n\n\n\n