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.

Removing “Allowed Tags” on the comment form.

By Dave Fogel | March 12, 2011

This solution is from the wordpress forums from Emsi.  It is not guaranteed to work on all themes, but it did work fine for me on my theme based on twenty ten. Follows these steps: 1. back up your functions.php file. 2. Add the following to your functions.php file function my_comment_form_args($user_identity, $post_id, $req) { $args…

How to remove the website field from the comment form

By Dave Fogel | March 12, 2011

I had a customer request to remove the website field in the comments.  You would think this would be a relatively simple thing to do, but not so.  After an hour of searching, I found a solution that worked great.  Here is the link. http://techhacking.com/2011/02/04/wordpress-how-to-remove-the-website-field-from-the-comment-form/

Google Website Optimizer and WordPress

By Dave Fogel | February 24, 2011

Today I started a test using Google Website Optimizer on WordPress. The manual way of doing this would mean you would need to create 3 different headers and input the correct tracking code in each. While it is not a ton of work, it is a pain in the butt. The better way to do…

Posted in

Dave Fogel

Leave a Comment