Skip to content

Alter Main Page Title

Alter Main Page Title

// Example showing how to alter the page title, adjust accordingly to match your needs add_filter( 'wpex_title', function( $title ) { // Change the products title to their actual title if ( function_exists( 'is_product' ) && is_product() ) { $title…

Read more

Alter Default Post Slider Position

/** * Alter the default post slider position * * Default : 'below_title' * Choices : 'below_title', 'above_title', 'above_menu', 'above_header', 'above_topbar' * */ function my_page_slider_position( $position, $meta = '' ) { // Change position to "above_title" unless custom position is…

Read more

Adding/Removing Page Settings Metabox From Post Types

add_filter( 'wpex_main_metaboxes_post_types', function( $types ) { // Add to my custom-type post type $types[] = 'custom-type'; $types[] = 'custom-type-2'; $types[] = 'custom-type-3'; // Remove from blog posts unset( $types['post'] ); // Return post types array return $types; }, 20 );

Read more

Alter WooCommerce Placeholder Image HTML

The following snippet allows you to override the default placeholder image HTML output for your main shop page and archives. If all you want to do is change the default placeholder image (not the full html) you can do this…

Read more

Customize Your Search Placeholder Text

By default if you are going to change the text of your search form in WordPress, we would recommend using a translation plugin such as Loco Translate. However, if you want more control or rather use code you can hook…

Read more
Back To Top