Change WooCommerce “Out Of Stock” Text
add_filter( 'wpex_woo_outofstock_text', function( $text ) { return esc_html__( 'MY CUSTOM TEXT', 'wpex' ); }, 20 );
add_filter( 'wpex_woo_outofstock_text', function( $text ) { return esc_html__( 'MY CUSTOM TEXT', 'wpex' ); }, 20 );
// Example 1: Change the output completely. add_filter( 'wpex_mobile_menu_toggle_icon', function( $output ) { return 'YOUR CUSTOM TEXT OR HTML'; } ); // Example 2: Add "Menu" Text next to the. hamburger icon. add_filter( 'wpex_mobile_menu_toggle_icon', function( $output ) { return 'Menu'…
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…
function my_category_slider( $slider ) { // Display the "test" revolution on category archives if ( is_category() ) { $slider = '[rev_slider alias="test"]'; } // Return specific slider for all pages if $slider not defined already if ( is_page() && !…
function my_custom_search_style() { return 'blog'; } add_filter( 'wpex_search_results_style', 'my_custom_search_style' );
function my_child_theme_locale() { load_child_theme_textdomain( 'total', get_stylesheet_directory() . '/languages' ); } add_action( 'after_setup_theme', 'my_child_theme_locale' );
This snippet shows how you can alter the default meta viewport tag in the theme. By default the theme uses a responsive tag (the snippet example shows the default tag used by the theme) which also allows zooming into the…
Custom snippet showing how to conditionally modify the Total theme's header image logo. The following example shows how you can filter the logo to display a different image on the front page of your site (regular and retina). If you…
By default the theme logo will always link to the homepage. The following snippet shows how you can change the logo URL if you need it to link somewhere else.
function my_related_portfolio_excerpt_length( $length ) { if ( is_singular() ) { $length = '0'; } return $length; } add_filter( 'wpex_portfolio_entry_excerpt_length', 'my_related_portfolio_excerpt_length' );