Removing CSS Code to remove titles for only a single page

  • Unknown's avatar

    Hi everyone,

    I am using a CSS code to remove titles from pages because I don’t like the way they look when looking at individual pages. However, this is removing a section for “Latest News,” where I need the title to display.

    Is it possible it remove the overreaching CSS code only for a single page while keeping the CSS in place for everything else? I am not a coder so wouldn’t know how to do this :(

    Any help is greatly appreciated?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    This is the CSS that is currently present.

    .headline {
    	display: none;
    }

    Anyone know how to edit it to say something like, “headline display:none, except “Latest News” page?

  • Unknown's avatar

    Hi there, I’ve looked at your site, and yes we can remove the titles from only certain pages. I’m not seeing a “latest news” page on your site or in the list of pages in the dashboard. Did you delete that page? I do see your “blog” page, but at Reading Settings I do not see that you have that set as your Posts page.

    If you can let me know which page you wish to exclude from the hiding of the titles, I would be happy to help with that.

  • Unknown's avatar

    thesacredpath,

    Hi, WP support told me to create a category, “Latest News” and that would be the title on the section where top posts would fall. Then, I set that category in the theme menu for Featured News Category.

    Am I doing something wrong?

  • Unknown's avatar

    Absolutely not doing something wrong. One of the beauties of using Categories is that the Category pages have the same styling as the blog pages, which means there isn’t a bunch of CSS required to get the display posts shortcode listings to look like the normal. The display posts shortcode has to be done in a way so that it works on all themes cleanly, which means that it has minimal special styling. That way they work and look consistent from theme to theme.

    If you need help on anything, just let me know.

  • The topic ‘Removing CSS Code to remove titles for only a single page’ is closed to new replies.