Disable Related Youtube Videos
IMPORTANT: As of 2018 Google changed things so you can no longer disable related videos. Read more here.
IMPORTANT: As of 2018 Google changed things so you can no longer disable related videos. Read more here.
The following snippet can be used to hide the post meta data from blog posts and entries and only display it when a custom field has been checked to show it.
.woocommerce-product-gallery__image { pointer-events: none; }
// Add a new custom grid shortcode module // Usage [myprefix_custom_grid posts_per_page="4" term="4"] // You can also go to Visual Composer > Shortcode Mapper to add your custom module function myprefix_custom_grid_shortcode( $atts ) { // Parse your shortcode settings with…
.sidr-class-megamenu ul .sidr-class-dropdown-toggle { display: none !important; } .sidr-class-megamenu > ul > li > a { display: none !important; padding: 0 !important; height: 0; } .sidr-class-megamenu ul ul { display: block !important; }
function myprefix_add_blog_meta_blocks( $blocks ) { $blocks['new_section'] = function() { $icon = wpex_get_theme_icon_html( 'folder-o', 'wpex-mr-10' ); echo $icon .'Your stuff here'; }; return $blocks; } add_filter( 'totaltheme/blog/meta_blocks/singular_blocks', 'myprefix_add_blog_meta_blocks' ); add_filter( 'totaltheme/blog/meta_blocks/entry_blocks', 'myprefix_add_blog_meta_blocks' );
add_filter( 'totaltheme/topbar/social/choices', function( $options ) { // Add phone number option $options['phone'] = array( 'label' => 'Phone', 'icon_class' => 'ticon ticon-phone', ); // Return options return $options; } );
This is an advanced javascript function you will have to modify it to work for your needs. Because of it's complexity it should be used only by people that know what they are doing and can modify it accordingly. Any…
add_shortcode( 'total_social_share', function() { ob_start(); echo get_template_part( 'partials/social-share' ); return ob_get_clean(); } );