• I have the nextend slider installed on a temporary page called portfolio, but I want it on my main page instead.

    The code I need to paste in is:

    <?php
    echo do_shortcode('[smartslider2 slider="1"]');
    ?>

    But where do I put it so it only shows up on my homepage? Index.php? (I am using a coller child theme.) Thanks in advance.

Viewing 1 replies (of 1 total)
  • Hi artist369!

    You should create a copy of page.php and re-name it to front-page.php. Be sure to change the comments at the top to match the page describing the template to: Template Name: Front Page.

    Then create a new page in WordPress called “Home” and set the page template to Front Page. Lastly, go to Settings > Reading and change the first field “Front page displays” to Static Front page and set as Home to make sure that’s the page users land on when they type in your site URL.

    Once you’ve done that, insert your PHP into that page template and enjoy!

Viewing 1 replies (of 1 total)
  • The topic ‘Showing a widget on the homepage only’ is closed to new replies.