Custom Breadcrumbs Arguments
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.
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; } );
body #footer { background: url(YOUR_IMAGE_URL) repeat; }
Basically the way the pageable containers work is by hiding whatever is inside the non-active tabs. Certain players like jwplayer can not properly render the media if it's hidden by default. The following CSS will display all your tabs by…
WooCommerce thumbnails are used by default for the category grid/listing. Because of this it’s not used as the title backgrounds by default, however, it can be enabled via a child theme function.