Grid in Homepages in diferent languages

Professional social WordPress theme with metro design, fully-adjustable grid widget and BuddyPress support.
GK User
Sat Jan 18, 2014 7:41 pm
Hi,

I would like to know what should I do to have my Grid in the different versions of my homepage, which I tanslated using the WPML string. It appears now just on the Spanish version, which i Spanish.

Can I define different Grids for the different languages? That is useful. The problem is that when I set the widget rules, I can only select type of page to add it to the rule (e.g. Homepage, Contact...) and not anything on languages or so.

Thanks for your kind help

Alejandro
User avatar
Fresh Boarder

GK User
Sat Jan 18, 2014 8:28 pm
Hi,

In this case, you should use another plugin: widget logic, check this similar thread:
https://www.gavick.com/forums/storebox- ... ic#p130798

then you can use e.g. 2 Grid widgets depend on language.
User avatar
Moderator

GK User
Mon Jan 20, 2014 4:42 pm
Hi Piotr,

I do not understand what should I do. I visited the link you sent and it is not the same as my case. This is important for us, it is the home!

Alejenadro
User avatar
Fresh Boarder

GK User
Tue Jan 21, 2014 9:17 pm
First of all you have to install widget logic plugin, then in first GK Grid you have to use your default sources (in spanish) and use this code:
Code: Select all
ICL_LANGUAGE_CODE == 'es'
then you have to put another GK Grid widget with sources in your second language and use another code, e.g.
Code: Select all
ICL_LANGUAGE_CODE == 'en'
for english.
User avatar
Moderator


cron