[CODER] Removing categories from posts in Wordpress

Discussion Of All Legal Topics Is Fine Anything Goes. Be Respectful of Others. No Personal Information or Attacks.
All Traffic, Link, Banner, Push Notification and Advertising, Offers & Requests Here,.
Domains & Websites For Sale and Requests Here.
Keep One thread per person & No More Than 1 Weekly Bump.
Post Reply
User avatar
TheButcher
Administrator
Administrator
Posts: 17527
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

[CODER] Removing categories from posts in Wordpress

#1

Post by TheButcher » November 12th, 2019, 8:42 pm

Hi guys, I want to remove the "categories" listed in each post on my blogs. For eaxample the categories in this post. https://www.sponsorchat.com/blog/2019/1 ... swim-suit/

not show " Ass, Babes, Brunettes, Celebrities, Non-Nudes, Softcore"

I tried adding this to additional .css but nothing happened.
.entry-meta .cat-links { display: none; }

Peace

Colmike7
Banned
Banned
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#2

Post by Colmike7 » November 12th, 2019, 9:50 pm

It's .category-tag{
color:#888;
font-size:0.9em;
line-height:1.3em;
}

Then put in display:none; there for it to work ;)

edit: or just put category-tag in your code above. Whichever. :p




User avatar
TheButcher
Administrator
Administrator
Posts: 17527
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

#3

Post by TheButcher » November 12th, 2019, 10:28 pm

I must have done something wrong, I tried it, I even removed that block of code and the categories still show up in each post,\

Colmike7
Banned
Banned
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#4

Post by Colmike7 » November 12th, 2019, 10:32 pm

Skype me in the morning and I'll just remove it for you, it's been a long day and I'm about to get to sleep. When I added display:none; for .category-tag in inspect element mode, they disappeared.




User avatar
TheButcher
Administrator
Administrator
Posts: 17527
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

#5

Post by TheButcher » November 12th, 2019, 11:10 pm

Thanks colmike, I did it another way deleted this block of code
<div class="category-tag">
<?php if(get_the_category()){ ?>
<i class="fa fa-folder-open"></i> &nbsp; <?php the_category(', '); }?> <?php the_tags(' &nbsp; <i class="fa fa-tags"></i> &nbsp; ',', '); ?>
</div>
from index.php and content.php in the theme.

It worked, have a good evening and thanks for the help.

greatpornlinks
Verified Member
Verified Member
Posts: 1715
Joined: June 14th, 2018, 6:51 pm

#6

Post by greatpornlinks » November 13th, 2019, 8:09 am

Why would you take off the categories tags?
Never have your honey where you make your money.
~ HeidiHoe 2023

User avatar
TheButcher
Administrator
Administrator
Posts: 17527
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

#7

Post by TheButcher » November 13th, 2019, 10:41 am

greatpornlinks wrote: ↑
November 13th, 2019, 8:09 am
Why would you take off the categories tags?
I wanted to say this in a new topic, here it is https://www.sponsorchat.com/viewtopic.php?f=74&t=3825

[CODER] Removing categories from posts in Wordpress

Post Reply