Skip to content

Open Main Menu Dropdowns To The Left

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

Add Portfolio Category To Single Portfolio Post Slug

/** * Add portfolio category to slug by altering register_post_type args. * You can also do this in the editor dashboard instead * */ function my_add_portfolio_category_term_to_slug( $args ) { // Alter slug $args['rewrite']['slug'] = 'portfolio-item/%portfolio_category%'; // Remove with front $args['rewrite']['with_front']…

Read more

Alter The Default Excerpt Arguments

/* The Default arguments look like this: $defaults = array( 'output' => '', 'length' => '30', 'readmore' => false, 'readmore_link' => '', 'more' => '…', ); */ // You can use a filter to alter these. It will also override…

Read more
Back To Top