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.

Google Panda 3.3

By Dave Fogel | April 11, 2012

Google released Panda 3.3 update in February. Though 40 updates were done, we haven’t seen any change in ranks for the website we do SEO for. What stands out the most to me is: Link evaluation. We often use characteristics of links to help us figure out the topic of a linked page. We have…

Google says SEO is not SPAM

By Dave Fogel | October 26, 2011

Well, it’s official. Matt Cutts, the head of Google’s Web spam team, says that SEO (Search Engine Optimization) is not spam. This is not a big surprise to many of use that have been in the industry a lot time, but it helps justify what we do to clients who are not really sure if…

WP-Admin goes blank

By Dave Fogel | October 26, 2011

This can be a serious problem and mean one of your plugins has caused a lot of problems with your site. It is a scary experience when you cannot log in to your own site. That being said, try this first. Look at your functions.php file and find any empty spaces at the top or…

Posted in

Dave Fogel

Leave a Comment