Reply 349937 to: Shortcode for the size guide pop-up to use in custom block

Avatar: Rose Tyler
Rose Tyler
Support staff
March 14, 2023 at 09:13

Hello, Niddy,

Thank you for choosing XStore as your WooCommerce WordPress theme.

We don’t have shortcode for each use but we have many functions which could be implemented in custom shortcodes 🙂
You may try to add next PHP snippet to your child-theme/functions.php

add_shortcode('etheme_child_size_guide', 'etheme_size_guide');

if ( class_exists('XStoreCore\Modules\WooCommerce\XStore_Wishlist') ) {
add_shortcode('etheme_child_wishlist_button', function() {
$instance = XStoreCore\Modules\WooCommerce\XStore_Wishlist::get_instance();
$instance->print_button();
});
}

add_shortcode('etheme_child_social_share', 'woocommerce_template_single_sharing');

I hope you will find those custom shortcodes useful for your cases.

Kind Regards,
8theme team

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.