Articles on: Developers

Filter Hook: zakra_header_transparency_filter

It is used to make the header of your page transparent. Zakra provides you with the option to enable or disable the transparent header using Page Settings in the free version. In the Pro version, this feature is available in both, the Customizer and the Page Settings. Thus, the zakra_header_transparency_filter hook is useful if you want to make the header of all of your pages transparent in the free version of the theme.

Example of using this hook:

To make header of all of the pages transparent in the Zakra Free version:

function enable_transparent_header() {
	return true;
add_filter( 'zakra_header_transparency_filter', 'enable_transparent_header');

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!