Alter The “Left Thumbnail” Blog Style Widths
/* Alter The "Left Thumbnail" Blog Style Widths */ body .blog-entry.thumbnail-entry-style .blog-entry-media { width: 30%; } body .blog-entry.thumbnail-entry-style .blog-entry-content { width: 66%; }
/* Alter The "Left Thumbnail" Blog Style Widths */ body .blog-entry.thumbnail-entry-style .blog-entry-media { width: 30%; } body .blog-entry.thumbnail-entry-style .blog-entry-content { width: 66%; }
The following snippet can be used to display the menu from your primary site in a multi-site network across all your sites. Simply add the code to your site then log into the main site and select the menu for…
In the Total theme the main header menu by default uses the "main_menu" location. However, you can easily alter the default location using the "wpex_main_menu_location" filter. This can be useful if you want to define a new menu location via…
/*Center Bottom Footer Links*/ #footer-bottom-menu { text-align: center; float: none; position:relative; top: auto; right:auto; width: 100%; margin: 20px 0 0; height: auto; line-height: auto; } #footer-bottom-menu li { display: inline-block; float:none; }
// Remove Search Results Sidebar function remove_search_sidebar( $layout ) { if ( is_search() ) { $layout = 'full-width'; } return $layout; } add_filter( 'wpex_post_layout_class', 'remove_search_sidebar', 20 );
/** * Sample function to add/remove items from the sidebar mobile menu * @link Total/framework/core.php */ add_filter( 'totaltheme/mobile/menu/sidr/source', function( $array ) { // Add element with ID my-custom-id $array['my-custom-id'] = '#my-custom-id'; // Remove search if ( isset( $array['search'] ) )…
/* Hide mobile menu - can also be done with PHP see related doc */ .sidr-class-mobile-menu-searchform { display: none !important; }
function change_frontend_editor_iframe_url($url) { return str_replace("http://", "https://", $url); } add_filter('vc_frontend_editor_iframe_url', 'change_frontend_editor_iframe_url');
// Change Related Portfolio Query Arguments add_filter( 'wpex_related_portfolio_args', function( $args ) { // Remove tax_query parameter so it doesn't try and display items from the same category $args['tax_query'] = NULL; // Change orderby parameter from random to date $args['orderby'] =…
// Alter The Portfolio Related Posts Heading function my_portfolio_related_heading_args( $args ) { // Show different text for items in category "design" if ( has_term( 'design', 'portfolio_category' ) ) { $args['content'] = 'Custom heading'; } // Return args return $args; }…