Alter Default Numbered Pagination Settings
/** * Example for changing pagination arguments. */ add_filter( 'totaltheme/pagination/standard/args', function( $args ) { $args['prev_text'] = 'Previous'; $args['next_text'] = 'Next'; return $args; } );
/** * Example for changing pagination arguments. */ add_filter( 'totaltheme/pagination/standard/args', function( $args ) { $args['prev_text'] = 'Previous'; $args['next_text'] = 'Next'; return $args; } );
Important: If you are using the Post Types Unlimited plugin you can set this via the plugin settings without having to use custom code. Also since Total 5.4.6 you can now change the default title for your portfolio, staff and…
The post meta sections are the
Below is a snippet showing how you can alter some of the default breadcrumbs arguments. Note that this is for the theme's built-in breadcrumbs function and not the Yoast SEO breadcrumbs.
function myprefix_edit_classes( $classes, $item ) { if ( ( $key = array_search( 'current-menu-parent', $classes ) ) !== false ) { unset( $classes[$key] ); } return $classes; } add_filter( 'nav_menu_css_class', 'myprefix_edit_classes', 10, 2 );
Various image overlays display on hover, however, on mobile devices there isn't any "hover" affect. That's ok, you can actually use some custom CSS if you want to have the overlays display on mobile under the image. Below is an…
By default audio posts display a featured image with a little overlay icon. If you want you can paste the following code in a child theme's functions.php file and it will display the audio embed instead of the image so…
// Example of conditionally altering the readmore button text via the filter // This example shows you can change it for video format posts. function myprefix_custom_post_readmore_link_text( $text ) { if ( 'video' == get_post_format() ) { $text = 'Watch Video';…
#site-header-sticky-wrapper.is-sticky #site-header { box-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none; }
add_filter( 'wpex_gallery_metabox_post_types', function( $types ) { $types[] = 'your_post_type'; return $types; } );