• eemoore

    (@eemoore)


    I’d like to remove these items from the display. There are some older threads on this topic that involve editing code. I’m hoping that there is now an easier way to not have the author “Ellen the webmaster” on every single post and “Uncategorized” for category on every single post. I’m not trying to hide anything, it’s just not relevant for our site and looks ugly. thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • stephencottontail

    (@stephencottontail)

    Your theme may have an option to hide that information, but if not, I’m afraid your only option is to use some custom CSS (or edit the theme’s templates in a child theme). Which theme are you using? Can you post a link to your site?

    Thread Starter eemoore

    (@eemoore)

    My theme is Spacious by Themegrill, my site is https://www.uproc.lib.mi.us/pwplinfo/ . Am learning as I go. I’ve got a book here with a chapter on child/parent themes. I suppose I will have to read it after I clear out a little bit of brain space to make room for the new material.

    Is this (child/parent theme) how I can control how the header image displays on each page as well? Right now the display is perfect for the front page, and 50% of the other pages, but then there is the other 50% of the site where I’d like either a static header image or no header image.

    stephencottontail

    (@stephencottontail)

    Have you solved your first issue? I looked around your site and I didn’t see any pages there with the text “Ellen the webmaster” or the category “Uncategorized”.

    For your second issue, your theme doesn’t have any options for fine-grained control of the header image, but you could use some custom CSS to hide the header image on specific pages. You’ll need to know the page ID for this to work, which you could find by right-clicking on the page and choosing the option “View Source” or “Inspect Element” or something along those lines. When you see the source, look for the <body> tag; it’ll look something like this:

    <body class="page page-id-270 page-template-default ">

    The key there is the page-id-xxx (270, in this case). From there, you can write some custom CSS to hide the header image:

    .page-id-270 .header-image {
      display: none;
    }

    You could then repeat that for every page.

    Thread Starter eemoore

    (@eemoore)

    The author and category designation follow every post (not page), the posts are on the main page, which holds the blog roll. Right now it’s not a static main page. I haven’t solved this, yet, but I think I understand the path I need to follow, just haven’t had time to explore that line of thinking and completely digest the concept yet.

    I mean for this to be more of a traditional web site, rather than a blog site. The blog roll format serves pretty well for the news updates for our library. I like having the blog/news widget appearing on other pages. However, I would like to put a title in front of that section so our users know what they are looking at. I tried creating a page today called “main” and setting it as both static and blog page, and the wordpress editor warned me not to do that. Not sure why.

    Thanks for the lead on how to tweek the header image display. Was thinking tossing the search widget up top might mess with the responsiveness of the theme, and I don’t want to do that. I can always just give in prominence where it is.

    The rough spots in the site will all take me a bit to smooth out as I am just learning, but all your input at last gets me headed in the right direction. So thank you.

    Thread Starter eemoore

    (@eemoore)

    Just realized I left the site without unchecking the static page box. Hopefully when you look at it again you’ll see what I mean about the posts.

    stephencottontail

    (@stephencottontail)

    To hide the meta information, use this custom CSS:

    .entry-meta-bar {
      display: none;
    }

    For your second issue, you’d have to make a child theme, copy home.php from the parent theme to the child theme, and then add your header on line 17, between

    <div id="content" class="clearfix">

    and

    <?php if ( have_posts() ) : ?>

    I tried creating a page today called “main” and setting it as both static and blog page, and the wordpress editor warned me not to do that. Not sure why.

    Where did you see this error? What was the exact content of the error message?

    Thread Starter eemoore

    (@eemoore)

    The warning message comes up if I go to Settings-> reading-> “Front page displays”

    And then if I check “a static page” and select the same page as both front page and posts page.

    I just was hoping with a static page I could get more control over the design and be able to add a title to the blog section. I think I might have a workaround if I can insert a text widget there. Will try that. Right now I’ve a blog post that is serving as title, but I’m not crazy about that. I figured out how to remove one widget that I didn’t want on the front page, so I am already feeling more in control than I did yesterday at this time.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘removing author and category info from posts’ is closed to new replies.