Recently we worked with WPML and the Genesis Framework and had a very hard time getting the Footer to Translate correctly.
The two things we needed to do was “Return to Top” and the credits for the site design.
First we were using Genesis Simple edits to change the footer, but that did not work well at all. We tried several tutorials, but none of the worked.
So we disabled the plugin and dug into functions.php. As always, make sure you backup your functions.php before making any changes.
So with simple edits disabled, we did a search for “return to top” and then entered a translation string for it.
That solved one problem. Next was the credits.
To do that we created a custom credit with the following code.
//* Customize the credits
add_filter( 'genesis_footer_creds_text', 'custom_footer_creds_text' );
function custom_footer_creds_text() {
echo '';
echo icl_translate( 'wpml', 'my-copy-right', 'Copyright' );
echo ' © ';
echo date('Y');
echo ' · Enkelson · ';
echo icl_translate( 'wpml', 'site-design', 'Web Design By:' );
echo ' NetViper Interactive';
echo '
';
}
In order to get the words translated that we wanted, we had to put in the translation code. So we wanted “copyright” and “Web Design Buy”.
These lines allow us to find it string translation.
echo icl_translate( ‘wpml’, ‘my-copy-right’, ‘Copyright’ );
echo icl_translate( ‘wpml’, ‘site-design’, ‘Web Design By:’ );
So then we simple search and enter the translation just like doing copyright.
Hopefully this helps you out.
How much do website updates cost?
If you already have a website and want updates done, or new pages added, we charge $75 per hour. Unlike other companies in Jacksonville and St. Augustine that bill you for an hour with a small update, we charge in 15-minute increments saving you money. We will always provide you with an estimate of how…
Where do I get images for my website?
We highly recommend taking your own images for your website. Almost any modern phone can take great pictures. We can edit them and make them pop for you. Having your own images makes your website feel more genuine and gives customers a better idea of your company. Most customers can spot a stock photo from…
Can you create copy / content for our website?
Absolutely! Our copywriter Blair does excellent work and has been creating compelling copy for our clients for years. His content is also SEO focused, helping you rank better in search engines. Blair has done content on pretty much any subject you out there. We also create copy for blog posts to help keep your websites…