WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Display of Posts in List (6 posts)

  1. jimfelder
    Member
    Posted 3 years ago #

    I'm wondering how I can remove the post Category when viewing the posts in a list.

    Example here:
    http://fhcc.org/wpdev/?cat=10

    I want it to show up like this:
    http://lifespringonline.com/?cat=60

  2. Digital Raindrops
    Member
    Posted 3 years ago #

    To do this just for the categories and not all pages and posts, you would need to do this in the archive.php.

    Adding an inline style to the theme class will not affect other page views.

    You will have code something like

    <h2 class="pagetitle">

    Just add an inline style rather than deleting the code

    <!-- Style edited by hide title JF -->
    <h2 class="pagetitle" style="display:none;">

    HTH

    David

  3. jimfelder
    Member
    Posted 3 years ago #

    Oh lame, guess this isn't a check box somewhere?
    That's why I purchased this template because it was supposed to be easier to customize. Oh well. I'll see what I can do.

    Can you speak to a non-coder and maybe explain it a little better?
    So I go to the archive.php file and where do I put this class?
    Then where do I add the second bit of code?

    Thank you

    Jim

  4. jimfelder
    Member
    Posted 3 years ago #

    OK, I found some code differences on each site but not sure where to change this.

    On my site I see:
    <div class="postcategory">Ministries </div>

    It is showing the postcategory

    On the other site it is like this:
    <div class="postcategory"></div>

    There's nothing there. Where do I change this on my site?

  5. jimfelder
    Member
    Posted 3 years ago #

    OMG! I fixed it all by myself!! Thanks for the code tip David. I just added the code you gave me here:
    <div class="postcategory" style="display:none;"><?php echo getMyCategories(); ?></div>

    Have a great day sir.

    Jim

  6. Digital Raindrops
    Member
    Posted 3 years ago #

    Great,
    Can you mark this one as resolved please.

    David

Topic Closed

This topic has been closed to new replies.

About this Topic