Rename Category and Tag and make them bold
-
I’m using the Vogue theme, and using the Posts for the members so customers can search for a sewing professional. I was able to get code from a WP Support person to change the word “Category” to “Speciality” and “Tags” to “Location” in the search results. I need to bold Tags and Location, but I can’t figure out how to get that to work (tried both html tags and CSS). When I tried using html tags, they just print on the page.
Could you please take a look at the code I was provided with and let me know how to accomplish that? I’d really appreciate it.
/** * Prints HTML with meta information for the categories, tags and comments. */ function vogue_entry_footer() { // Hide category and tag text for pages. if ( 'post' == get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'vogue' ) ); if ( $categories_list && vogue_categorized_blog() ) { printf( '<span class="cat-links">' . esc_html__( 'Posted in %1$s', 'vogue' ) . '</span>', $categories_list ); // WPCS: XSS OK } /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html__( ', ', 'vogue' ) ); if ( $tags_list ) { printf( '<span class="tags-links">' . esc_html__( 'Tagged %1$s', 'vogue' ) . '</span>', $tags_list ); // WPCS: XSS OK } } if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo '<span class="comments-link">'; comments_popup_link( esc_html__( 'Leave a comment', 'vogue' ), esc_html__( '1 Comment', 'vogue' ), esc_html__( '% Comments', 'vogue' ) ); echo '</span>'; } }
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Rename Category and Tag and make them bold’ is closed to new replies.