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.

The Jacksonville SEO Company For Your Business

By Dave Fogel | December 27, 2022

Looking for a Jacksonville SEO Company? You have come to the right place.  We have put together some helpful information about SEO that will hopefully answer some of the most common questions about SEO. What is SEO? An SEO (Search Engine Optimization) company helps businesses improve their visibility on search engines like Google, Bing, and…

What Are The Most Popular Facebook Ad Sizes?

By Dave Fogel | December 27, 2022

The most popular Facebook ad sizes are: 1200 x 628 pixels (1.9:1 aspect ratio): This size is recommended for most types of ads, including single image, carousel, and video ads. 1080 x 1080 pixels (1:1 aspect ratio): This square size is recommended for image and video ads that will be displayed in the news feed.…

Where Do Facebook Ads & Instagram Ads Appear?

By Dave Fogel | December 27, 2022

Facebook ads appear in a variety of places across the platform, including in the newsfeed, on the sidebar, and in Marketplace. In the newsfeed, ads are displayed alongside other posts from friends, family, and pages that have been liked. Ads are also displayed on the sidebar, where they appear alongside other suggested pages and posts.…

Posted in

Dave Fogel

Leave a Comment