This topic has 6 replies, 3 voices, and was last updated 10 years by escort.

  • Author
  • #4251
     TechnoAdmire
    Participant

    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 CODE
    
    function 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,

    #4252
     TechnoAdmire
    Participant

    Now 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 ….

    #4255
     TechnoAdmire
    Participant

    Dear 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,

    #4262
     TechnoAdmire
    Participant

    Hi,
    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.

    #4285
     SQadmin
    Keymaster

    You 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 solution
    #4286
     SQadmin
    Keymaster

    Hi,
    You can upload the .mo file trough an uploading service like https://www.wetransfer.com/ and put the link here

    Theme 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 solution
    #11669
     escort
    Participant

    HELLO TechnoAdmire! Could you please send me the theme Arabic translation to escortlax@gmail.com? THANKS Buddy!

Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?