Skip to content

Tweak the Post Types Grid Element Output

Open Entries with Redirection in a New Tab

add_action( 'wp_footer', function() { ?> ( function( $ ) { 'use strict'; $( document ).on( 'ready', function() { var $entriesWithRedirect = $( '.has-redirect' ) $entriesWithRedirect.each( function() { var $this = $( this ); $this.find( 'a' ).attr( 'target', '_blank' ); }…

Read more

Change Mobile Menu Dropdown Arrows to Plus Icon

body .wpex-open-submenu span { font-family: "Arial"; font-size: 16px; } body .wpex-open-submenu span::before { content: "\002B" !important; font-family: "Arial" } /* Show minus icon when active */ body .wpex-open-submenu[aria-expanded="true"] span::before { content: "\2212" !important; }

Read more

Add Custom Params to Lightbox Videos

If you want to modify the video embed URLs used in lightboxes in the Total WordPress Theme, you can use the wpex_get_video_embed_url_params filter. This filter allows you to add or change URL query parameters for YouTube and Vimeo embeds. It’s…

Read more

Change Layout for LearnDash Courses

// Alter the layout for the courses post type // Choices: left-sidebar, right-sidebar, full-width or full-screen add_action( 'wpex_post_layout_class', function() { if ( is_singular( 'sfwd-courses') ) { $layout = 'full-width'; } return $layout; }, 40 );

Read more

Remove Staff Meta Settings & Image Gallery

// Remove staff settings metabox add_filter( 'wpex_main_metaboxes_post_types', function( $types ) { unset( $types['staff'] ); return $types; }, 40 ); // Remove staff gallery add_filter( 'wpex_gallery_metabox_post_types', function( $types ) { $types = array_combine( $types, $types ); unset( $types['staff'] ); return $types;…

Read more
Back To Top