Skip to content

Alter Meta Sections (date, comments, author, etc) For Custom Post Types

Re-Order Social Sharing Sites

// Re-Order Social Sharing Sites function my_wpex_social_share_sites( $sites ) { // Define the sites in your own order $sites = array( 'twitter', 'facebook', 'google_plus', 'pinterest', 'linkedin' ); // Return sites return $sites; } add_filter( 'wpex_social_share_sites', 'my_wpex_social_share_sites' );

Read more

Open Main Menu Dropdowns To The Left

.sf-menu ul { left: auto; right: 0; } .navbar-style-one .dropdown-menu ul:after { left: auto; right: 13px; } .navbar-style-one .dropdown-menu ul:before { left: auto; right: 12px; }

Read more

Add Meta Option To Portfolio Posts For Disabling Auto Media

// Add option to Portfolio items to disable media function my_new_portfolio_meta_options( $options ) { // Add new setting to portfolio tab $options['portfolio']['settings']['wpex_post_media'] = array( 'title' => __( 'Post Media', 'wpex' ), 'description' => __( 'Display media on single post?', 'wpex'…

Read more

Move Sidebar Above Content On Mobile

The following code snippet will move the HTML for the Total theme sidebar so it's added before the content. This way, on mobile the sidebar will display at the top. In fact if you use this snippet your sidebar won't…

Read more

Remove Page Title From Breadcrumbs

// Remove page title from breadcrumbs function my_remove_title_from_breadcrumbs( $trail ) { // Remove title (trail_end) for single posts if ( is_singular() ) { unset( $trail['trail_end'] ); } // Return trail return $trail; } add_filter( 'wpex_breadcrumbs_trail', 'my_remove_title_from_breadcrumbs', 20 );

Read more
Back To Top