-
Author
-
October 12, 2013 at 08:40 #4251TechnoAdmireParticipant
Thank u so much.
I have a question plz…
When I use this code in the footer widget the language switcher looks amazing seems as it comes with the them. it inherits the CSS styling from the theme itself,COPY CODEfunction language_selector_flags(){ $languages = icl_get_languages('skip_missing=0&orderby=code'); if(!empty($languages)){ foreach($languages as $l){ if(!$l['active']) echo '<a href="'.$l['url'].'">'; echo '<img src="'.$l['country_flag_url'].'" height="12" alt="'.$l['language_code'].'" width="18" />'; if(!$l['active']) echo '</a>'; } } }
Got this code from WPML website.
My question is can u utilize it and make it hidden not like pasting it into a widget in order to let the language switcher looks amazing?
Bcoz now when I past it into a widget it appears like coding stuff.Regard,
October 12, 2013 at 08:46 #4252TechnoAdmireParticipantNow am trying to do the same thing and it doesnt work. But, am wondering what happened before awhile :O when the language switcher inherited CSS of the theme … Plz if u have any idea how to make it the way am talking about provide it to me and I will be so thankful of u ….
October 12, 2013 at 09:40 #4255TechnoAdmireParticipantDear Author,
Regarding right to left, since the second language starts from right the opposite way of English language so what u suggest me to do?
I found a plugin called RTLer but the thing is that am not sure if it is workable with the theme nd how exactly sould I use it.
I already installed it and create the style.CSS file (has been generated using the plugin) and I can see the file in this path ” /wp-content/themes/sweetdate ” .
If it’s possible to assist me with this I will be so thankful of u dear.Also, I want u to tell me the way of posting the .mo for Arabic language that I created in order to get it ready for others.
Regards,
October 12, 2013 at 13:14 #4262TechnoAdmireParticipantHi,
I just found something useful regrading RTL in WPML ( http://wpml.org/2011/12/adding-rtl-support-for-theme/ ) please check the link and let me know if that is already ready in theme and if not can u add it later in the next update which will make the theme fully compatible with WPML even with RTL technique.October 12, 2013 at 20:32 #4285SQadminKeymasterYou have the option from the WPML plugin to show the language switcher in a widget.
The widget is styled by us to look good from the theme.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 12, 2013 at 20:38 #4286SQadminKeymasterHi,
You can upload the .mo file trough an uploading service like https://www.wetransfer.com/ and put the link hereTheme doesn’t have support for RTL by default. We will look over the link you sent. You can try some plugins that do that.
If you have the css that needs to be included for RTL, then you need to add it into header.php just inside the < head > tag like this:COPY CODE<link rel='stylesheet' href='http://path_to_css' type='text/css' media='all' />
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 1, 2014 at 01:58 #11669escortParticipantHELLO TechnoAdmire! Could you please send me the theme Arabic translation to escortlax@gmail.com? THANKS Buddy!
-
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.