• Hi, I’ve used some simple css to hide the .entry-header (display:none) so titles don’t show on my pages but now I’m adding a news (blog) page and want to be able to show header titles on this. Is there a way to target the header on the blog page so it shows but not on the other general pages? Whatever I try I just can’t seem to target this specifically.

    So titles to be hidden on here: https://zoilo.co.uk/about
    But show them on here: https://zoilo.co.uk/news/

    Any help?

    thanks
    gaz

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Gaz,

    You could get the title to display on your home page by adding the following snippet just below the custom CSS you’re using to hide the title on other pages:

    .blog header.entry-header {
        display: block;
    }

    Adding the above snippet below the other custom CSS will work to override it.

    Let me know how that goes or if you have any extra questions. ??

    Thread Starter gazbar

    (@gazbar)

    blimey that was quick! – thanks Siobhan, thats perfect! I must of tried about 20 combinations of things like that but for some reason just wasn’t quite getting it right!

    gaz

    I’m glad that helped, Gaz! ?? We’re right here if extra questions come up, too.

    Thread Starter gazbar

    (@gazbar)

    Sorry, one other problem just noticed.. Logo is not appearing on the News page as it is on the other pages, can you help?

    thanks
    Gaz

    Hi Gaz,

    Did you make edits to your theme’s files in order to display the logo in the top left? If so, the theme has five possible header files for different post or page types. You’d need to make the edit in all of them to guarantee that the logo appears on all pages of your site:

    • header.php
    • header-featureimage.php
    • header-para.php
    • header-portfolio.php
    • header-singleportfolio.php

    As an extra note: Please do not edit your theme’s files directly. Any changes you make there will be lost when it comes time to update.

    Instead, you should set up a child theme. In case you’re unsure, the following guides provide a good introduction to child themes, including steps to set one up:

    Let me know how you get on!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide titles on pages but show on blog?’ is closed to new replies.