• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

feeling a bit lost with php is_home

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › feeling a bit lost with php is_home

This topic is: not resolved

Tagged: functions, php

  • This topic has 4 replies, 3 voices, and was last updated 10 years, 8 months ago by Marcy.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 23, 2014 at 9:12 am #125430
    Chrys
    Member

    Hi,

    I am training with genesis and functions and on a site I develop on local, I have used this great tutorial to add a full width image to a studiopress theme. I'm with Sample.

    Add Full Width Image In Any StudioPress Theme

    The thing is i have set up my site as follow:

    homepage displays : static page
    posts are: a page called blog

    When I add the php code for my full width the code is made so that this image appears on home : is_home but in my case it appears on the blog page... So how I'm confused. In genesis, is it always the blog page that is defined by is_home ?
    I could add like the tutorial says is_archive but I just want my full width image on my "static homepage"..
    What should I use then?

    Kind regards

    Chrys

    September 23, 2014 at 10:00 am #125436
    Brad Dalton
    Participant

    The is_home() conditional returns true for the posts page which in your case is your blog page and the is_front_page() for the front page


    Tutorials for StudioPress Themes.

    September 23, 2014 at 10:58 am #125439
    Chrys
    Member

    Hi Brad,

    So when I choose the static layout for the "home" I should use is_front_page() right?
    By the meantime because I'm curious I have tried a few things and found it has worked when writing is_page (4) , 4 being the Id of my page. Is it good as well or is it best practice to use is_front_page?

    Thanks !

    September 27, 2014 at 1:10 am #125921
    Brad Dalton
    Participant

    is_front_page()

    Yes, if you use the Reading settings to display a static page as your front page you could also use the page I.D


    Tutorials for StudioPress Themes.

    September 28, 2014 at 6:24 pm #126091
    Marcy
    Participant

    Brad has a nice blog post on this too.
    http://wpsites.net/web-design/using-conditional-tags-for-home-front-blog-pages/


    Marcy | Amethyst Website Design | Twitter

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble