WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Hiding Page Title (13 posts)

  1. floridawebguy
    Member
    Posted 1 year ago #

    I'm working with the theme gridiculous and am trying to hide page titles. I've read through all of the forms and can't find where to put any code to hide them on all pages. Any insight?

    My website - http://touchofred.net/

  2. AK Ted
    Member
    Posted 1 year ago #

    I'm still new to WP, but one way to do it is add the following in Appearance | Edit CSS:

    .post-title {
      visibility: hidden;
    }

    As I said, I'm new, so there might be a better way to do this.

    This is assuming, e.g., that you're talking about hiding the "Home" text under your "Testimonials" box on the homepage and "Testimonials" text from "Testimonials" page.

  3. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    The above will leave a space in the page -- if that is not desirable, use "display: none" instead.

  4. floridawebguy
    Member
    Posted 1 year ago #

    I have many different templates within the Editor tab. Under the main style.css, where exactly does that go? I'm assuming it's under "Stylesheet" which is style.css and not Page Template (page.php)?

    Thank you all!!!!!!

  5. AK Ted
    Member
    Posted 1 year ago #

    Ah, good catch, WPyogi.

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Please do not post lengthy code here per the forum guidelines. CSS is all visible on your site anyway. So please now use the edit button and remove all that code -- or a mod will do it anyway.

    You also should not make any changes in theme files -- make a child theme:

    http://codex.wordpress.org/Child_Themes

    Then put the code suggested in the child theme style.css file.

  7. floridawebguy
    Member
    Posted 1 year ago #

    I've tried it in different places and can't figure out where those lines of code belong. Thanks again WPyogi and AK Ted.

  8. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    So make a child theme and then they go in the new style.css file... Really, if you make changes in theme files, they will all be erased when your theme is updated -- and you really don't want to go there :).

  9. floridawebguy
    Member
    Posted 1 year ago #

    I'm sorry for so many questions - this is my first site!
    Below is the style.css folder in my child theme. It is destroying the site entirely. Any insight?

    /*
    Theme Name: Gridiculous
    Description: Child theme for style.css
    Author: Jared
    Template: gridiculous
    */
    .post-title {
    display: none;
    }

  10. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    No problem on the questions -- that's why we're here :). You're missing a critical line of code in that stylesheet...put this line right under the */

    @import url("../gridiculous/style.css");

    What that does is pull over all the regular styles -- so yeah, if it's missing the site is meltdown!

  11. floridawebguy
    Member
    Posted 1 year ago #

    You guys are amazing! THANK YOU!!!!!

  12. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Great job! And now you're set with the child theme -- it's actually a very cool concept. Have fun and come back if you run into more questions.

  13. floridawebguy
    Member
    Posted 1 year ago #

    I have one more question for you guys - I just added a new page to start adding posts and the post titles are now hidden too. How do I only hide page titles, not post titles?

    [ Please do not bump, that's not permitted here. ]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.