- This topic has 10 replies, 4 voices, and was last updated 8 years, 7 months ago by
Leo.
-
AuthorPosts
-
April 26, 2017 at 2:06 pm #310686
Ashley
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
April 26, 2017 at 2:13 pm #310691Leo
StaffCustomer SupportHi Ashley,
That’s a function so try adding it this way: https://docs.generatepress.com/article/adding-php/#code-snippets
Let me know.
August 30, 2017 at 2:25 am #375855Jonathan
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
August 30, 2017 at 10:54 am #376220Tom
Lead DeveloperLead DeveloperGive this a shot:
.cat-links a { cursor: default; pointer-events: none; }August 30, 2017 at 11:45 am #376263Jonathan
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.
August 30, 2017 at 11:48 am #376264Jonathan
by the way the new header feature is awesome!
August 30, 2017 at 11:53 am #376270Tom
Lead DeveloperLead DeveloperHmm, I tried that and it works for me. Can you link me to an example post?
Glad you like it!
August 30, 2017 at 5:53 pm #376451Jonathan
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
August 30, 2017 at 7:49 pm #376476Leo
StaffCustomer SupportThis 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; }August 31, 2017 at 6:58 am #376706Jonathan
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!August 31, 2017 at 9:07 am #376803Leo
StaffCustomer SupportYou’re very welcome 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.