Add/Remove Image Sizes
This example snippet can be used to add new image size options and tabs to the Image Sizes panel. This is useful if you are developing a third-party add-on for the theme. If you are creating custom post types using…
This example snippet can be used to add new image size options and tabs to the Image Sizes panel. This is useful if you are developing a third-party add-on for the theme. If you are creating custom post types using…
The following snippet can be used to modify the default header logo text which is used for the logo image alt attribute and the logo link title attribute when using an image based logo or the text displayed when using…
/** * Alter blog style * You can return any of the following strings "large-image-entry-style", "thumbnail-entry-style", "grid-entry-style" * */ function my_blog_style( $style ) { // Change style for all tags if ( is_tag() ) { $style = 'thumbnail-entry-style'; } //…
@media only screen and (max-width: 959px) { /* hide tabs */ body .wpb_tabs_nav { display: none; } /* display tab content */ body .wpb_tab { display: block !important; } }
body .products .product-category a { position: relative; display: block; } body .product-category img { display: block } body .products .product-category h3 .count { display: none } body .products .product-category h3 { position: absolute; bottom: 0; left: 0; color: #fff !important;…
function my_tribe_events_register_event_type_args( $args ) { // Exclude from search $args['exclude_from_search'] = true; // Return args return $args; } add_filter( 'tribe_events_register_event_type_args', 'my_tribe_events_register_event_type_args' );
function my_disable_ie_compatability_mode() { echo ''; } add_action( 'wp_head', 'my_disable_ie_compatability_mode', 1 );
// Example 1: Disable next/prev in same term for staff members function my_next_prev_in_same_term( $bool ) { if ( is_singular( 'staff' ) ) { $bool = false; } return $bool; } add_filter( 'wpex_next_prev_in_same_term', 'my_next_prev_in_same_term' ); // Example 2: Disable for ALL…
// Enable social share for testimonials function my_enable_social_for_testimonials( $return ) { if ( is_singular( 'testimonials' ) ) { $return = true; } return $return; } add_filter( 'wpex_has_social_share', 'my_enable_social_for_testimonials' ); // Display social share for testimonials function display_social_share_on_testimonials() { if (…