• Carlos Pinedo

    (@carlos-pinedo)


    Hi I recently include a metaslider php code in the “header.php” file of my vantage theme. The code looks like this

    <?php
    echo do_shortcode(“[metaslider id=13]”);
    ?>

    It works perfectly, but my Question is, should I be including this code in a child theme? is this code going to be erased after an update of the theme?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Carlos

    All WordPress themes overwrite their own folder during theme updates so yes, this code would be lost if we released an update and you ran it.

    Can I ask why you need this? You can select a home page slider from Appearance > Theme Settings > Home. You can also select a slider for any other page by editing the page and choosing your slider from the drop-down menu in the right column, heading “Page Slider”.

    The edit you’ve made is necessary for integrating another slider plugin before the content but it shouldn’t be necessary for Meta Slider.

    Thread Starter Carlos Pinedo

    (@carlos-pinedo)

    Hi Misplon,
    Thanks for answering. I think I’ll go with one of those choices that you gave me. thanks!

    For sure ?? Glad we could help.

    All the best with your site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘should I be including metaslider php code in a child theme?’ is closed to new replies.