Support » Themes and Templates » is_home() not working

is_home() not working

  • I want to test for the home page (root)
    I tried with is_home(), is_page(’39’) and is_page(‘Startseite’), but nothing worked

    How then?

    Here my code in page.php

    <?php if(is_single('39') ) { ?>
    <div id="contentwide">
    <?php } else { ?>
    <div id="content">
    <?php } ?>


Viewing 1 replies (of 1 total)
  • it has to be is_page(’39’). the is_single is meantioned in the documentation as the according solution.


Viewing 1 replies (of 1 total)
  • The topic ‘is_home() not working’ is closed to new replies.
Skip to toolbar