Archived topic
removing Category links below posts
10 replies · Started by Ashley on April 26, 2017
hi Tom,
am building this site and am facing a slight problem.
When I click on any post (excerpt) on my homepage, the post opens with the Category and links below.
Tried inserting the following in Simple CSS with no success.
add_filter( 'generate_show_categories','tu_alter_category_meta' );
function tu_alter_category_meta( $meta ) {
// Remove on categories
if ( is_category() ) {
return false;
}
// Otherwise, show the meta
return $meta;
}
Please help , thanks
Hi Ashley,
That's a function so try adding it this way: https://docs.generatepress.com/article/adding-php/#code-snippets
Let me know.
I have been working on this all night but to no avail. I want the meta category and title to appear but without the hyperlink attached. I found this css code for another theme and was hoping you had one for GP
.post-meta .cat-links a {
cursor: default;
pointer-events: none;
}
Any help you can provide is greatly appreciated as my category template looks horrible and i need to create a page with grid, etc.
Thanks, love the product! Huge Fan
Give this a shot:
.cat-links a {
cursor: default;
pointer-events: none;
}
Thanks for the effort but no that does not work either. It's odd, I know it has nothing to do with GP just strange, so far nothing has worked.
by the way the new header feature is awesome!
Hmm, I tried that and it works for me. Can you link me to an example post?
Glad you like it!
Sorry to late Tom and thank you for taking the time to look at this I know your busy with more important things
http://109.199.127.117/~danmorri/trump-sends-clear-message-base-arpaio-pardon/
also this site is soon to move to production http://www.danmorrisshow.com
This page: http://109.199.127.117/~danmorri/trump-sends-clear-message-base-arpaio-pardon/ is actually using Elementor.
Maybe try this:
.ae-element-post-category-icon a,
.ae-element-post-category-label a {
cursor: default;
pointer-events: none;
}
First thank you, thank you, thank you
Second, I feel absolutely embarrassed I did not pick up on that, I have been up entirely to long!
You're very welcome :)