Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter focusfilm

    (@focusfilm)

    Never mind, just figured it out.

    For anyone else having the same problem, it was a case of creating a new .php file then pasting in that piece of code you only want on the homepage then calling that page template in the index.php file by:

    <?php get_template_part(‘NAME OF TEMPLATE PAGE’); ?>

    wrapped so it looked like this:

    <?
    if (is_home() && strpos($_SERVER[‘REQUEST_URI’], “/page/”) === false) {
    ?><?php get_template_part(‘NAME OF TEMPLATE PAGE’); ?><?
    }
    ?>

    Now it only calls on that template on the home/index page. Hope this is helpful to people having the same problems in the future!

    Thread Starter focusfilm

    (@focusfilm)

    Sorry I’m rubbish with the wordpress explanations. I can never understand what they’re getting at. If anyone can please just edit that piece of code I’ve provided to do what I want I’d be very grateful. Thanks anyway alchymyth!

Viewing 2 replies - 1 through 2 (of 2 total)