WordPress.org

Support

Support » Themes and Templates » [Resolved] is_single and NOT is_home

[Resolved] is_single and NOT is_home

Viewing 7 replies - 1 through 7 (of 7 total)
  • Could you post the url?

    Have you tried adding is_front_page

    if ( is_single() && !is_front_page() )
    Or
    if ( is_single() && !is_home() && !is_front_page() )

    Tried those both and I still get the ‘<footer class=”entry-meta”>’ appearing on the homepage as I’ve wrapped the php if tags around the entire footer

    What file did you edit?

    I see that all the content-xxx.php have
    <footer class="entry-meta">
    Why exactly are you trying to remove it?
    I’m not seeing any <footer class="entry-meta"> on excerpts.

    I’m editing content.php

    I’ve added a border-top to the footer class =”entry-meta”, therfore whilst the remaining entry meta data is not displayed in the homepage, the thin grey border-top still remains,

    The <?php if ( is_single() ) : ?> worked fine for the excerpts , which is exactly what i want, but on the homepage you’ll notice a very thin grey line under the slideshow.

    Would hiding it through CSS be acceptable?

    Combining your is_single() solution with
    .home footer.entry-meta {display:none;}

    Ah i’ve just realised – due to homepage being a page with content – i should be editing Content-Page.php which has its on entry meta footer. I’ve commented this footer code out and that has resolved the issue.

    Thanks for your help

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] is_single and NOT is_home’ is closed to new replies.
Skip to toolbar