Removing "/" and categories from blog Index and individual posts

Hi Guys,

So searching the formums I found some code that allowed me to hide the author but for the life of me I can not figure how to remove the “/” next to date or remove the categories that appear below each post. Here is the CSS I found.

.p-meta span:nth-child(3) {
display: none;
}
.p-meta span:nth-child(1) {
display: none;
}
.p-meta span:nth-child(2) {
display: none;
}

What am I missing and here is the page - https://dcgstrategies.com/blog/category/local-governments-agencies/

Hello Skeeter,

Thanks for asking. :slight_smile:

You can add following CSS under Pro > Theme Options > CSS and let us know how it goes:

.p-meta>span:after{display: none;}

.entry-footer {
    display: none;
}

1- I have found the proper CSS code selector using the Chrome browser Developer Toolbar: https://www.youtube.com/watch?v=wcFnnxfA70g

2- For the CSS code itself, I suggest that you get started with this tutorial: https://www.youtube.com/watch?v=yfoY53QXEnI

Thanks.

Hello Prasant,

So you guidance was very helpful with the exception I would ideally like to keep the date if all possible minus that “/” that sits behind it. IF I use:

.p-meta>span:nth-child(2):
display: none;
}

I can remove the entire date which get’s rid of the “/” but that is not ideal

any other suggestions and thank you!

Hi Skeeter,

If you only want to keep the date in the meta display, please try this code instead:


.p-meta span,
.p-meta>span:after {
    display: none;
}

.p-meta span:nth-child(2) {
    display: block;
}

Hope this helps.

1 Like

Hey @Jade You are a rock star girl! This was perfect! Thank you.

2 Likes

On behalf of my colleague, you are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.