Articles on: Developers

Filter Hook: zakra_header_top_enabled

It alters the visibility of the Header Top Bar of your pages. Zakra provides you with the option to enable or disable the Header Top Bar using the Customizer. However, you might also want to show or hide the Header Top Bar on a specific page. This can be easily achieved using the Page Settings in the Pro version. For the free version, you can use the zakra_header_top_enabled hook instead.

Example of this hook:

To display header top bar on the front page only:

function enable_header_top () {
	if ( is_front_page() ) {
	   return true;
add_filter( 'zakra_header_top_enabled', 'enable_header_top ' );

To learn how to use a hook, refer to this article: How to use Hooks in Zakra Theme?

Updated on: 12/09/2019

Was this article helpful?

Share your feedback


Thank you!