Support » Theme: GeneratePress » Change comma divider between category meta

Viewing 6 replies - 1 through 6 (of 6 total)
  • Ah, man!!
    Don’t worry. I’d somehow reverted to the main theme rather than the child, which is why my child edits weren’t having any effect. Not sure how that happened but I’ve fixed it now.

    Thanks all the same (before you had to indulge me : )

    • This reply was modified 1 year, 2 months ago by Morphim.
    Theme Author Tom

    (@edge22)

    This is the most update-safe way to change that, just in case anyone else is wondering:

    add_filter( 'generate_category_list_output', function( $output ) {
        $categories_list = get_the_category_list( ',' );
    
        if ( $categories_list ) {
            printf( '<span class="cat-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',
                esc_html_x( 'Categories', 'Used before category names.', 'generatepress' ),
                $categories_list
            );
        }
    } );

    Then of course change the comma to whatever 🙂

    How to hide the featured image from the single post?

    If I hide, Does it affect my website SEO?

    Theme Author Tom

    (@edge22)

    Hi there,

    Any chance you can open a new support topic? We’ll be happy to provide some code for you 🙂

    Thanks!

    Can I just add, for anyone else looking at this, that the code goes within the functions.php of a child theme.

    Thanks very much, Tom. Your theme and support is second to none : )

    Theme Author Tom

    (@edge22)

    Thank you! Really appreciate that 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Change comma divider between category meta’ is closed to new replies.