Translation 'About The Author'

Hi,

I want to translate ‘About The Author’. Changed the .mo and .po file and uploaded it into the /wp-content/languages folder. However it keeps showing up in English.

Im using the stack Integrity. Theme, WP, plugins, everything is up-to-date.

Thx!

Hey @Marco,

If you’re using Cornerstone, please note that it’s Text Domain is cornerstone and it has its separate .pot file.

Please follow the guide suggested in our Translation article. You might want to use third party plugins for easier setup.

Once you have tried that or that is already your setup, we would need WordPress Admin and FTP access so we could check the page and your translation setup.

Thanks.

Hi,

The ‘Author’ block is loaded automatically in every single post.
using this code in functions.php (Child theme):

// Author Field below the post content - Single page only.
// =============================================================================

add_filter( ‘the_content’, ‘custom_author_code’);

function custom_author_code($content) {
if ( is_single() ) {
return $content . do_shortcode(’[author title=“About the Author”]’);
} else {
return $content;
}
}

b.t.w. the Author twitter link is not working correctly.
It adds the name of the post in the url…

Thx!

Hi There,

Please change your code to this:

add_filter( 'the_content', 'custom_author_code');
function custom_author_code($content) {
	if ( is_single() ) {
		return $content . do_shortcode('[author title="'.__("About the Author", '__x__').'"]');
	} else {
		return $content;
	}
}

If you use the WPML or Polylang plugin, the text should be able to translate.

Hope it helps :slight_smile:

Hi,

Yes, thx the new code works perfect! :slight_smile:
How can I create some more space above the author block?

And did you read my other question in my previous reply:
the Author twitter link is not working correctly.
It adds the name of the post in the url…

Thx!

Hi There,

Please add this custom CSS under Theme Options > CSS:

.single-post .x-author-box {
    margin-top: 30px;
}

Your website is under construction mode. Would you mind turning it off so we can take a closer look?

Thank you.

Hi,

Thx for your fast reply!
Under Construction mode is turned off.

Hi there,

Sorry, but the under construction mode is still active on the site.

Kindly temporarily disable it so that we can check this further.

Thank you.

Hi,

Under Construction mode is disabled.
Thx!

Hi There,

The under construction mode is still active on my end, even I tried in the private mode:

Could you please double check?

Thanks.

Hi, Sorry. Now it’s disabled.

Hey @Marco,

You’ve used full URLs for your Facebook and Google Plus links but not for Twitter. You can change it in Users > Your Profile.

I currently don’t see the author social fields in my test sites but maybe it’s just on my end. I’m currently investigating.

If you don’t see the fields also, you will need to update the Twitter link via functions.php. The code you will put in your functions.php for ONE TIME ONLY is this:

add_user_meta( 5, 'twitter', 'http://twitter.com');

5 is the user id. You can get your user ID by following this third party article https://rudrastyh.com/wordpress/get-user-id.html

Change the Twitter URL with the Full URL of your Twitter profile.

After it’s updated, remove the code.

Hope that helps.

Hi,

Aha, I got confused because of the Wordpress text. See screenshot :joy:

Thx for your support!!

You’re welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.