• Resolved auroragordon

    (@auroragordon)


    Hello! Is there a way in this theme to display titles for blog posts, but not pages? Thanks for any suggestions!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Lisa

    (@workingwebsites)

    Hi auroragordon,

    The easiest way is to hide the title through CSS.

    If you looked in the code, you would see something like:

    <div class=”post-4 page type-page status-publish hentry entry”>
    <article>
    <div class=”post-container”>
    <div class=”post-header”>
    <h1 class=”post-title”>Search Input Page</h1>
    </div>
    <div class=”post-content”>
    <p>Find event or tour here.</p>

    The ‘page’ class in the div indicates it’s a page. It’s a similar set up for posts, only it says ‘posts’ in the div.

    To hide your title for pages, not posts, you start with that div class.

    To add CSS in the Apex theme, go to:

    • Dashboard
    • Apparance
    • Customize
    • Custom CSS

    Then add the code to hide <div class=”post-header”>. It’ll be something like:

    .page .post-header{
        display: none;
    }

    Note: You could also use the following just to hide the title, however, it leaves a real gap on the page, which you probably don’t want

    .page h1.post-title{
        display: none;
    }
    Thread Starter auroragordon

    (@auroragordon)

    Awesome, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post vs Page Titles’ is closed to new replies.