[Resolved] Hiding term description

Home Forums Support [Resolved] Hiding term description

Home Forums Support Hiding term description

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1637616
    Bob

    I’m looking to hide the term description on archive pages, using PHP in my functions file.

    It’s appearing within

    ; I’m not sure if that is general WordPress or GenerpatePress specific.

    I realize I can just hide it with CSS, but prefer to have it gone completely in that spot. I’ve tried different approaches using hooks but can’t get it to work.

    #1637656
    Leo
    Staff
    Customer Support

    Hi there,

    Try this PHP snippet:

    add_action( 'wp', function() {
            remove_action( 'generate_after_archive_title', 'generate_do_archive_description' );
    } );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Let me know if this helps ๐Ÿ™‚

    #1638103
    Bob

    That works, thanks!

    #1638687
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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