Filters

Filters let you replace certain elements like texts in Page Builder Framework.


Navigation

Filter: wpbf_mobile_menu_text

This filter lets you replace the button text for the “Default” mobile menu.

function wpbf_custom_mobile_menu_text() {
	return 'My Menu';
}
add_filter( 'wpbf_mobile_menu_text', 'wpbf_custom_mobile_menu_text' );

404

Filter: wpbf_404_headline

This filter lets you change the headline for the 404 pages

function wpbf_custom_404_headline() {
	return 'Nothing to see here!';
}
add_filter( 'wpbf_404_headline', 'wpbf_custom_404_headline' );

Filter: wpbf_404_text

This filter lets you change the text for the 404 pages

function wpbf_custom_404_text() {
	return 'Oops, something went wrong!';
}
add_filter( 'wpbf_404_text', 'wpbf_custom_404_text );

Logo

Filter: wpbf_logo

This filter lets you change the main menu logo. In this example, we’re changing the logo on our website only for on a specific page.

function wpbf_custom_logo( $custom_logo_url ) {
	if( is_page('193') ) {
		$custom_logo_url = 'https://ourwebsite.com/custom-logo.jpg';
	}
	return $custom_logo_url;
}
add_filter( 'wpbf_logo', 'wpbf_custom_logo' );

Filter: wpbf_logo_mobile

This filter lets you change the mobile menu logo. In this example, we’re changing the logo on our website only for on a specific page, just as for the main menu logo above.

function wpbf_custom_mobile_logo( $custom_logo_url ) {
	if( is_page('193') ) {
		$custom_logo_url = 'https://ourwebsite.com/custom-logo.jpg';
	}
	return $custom_logo_url;
}
add_filter( 'wpbf_logo_mobile', 'wpbf_custom_mobile_logo' );

Search

Filter: wpbf_search_placeholder

This filter lets you change the placeholder text for the searchform.

function wpbf_custom_search_form_placeholder() {
	return 'Search';
}
add_filter( 'wpbf_search_placeholder', 'wpbf_custom_search_form_placeholder' );

Filter: wpbf_search_title

This filter lets you change the title text for the searchform.

function wpbf_custom_search_form_title() {
	return 'Hit enter to search';
}
add_filter( 'wpbf_search_title', 'wpbf_custom_search_form_title' );

Post

Filter: wpbf_no_post_headline

This filter lets you change the headline that’s being displayed if no post could be found.
Default: Oops, this article couldn’t be found!

function wpbf_custom_no_post_headline() {
	return 'Oops, nothing here!';
}
add_filter( 'wpbf_no_post_headline', 'wpbf_custom_no_post_headline' );

Filter: wpbf_no_post_content

This filter lets you change the content that’s being displayed if no post could be found.
Default: Something went wrong.

function wpbf_custom_search_form_title() {
	return 'We're bad at content.';
}
add_filter( 'wpbf_no_post_content', 'wpbf_custom_no_post_content' );
Page Builder Framework

A Page Builder’s best friend.

Sign up for the Newsletter

Get notified about the latest features and updates.

Join the Community

Cookie Preference

Please select an option. You can find more information about the consequences of your choice at Help. Privacy Policy | Imprint

Select an option to continue

Your selection was saved!

Help

Help

To continue, you must make a cookie selection. Below is an explanation of the different options and their meaning.

  • Accept cookies:
    All cookies such as tracking and analytics cookies.
  • Reject tracking cookies:
    No cookies except for those necessary for technical reasons are set.

You can change your cookie setting here anytime: Privacy Policy. Imprint

Back