• Resolved DebT

    (@debbiet)


    The page link is just a “test” page on my personal site to see if I could find a very simple way to set up a small search for a sewing professionals referral site. There are only about 30 members, so I thought the easiest way would be to use the default Posts (they do not now and never will have a blog). I only need to set up 16 Categories (their sewing specialities) and am using Tags for geo location (N, NE, E, SE, S etc), so potential customers will have three different ways to search.

    If you choose “Home Décor” you’ll get this page [ redundant link removed ]. Is there a way for me to rename “Posted in” and “Tagged” to something more fitting?

    I am trying to use as few Plugins as possible, and would like to avoid changing code (since I’m not a coder). But I will be using a child theme so am willing to do whatever it takes to get this perfected.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • https://developer.www.ads-software.com/themes/advanced-topics/child-themes/#using-functions-php
    in your child theme, in functions.php, add:

    /**
     * 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>';
    	}
    }

    and change the corresponding words in there.

    please consider to ask any further theme related questions in https://www.ads-software.com/support/theme/vogue

    Thread Starter DebT

    (@debbiet)

    @alchymyth thank you so much, that works!

    I’ll be using a different theme for the client, will definitely keep that in mind with this code and will ask the theme developer for help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Renaming “Posted in” and “Tagged”’ is closed to new replies.