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; }
.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; }
// 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'…
/* Center Font Awesome Social Widget Icons */ body .fontawesome-social-widget ul { text-align: center; } body .fontawesome-social-widget ul li { float: none; display: inline-block; }
/* Alter tour tabs width */ body .wpb_tour .wpb_tabs_nav { width: 20% !important; } /* Alter tour content width */ body .wpb_tour .wpb_tour_tabs_wrapper .wpb_tab { width: 80% !important; padding-left: 25px !important; }
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…
// 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 );
/** * 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']…
/** * Filters the sticky header check. */ add_filter( 'totaltheme/header/styles_with_sticky_support', function( array $styles ): array { $styles[] = 'two'; $styles[] = 'three'; $styles[] = 'four'; return $styles; } );
/* 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…
// Display embeds for related blog items which is set to false by default add_filter( 'wpex_related_blog_posts_embeds', '__return_true', 20 );