• Resolved xandrula

    (@xandrula)


    Does Hitchcock not come with template option like this?

    I’d like to edit the different pages to my liking like removing the .post-inner section from the Homepage and displaying a logo there. This should only be for the homepage and not for my other pages.

    I also have another question. My goal is to have a portfolio page and a blog page as you can see on my website. Is it possible to have two blog pages or is Hitchcock only combatible for one posts page?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @xandrula,

    The front page in Hitchcock is not a page in the WordPress sense – it’s an archive page. To edit it, you’ll have to edit the PHP template files (index.php, specifically, but you’ll have to use conditionals to target the home page only).

    You should be able to use the Jetpack portfolio post type and have that work with Hitchcock, but the rendering of it might not be an exact one to one.

    — Anders

    Thread Starter xandrula

    (@xandrula)

    Hi Anders, thanks for answering.

    I’m trying to work with conditionals on index.php but I’ve run into a problem.

    As per my understanding, if the homepage is set up to display a static page I would have to use:

    <?php if ( is_front_page() ) :

    And If I test it with this code

    <?php if ( is_front_page() ) : echo '<p id=custom-content>'; echo 'Welcome to our Homepage!' ; echo '</p>'; else : echo '<p id=custom-content>'; echo 'This is one of our site subpages.' ; echo '</p>'; endif; ?>

    The blog page will return with “This is one of our site subpages” but the homepage will not return with “Welcome to our Homepage”

    How can I target the static hompage with conditionals in this template?

    Theme Author Anders Norén

    (@anlino)

    Hi @xandrula,

    If you set Settings → Reading to static page, index.php won’t be used to anymore – the singular.php template will. In that case, you’ll have to add your conditionals to singular.php.

    — anders

    Thread Starter xandrula

    (@xandrula)

    Thanks Anders, that answer solved it and I can now try to learn conditionals.

    Have a good day.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Editing a specific page?’ is closed to new replies.