Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter n3rdemon

    (@n3rdemon)

    your first attempt works if you put two spaces infront of the “Blog” i.e. “..Blog” with the dots representing the spaces.

    That worked! Thank you very much!

    Thread Starter n3rdemon

    (@n3rdemon)

    Yeah, no it’s a static page. At least, I think it is. This is how I set it up. I went to ‘Settings > Reading’ and selected ‘Front page displays a static page’. And then I selected the ‘About’ page to be my home page and an empty page titled ‘Blog’ to be my blog page.

    Thread Starter n3rdemon

    (@n3rdemon)

    Ok, so I tried using is_page() and setting up the pages to use slugs and still nothing is happening. The url looks like https://domainName/blog/ and I have an if statement at the bottom of index.php. This is what the last lines look like:

    <?php if (is_page('blog')) : ?>
    <div class="span-6 last">
    <?php get_sidebar(); ?>
    </div>
    <?php endif; ?>
    
    <?php get_footer(); ?>

    I’ve also checked for validation errors and W3C says everything’s good, so I’m not sure what the problem is. Looking at other threads, it looks like is_page() is very temperamental. I’ve tried adding wp_reset_query() to the line above the if statement and still no go.

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