Site logo

[Resolved] removing Category links below posts

Home Forums Support [Resolved] removing Category links below posts

Home Forums Support removing Category links below posts

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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

    #310691
    Leo
    Staff
    Customer Support

    Hi Ashley,

    That’s a function so try adding it this way: https://docs.generatepress.com/article/adding-php/#code-snippets

    Let me know.

    #375855
    Jonathan

    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

    #376220
    Tom
    Lead Developer
    Lead Developer

    Give this a shot:

    .cat-links a {
        cursor: default;
        pointer-events: none;
    }
    #376263
    Jonathan

    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.

    #376264
    Jonathan

    by the way the new header feature is awesome!

    #376270
    Tom
    Lead Developer
    Lead Developer

    Hmm, I tried that and it works for me. Can you link me to an example post?

    Glad you like it!

    #376451
    Jonathan

    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

    #376476
    Leo
    Staff
    Customer Support

    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;
    }
    #376706
    Jonathan

    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!

    #376803
    Leo
    Staff
    Customer Support

    You’re very welcome 🙂

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.