WPML and Genesis Footer

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.

Are Facebook ads worth it?

By Dave Fogel | December 27, 2022

Facebook ads are becoming increasingly popular among businesses of all sizes, as they offer a low-cost, highly-effective way to reach a large audience. But are they really worth it? The answer is yes! Facebook ads can offer an unparalleled reach, allowing you to target specific audiences, demographics, and interests. This means that you can target…

9 Reasons why Facebook Ads are effective

By Dave Fogel | December 27, 2022

Facebook has a massive user base, with over 2.934 billion monthly active users as of 2022. This means that businesses have a vast pool of potential customers to target with their ads. Facebook’s ad targeting options are highly specific and granular. Businesses can target their ads based on demographics, interests, behaviors, and more. This allows…

7 reasons why Google Ads are important

By Dave Fogel | December 20, 2022

Google Ads is a powerful platform that allows businesses to advertise their products or services through Google’s search engine, search partners, and other properties, such as Google Maps and YouTube. Here are seven reasons why Google Ads is important for businesses: Reach new customers: Google Ads allows you to reach a wider audience and attract…

Posted in

Dave Fogel

Leave a Comment