Setting the loop to not display the page title on the static home page
-
Sooo, first of all, props to an amazing community. WordPress really is incredible, and its online following/community is even more so.
I’ve been using wordpress for a long time, but just recently started developing for it.
My question is this:
I’m currently developing a new theme based off of darren hoyt’s gravy framework.
In the loop, I find this near the very beginning of the loop.
“<h1 class=”posttitle”><?php the_title(); ?></h1>”
I want this to continue to work, but to not work on the static front page of my site as set in wordpress.
I think I can use “is_front_page()” as a conditional tag for this, but, I’m not sure about the exact way to do it.
I’m thinking I need something like “<h1 class=”posttitle”><?php !is_front_page() the_title(); ?></h1>
Where !is_front_page() means “is not front page”
Essentially, I want to post the title on everypage except the frontpage….I’m sure this is simple, but I’m having difficulty figuring it out.
any help is greatly appreciated!
- The topic ‘Setting the loop to not display the page title on the static home page’ is closed to new replies.