ARCA INTERACTIVE

Web Design Blog

WPML & WPTouch Pro multi language menu fix

November 18th, 2011

 

Anyone that uses the WPML plugin with the WPTouch Pro plugin that has found issues in getting the main menu to switch languages when the site language is switched will find this code useful.

  1. Create a menu in the wordpress admin with a unique name example: “Mobile Sites Nav”
  2. Create the translated version of that menu for each of your languages.
  3. Find the menu.php file in your theme folder.
  4. add the code in red. note I am only showing for the language versions below. You will need to add a line for each language your site supports.

<ul>

<?php
$MenuName = ‘Mobile Site Nav’;

if(ICL_LANGUAGE_CODE==’en’){ $MenuName = ‘unique nav name’; }
?>         

<?php  if(ICL_LANGUAGE_CODE==’es’){$MenuName = ‘unique nav name’; }
?>             

<?php  if(ICL_LANGUAGE_CODE==’canada’){ $MenuName = ‘unique nav name’; }
?>

<?php while ( wp_nav_menu( array(‘menu’ => $MenuName )) ) { ?>
<?php wptouch_the_menu_item(); ?>

<?php if ( !wptouch_menu_is_disabled() ) { ?>
<li>

<a href=”<?php wptouch_the_menu_item_link(); ?>”>
<?php if ( wptouch_can_show_menu_icons() ) { ?>
<img src=”<?php wptouch_the_menu_icon(); ?>” alt=”" />
<?php } ?>

<?php wptouch_the_menu_item_title(); ?>
</a>

<?php if ( wptouch_menu_has_children() ) { ?>
<?php wptouch_show_children( ‘menu.php’ ); ?>
<?php } ?>
</li>
<?php } ?>
<?php } ?>
</ul>

 

 

Let me know if you found this useful.

WordPress Theme Store!

June 23rd, 2011

You can know search through many different clean and creative WordPress themes. Click here to view the available themes. Many more will be added soon. If you need help setting up the theme for your site once purchased or need a completely custom WordPress theme make sure to contact me for pricing.

Fairport Hots new website goes live!

October 16th, 2010

The all new and improved Fairport Hots Website is now live to go a long with the newly re-modeled building. Fairport Hots has proudly been serving Fairport and Rochester New York for over 10 Years. They are Famous for our Hot Plates, Fish Fry’s, Hot Subs, Homemade Meat Hot Sauce and Macaroni Salad. Check out the new site & logo designed and developed by myself by Clicking Here.

Harbor House of Rochester

August 16th, 2010

I recently took over all the website maintenance for the Harbor House of Rochester organization to help support the cause. The mission of the Harbor House of Rochester, Inc., is to become the best support to families for temporary lodging needs during health emergencies. The Harbor House is hosting its fifth Annual “And The Beat Goes On” Fundraiser on Sept. 19th, 2010 at the Burgandy Basin Inn. Click HERE to view their site and purchase tickets.

Fairport Hots new logo design!

June 5th, 2010

Fairport Hots contacted me to re-design their Logo and website.  Here is a sneak peak at the new logo design. The new website will follow shortly after to coincide with the re-modeling of the well known restaurant. Click Here to see the new Logo.

Palermosubs.com new site launches!

May 25th, 2010

The all new Palermo’s Subs & Pizza website has launched. The new site provides a clean and professional look for the well established business. It features Palermo’s full menu & specials just a click away. Check it out at www.palermosubs.com.

Follow me on Twitter!

April 9th, 2010

After a year of hearing that phrase I have finally joined the rest of the world and created a Twitter account. Please follow me to see all the latest buzz going on at Arca Interactive my Freelance Design Portfolio site.

ArcaInteractive.com 2.0 launches

April 6th, 2010

I have designed and developed an all new site for your viewing pleasure. The new site offers a fresh new design and layout to better serve usability for my clients and prospective clients. My new site uses the very popular and state-of-the-art publishing platform WordPress . The new site features and all new search function, “request a quote” form and web design blog. Please let me know what you think.

website templates and themes

Arca Interactive Web Design Blog is proudly powered by WordPress
Entries (RSS) and Comments (RSS).