WordPress.org

Ready to get started?Download WordPress

Forums

Remove portion of post meta per category (6 posts)

  1. AMEEKER
    Member
    Posted 2 years ago #

    http://gec.angiemeekerdesigns.com/category/projects/

    Here is a link to the site I'm working on. I asked the theme author and he said it was too complicated. I've done it with other themes, but I can't figure it out with this one! :-(

    With a few categories, I need to remove the post date and author. In this theme, they both have some styling associated with them, too.

    Can someone help me figure out how to filter those out in the functions?

  2. Daniel J. Lewis
    Member
    Posted 2 years ago #

    What is the theme? If all else fails, you could just attach "display:none" to the appropriate classes for those categories.

    Note that each category is assigned to the <body> tag as a class. So you can target category-specific elements for CSS changes with:

    .category-projects .meta {}

  3. AMEEKER
    Member
    Posted 2 years ago #

    It's called Radial - purchased from Themeforest.

    The display: none will totally work. But I'm not following how to assign that to individual categories.

    Do you mean literally I would add to my css

    .category-projects .posted-date {
    display:none}

    changing the category-INSERT CATEGORY SLUG HERE until I knock them all out?

    I don't need to remove all of the meta data, just the .posted-date and .meta .written

    Sorry for the lameo response! You know that CSS isn't my strong point.

  4. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    as you are working with a commercial theme please keep contacting the theme's seller/author for support.

    general:
    use the category specific css class output by body_class() http://codex.wordpress.org/Function_Reference/body_class, together with the css classes of those elements which you want to remove, and add the usual display: none;

    example:
    .category-projects .posted-date { display:none; }

    using a tool such as Firebug http://getfirebug.com/ could help to identify the involved css classes.

  5. Daniel J. Lewis
    Member
    Posted 2 years ago #

    Yes, that's exactly what you can do. Each category page will have the same kind of class assigned to <body>. When in doubt, browse to the page and look at the classes on the <body> tag.

  6. AMEEKER
    Member
    Posted 2 years ago #

    Thanks guys - perfect. That wasn't hard at all. I don't know why the theme authors couldn't say that.

Topic Closed

This topic has been closed to new replies.

About this Topic