[Theme: Portfolio Press] is_front_page not recognized
-
I’m using the full width portfolio template for my homepage, and have it working just fine. I have created a page called Home, and selected this as the front page in Settings > Reading as normal.
I’m now trying to add a page title to my individual category pages, which also works fine. However, this also adds a page title to the homepage which I do not want.
I’m trying to use the is_front_page conditional tag to filter out the page title on the homepage, but the theme is not recognizing is_front_page.
Here’s my code:
<?php if( is_front_page() ) { ?> <header id="page-header"> <h1 class="entry-title"><?php the_title(); ?></h1> </header> <?php } ?>
This has been placed in the content-portfolio.php file, just before the loop.
You can view the site at igloo.bryceflory.com
Again, the theme is not recognizing that I have selected Home as my front page. Thoughts?
- The topic ‘[Theme: Portfolio Press] is_front_page not recognized’ is closed to new replies.