Remove Theme Meta Generator
This is used for support so we know what version of the theme you are using. It causes no harm having it in there, but if you must remove it here is how.
This is used for support so we know what version of the theme you are using. It causes no harm having it in there, but if you must remove it here is how.
body .cross-sells { display: none !important; } .woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: 100% !important; }
add_filter( 'totaltheme/footer/callout/is_enabled', function( $bool ) { if ( wpex_is_blog_query() || is_singular( 'post' ) ) { $bool = false; } return $bool; }, 20 );
/** * Will use the Featured image as the background when selecting the * Background Image page header style. * * @link http://totalwptheme.com/docs/snippets/alter-the-page-header-style/ * @link http://totalwptheme.com/docs/snippets/post-featured-image-header-bg/ * */ function my_page_header_background_image( $image ) { if ( has_post_thumbnail() ) { $image =…
/* edit globally (can also be added in the VC custom CSS to target a specific page only) */ body .entries.left-thumbs .entry .entry-media { width: 20% } body .entries.left-thumbs .entry .entry-details { width: 76% } /* target specific grid */…
add_filter( 'totaltheme/page/header/is_enabled', function( $bool ) { if ( is_page() ) { $bool = false; // this will allow meta options to work still } return $bool; } );
function my_page_featured_image() { if ( is_page() && has_post_thumbnail() ) { echo ''. get_the_post_thumbnail() .''; } } add_action( 'wpex_hook_main_top', 'my_page_featured_image', 10 );
function my_custom_sticky_header_height( $array ) { $array['shrinkHeaderHeight'] = 100; // EDIT THIS. //$array['shrinkHeaderLogoHeight'] = 70; // Uncomment and edit to alter logo height return $array; } add_filter( 'wpex_localize_array', 'my_custom_sticky_header_height' );
/** * Add New Social Options To The Social Links Widget. * * @link https://totalwptheme.com/docs/snippets/add-new-social-options-to-the-fontawesome-social-widget/ * @deprecated 1.4.9 */ add_filter( 'wpex_social_widget_profiles', function( $array ) { $array['medium'] = array( 'name' => 'Medium', 'url' => '', ); return $array; } );
add_filter( 'wpex_is_blog_query', function( $bool ) { if ( is_post_type_archive( 'events' ) ) { $bool = true; // Make events post type archive render like blog posts } return $bool; } );