Home Forums WoodMart support forum External link in product variable

External link in product variable

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #175788

    John
    Participant

    Hello,
    1. On other theme, I have created some shortcodes so I can use them in product variable, but your theme is filter all products when I clicked on the value.
    It is possible to disable this only on specific attributes?
    This is the shortcode:

    //[shortcode]
    function shortcode_func( $atts ){
    	return '<a href="#" target="_blank"> click</a>';
    }
    add_shortcode( 'shortcode', 'shortcode_func' );
    

    So if I add [shortcode] value to an attribute the value on front page should be click.
    Hope you understand waiting for your answer!

    2. I have succeeded in duplicate the custom product tab; It is possible to add the code to function.php (child theme) so I won’t need to replace every time theme updates?
    Thanks

    #175832

    Artem Temos
    Keymaster

    Hello,

    1. Please, describe to us your problems in a bit more details. Attach some screenshots and provide us with a list of steps on how to reproduce it on your website.

    2. Sorry, what kind of custom code are you asking about?

    Regards

    #175842

    John
    Participant

    Please check below

    #175843

    Artem Temos
    Keymaster

    1. Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?

    2. Try to copy whole functions to the child theme’s functions.php and do your customizations there https://gyazo.com/44101e95ae5995d7cfa0daf1bf979eb2

Viewing 4 posts - 1 through 4 (of 4 total)