• Skip to main content
  • Skip to primary sidebar

WPDigs

You are here: Home / Coding / WordPress Multi-language setup comparing WPML and Polylang on the Enfold theme

February 13, 2017 by Todd Leave a Comment

WordPress Multi-language setup comparing WPML and Polylang on the Enfold theme

If you are looking to add multilingual capabilities to your website. Here is a comparison on how to get started with WPML or Polylang.

Just a very simple comparison of the premium language plugin WPML and the free Polylang. Both are pretty easy to set up and work very well with the Enfold theme from Kriesi on ThemeForest.

Enfold
https://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990?ref=Tandypress

WPML

Home

Polylang

 

Code used in this tutorial for WPML:

Goes in your Enfold child theme functions.php

// Adds Language directory path points to Enfold Child Theme
add_action('after_setup_theme', 'avia_lang_setup');
function avia_lang_setup()
{
$lang = get_stylesheet_directory()  . '/language';
load_child_theme_textdomain('avia_framework', $lang);
}

// Removes Country Flags From Menu
add_action('init','ava_remove_lang_flags', 9999);
function ava_remove_lang_flags() {
	remove_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 9998, 2 );
	remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 9998, 2 );
        remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10);
        add_action('avia_after_footer_columns', 'avia_wpml_language_switch', 10);
}

Goes in your Enfold child theme CSS

/*CSS to hide languages  */

.avia_wpml_language_switch li .language_flag {
display: none !important;
}

.avia_wpml_language_switch li span.language_native{display: block !important;}


.menu-item-language-current {display: none !important;}

 

Filed Under: Coding

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

updraft_plus


Multilingual WordPress

Get Beaver Builder Now!

WordPress form builder - formidable forms

Copyright © 2026 · Executive Pro on Genesis Framework · WordPress · Log in