This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Individual Product Basis Attribute Variation Swatches Customization | |
Live Demo | Video Tutorial | |
2. Show Image, Color, Button Variation Swatches in Same Attribute | |
Live Demo | Video Tutorial | |
3. Convert Manually Created Attribute Variations Into Color, Image, and Label Swatches | |
4. Group based swatches display. | |
<div class="gwp-pro-features-links"> | |
<a target="_blank" href="https://demo.getwooplugins.com/woocommerce-variation-swatches/product/nike-air-vapormax-plus-group/">Live Demo</a> | | |
<a target="_blank" href="https://demo.getwooplugins.com/woocommerce-variation-swatches/group-category-swatches">Video Tutorial</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function overwrite_shortcode() { | |
function overridden_ux_accordion_item( $atts, $content = null ) { | |
extract(shortcode_atts(array( | |
'title' => 'Accordion Panel', | |
'class' => '', | |
), $atts)); | |
$classes = array( 'accordion-item' ); | |
if ( $class ) $classes[] = $class; | |
return '<div class="' . implode( ' ', $classes ) . '"><a href="#" class="accordion-title plain"><button class="toggle"><i class="icon-angle-down"></i></button><h2>' . $title . '<h2></a><div class="accordion-inner">' . do_shortcode( $content ) . '</div></div>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Do not include this if already open! | |
/** | |
* Code goes in theme functions.php | |
*/ | |
function holiday_message_before_header() { | |
?> | |
<div class="header-block"> | |
<?php echo do_shortcode( '[block id="holidays-message"]' ); ?> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'flatsome_viewport_meta', function() { | |
return '<meta name="viewport" content="width=device-width, initial-scale=1" />'; | |
}, 1 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'customize_register', 'jt_customize_register' ); | |
function jt_customize_register( $wp_customize ) { | |
$wp_customize->remove_control( 'custom_css' ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'after_setup_theme', 'definitely_allow_mobile_zooming_add_viewport'); | |
function definitely_allow_mobile_zooming_add_viewport() | |
{ | |
/* | |
* Set viewport for OceanWP | |
*/ | |
if ( class_exists('OCEANWP_Theme_Class') ) { | |
add_filter( 'ocean_meta_viewport', 'definitely_allow_mobile_zooming_oceanwp' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Remove product data tabs */ | |
add_filter( 'woocommerce_product_tabs', 'my_remove_product_tabs', 98 ); | |
function my_remove_product_tabs( $tabs ) { | |
unset( $tabs['additional_information'] ); // To remove the additional information tab | |
return $tabs; | |
} |