• ant.giorgianni

    (@antgiorgianni)


    Hi, I insert a meta slide code in the homepage of my storefront theme. I put some code in function php my of my child theme and it work full width.
    I have a problem, in every page of single product in the top left below menu bar appear the code of my slide something like ” [metaslider id=34 restrict_to=home percentwidth=100]”

    this is the code I’ve been used:

    add_action( ‘init’, ‘child_theme_init’ );
    function child_theme_init() {
    add_action( ‘storefront_before_content’, ‘woa_add_full_slider’, 5 );
    }

    function woa_add_full_slider() { ?>
    <div id=”slider”>
    <?php echo do_shortcode(“[metaslider id=34 restrict_to=home percentwidth=100]”); ?>
    </div>
    <?php
    }

    Anyone have idea how to remove that scrip from product page?
    I hope someone could help me.
    Tanks in advance for helping me.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Meta Slider code appear in the top-left product page.’ is closed to new replies.