[Resolved] Remove commas between tags (in post)

Home Forums Support Remove commas between tags (in post)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1107177
    sipahi

    Hello,

    1- I am styling in post tags. I can’t find where GP is outputting tags and edit that function. I am lost 🙁

    2- is there a way to get rid of tag icon (in the beginning of tags list) with 1 click?

    can you please share proper codes to tweak those 2 with me.

    #1107185
    sipahi

    Sorry guys

    The code Tom provided in a topic solved the issue.

    add_filter( 'generate_tag_list_output', function( $output ) {
        $tags_list = get_the_tag_list( '', '' );
    
        return sprintf( '<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', // WPCS: XSS ok, sanitization ok.
            esc_html_x( 'Tags', 'Used before tag names.', 'generatepress' ),
            $tags_list
        );
    } );
    #1107274
    Leo
    Staff
    Customer Support

    Glad you’ve figured out 🙂

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