• Hi, can you please help me on how to have the string “You may also like” (at related posts section) translated to PT-BR language ? If possible, without installing a plugin… thanks in advance.

    Also, how to hide the related posts author ?

    Also, just below the displayed post comments section how to hide previous / next navigation ?

    Thanks in advance, kind regards, Paulo.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @pauloperes,

    To hide your related post author and to hide previous / next navigation, please add the following CSS:

    .related-posts .author {
        display: none;
    }
    
    .related-posts .entry-meta span {
        border-left: none;
    }
    
    ul.default-wp-page {
        display: none;
    }

    Help link?https://docs.themegrill.com/knowledgebase/where-do-i-add-my-custom-css/

    And to translate the string “You may also like”, you must activate the child theme. You can get knowledge about child theme and download the accelerate child theme from below link.

    https://themegrill.com/blog/tutorial-creating-wordpress-child-theme/

    Now that you’ve downloaded and activated the child theme, add the below code in the functions.php file.

    function eStore_text_strings( $translated_text, $text, $domain ) {
    	switch ( $translated_text ) {
    		case 'You May Also Like' :
    			$translated_text = __( 'Você pode gostar', 'estore' );
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'eStore_text_strings', 20, 3 );

    P.S. You don’t have to recreate child theme if you have already.

    Thanks and Regards,
    Milan

    Thread Starter pauloperes

    (@pauloperes)

    Dear Milan, thank you so much !

    1) about related-posts issues : it worked perfectly ! you’re the best !
    2) child-theme issues : I’ll need some more time to get into this and as soon as possible I’ll comment here.

    Again, thank you so much. How can I make a positive comment to your boss about how good professional you are ? Personally I think people deserve praise when they do a good job. Take care, kind regards, Paulo.

    Hi @pauloperes,

    I hope you were able translate and if there’s any issue, please let us know.

    If you liked our theme and enjoying the support we would be thrilled if you drop a review. Your review would be an enormous help.

    Thanks and Regards,
    Milan.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I translate “You May Also Like” ?’ is closed to new replies.