Skip to content

Use Featured Image For Page Header Background

Use Featured Image For Page Header Background

/** * 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 =…

Read more

Alter The Sticky Shrink Header Height

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' );

Read more

Add New Social Options To The Social Links Widget

/** * 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; } );

Read more

Enable Support for the WordPress “More” Break

The Total theme has a custom excerpt function which bypasses the WordPress excerpt so that you can define how many words you want to display for your excerpts. The theme's excerpt function by default ignores the "read more" break so…

Read more

Add Extra Google Font Options

The following snippet can be used to add extra Google Font options or override the entire list of available Google font options available in the Customizer > Typography panel or exclusive Total theme elements.

Read more
Back To Top