Hi.
Is that translation ready in the theme?
Which theme is it?
Hey, What do u mean by “ready” ?
Theme – HitMag
For theme localization, language files are used (see https://developer.wordpress.org/apis/handbook/internationalization/localization/#translating-themes-and-plugins).
And in theme templates, translate functions are used, like __()
, _e()
or _x()
.
I asked if the theme has one of those functions in “by” word.
In HitMag theme, there is it. Around line 64 of /hitmag/inc/tempalte-tags.php.
$byline = sprintf(
esc_html_x( 'by %s', 'post author', 'hitmag' ),
'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
);
Legend ! It works! thank you.
I have another question and it would be great if you could help me, my “search” widget button is on the opposite way, I mean it’s made for english readers i guess, and in my language we read and write from right to left, so need to change somehow the direction of the button if it’s possible.
https://ibb.co/HxRC9GW
The red arrow it’s where the button should be.
How about add css like this:
.search-form .search-submit {
right: unset;
left: 0;
}
It workssss !! :D:D
Thank you so much again for your great help!
- This reply was modified 5 days, 6 hours ago by
yda5.
Congrat!
Pls mark as resolved, thanks.