Articles on: Developers

Filter Hook: Footer

Zakra provides you various filter hook which allows you to add code to the footer of your page. They are listed as below:

zakra_footer_class: You can add your CSS classes into the footer using this filter.

zakra_footer_widget_container_class: It adds CSS classes into the footer widget area.

zakra_footer_widgets_enabled: You can either show or hide the footer widget using this filter.

zakra_footer_widgets_style: Using this filter, you can modify the footer widget style like displaying footer widget in one, two, three and four columns.

zakra_footer_widgets_style_choices: This filter is for extending the available options for footer widget style in Customizer.

zakra_footer_sidebar_filter: It filters the footer sidebar for different footer layout options.

zakra_footer_bar_class: You can add CSS classes into the footer bottom bar using this filter.

zakra_footer_bar_enabled: Enable or disable the footer bottom bar using this filter.

zakra_footer_bar_style_choices: This filter is for extending the available options for footer bottom bar style in Customizer.

zakra_footer_bar_section_one_choices: You can use this filter to add your new choice in the left content of the footer bottom bar in Customizer.

zakra_footer_bar_section_two_choices: You can use this filter to add your new choice in the right content of the footer bottom bar in Customizer.

Few Examples:

To disable the footer bottom bar:

function remove_footer_bar() {
	return false;
}
add_filter( 'zakra_footer_bar_enabled', 'remove_footer_bar' );


To add your class into footer:

function add_footer_class( $class) {
	 $class[]= 'custom-footer';
	 return $class;
}
add_filter( 'zakra_footer_class', 'add_footer_class');




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

Updated on: 13/09/2019

Was this article helpful?

Share your feedback

Cancel

Thank you!