Remove Site Title and tagline From All Posts

  • Posted in : Read WP
  • Draider2001
    Participant

    Is there a way to remove the Site Title and Tagline from all posts, while having them remain on all other pages?

    I think it’s less distracting and aesthetically pleasing to just have only the Navigation menu in a post. All other pages besides posts are OK with site title and tagline.

    Draider2001
    Participant

    I used this in my custom css file;

    hgroup { display: none; }

    Is there a way to add this only to post pages?

    Mehmet S.
    Keymaster

    Hi,

    – paste to style > custom css:

    body.single hgroup { display: none; }
    
    Draider2001
    Participant

    Works like a charm! Thank you Mehmet!

    Mehmet S.
    Keymaster

    You are welcome.

    goombanomics
    Participant

    I was wondering how to remove the tagline from ALL pages of the site. I assume the code is the same as posted above, but which file and roughly where should the code be added. Thank you.

    Draider2001
    Participant

    Try hgroup { display: none; } in the custom ccs from on the theme option “Style” page.

    goombanomics
    Participant

    That actually got rid of both the title and the tag line.

    Draider2001
    Participant

    Go to your WordPress general settings and empty/clear the tagline field.

    goombanomics
    Participant

    That doesn’t work. When I erase the tagline field, and save, it doesn’t reflect on the site. Also, I want the whole tagline area to be gone and have the content moved up. Thanks very much for the help.

    Mehmet S.
    Keymaster

    Hi, try this custom css:

    .site-description { display: none; }
    
    goombanomics
    Participant

    That worked, but it left an empty hole where the tag line should be. It seems a little distracting.

    http://www.wheresbarry.com/wp-content/uploads/2014/02/Screen-Shot-2014-02-21-at-6.58.03-PM.png

    Is is possible to add more custom code that will move the navigator bar directly under the title? Thanks again for the help.

    ahmetsali
    Keymaster

    @goombanomics

    try this custom css code;

    .site-description {
        display: none;
    }
    h1.site-title a {
        border: 0;
    }
    h1.site-title {
        line-height: 1;
    }
    .site-header hgroup {
        padding-bottom: 0;
    }
    
    goombanomics
    Participant
Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register