Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #54260
    Steve
    Participant

    Hi,

    I’m using Polylang with Catch Kathmandu Pro and have added the language switcher widget to the Header Top sidebar but would prefer it to display horizontally.

    I have been looking at the CSS using inspect element but still cannot find the right CSS hook to change this.

    Can you help please? Site is in development on http://www.attentiontodetail.eu – many thanks

    #54262
    Sakin
    Keymaster

    @Steve: try adding in the following css in “Appearance => Theme Options => Custom CSS” box:
    .header-sidebar .widget_polylang li { display: inline-block; }

    #54425
    Steve
    Participant

    Hi Sakin,

    Sorry for the delay – I didn’t get an e-mail notification that you’d responded ๐Ÿ™

    Brilliant, it was the li part that I hadn’t tried. Thanks very much.

    Steve

    #54431
    Steve
    Participant

    Ah, just one more question – as per polylang instructions, as I wish to use larger flags, I have created the polylang folder in wp-content and added my new flags which are height 25px and width 32px (this is so that polylang will look here rather than in the main flags folder within the plugin and the flags will not be overwritten on polylang update) and this worked in another project using the wpCasa Framework with no problem.

    However, I can’t see where this happens in Kathmandu, and have tried various CSS syntax with width and height, but still the falgs display as 16×11 px.

    Can you advise where this will be?

    Thanks again.

    Steve

    #54451
    Sakin
    Keymaster

    @Steve: You have WP Super Cache plugin install so it might be that Cache issue. Go to Wp Super Cache plugin setting in your WordPress dashboard and clear the cache, then refresh your browser and check in.

    #54462
    Steve
    Participant

    Hi Sakin,

    WP Super Cache isn’t installed – there are only three active plug-ins

    • Limit Login Attempts
    • Polylang
    • Responsive Lightbox

    Steve

    #54469
    Sakin
    Keymaster

    @Steve: Maybe you have deleted/deactivate WP Super Cache without clearing the Cache. If so then you need to activate WP Super Cache and then clear the Cache first. If you check your site http://www.attentiontodetail.eu and view source it, you will see following at the end of your page.

    <!-- Dynamic page generated in 0.969 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2015-03-27 02:02:26 -->
    
    <!-- super cache -->
    #54478
    Steve
    Participant

    So sorry Sakin, I changed back to the live site at

    So I now have the flags horizontally (thank you) but they’re still the wrong size.

    Apologies for the mix-up.

    Steve

    #54479
    Steve
    Participant
    #54500
    Sakin
    Keymaster
    #54547
    Steve
    Participant

    According to the instructions here:

    Can I use my own flags for the language switcher?

    Yes. You have to use PNG or JPG files and name them with the WordPress locale. For example, en_US.png. Then upload these files in the /wp-content/polylang/ directory (create the directory if it does not exist). Donโ€™t use the /polylang/flags/ directory as your files would be removed when automatically updating the plugin.

    I have created the directory polylang in wp-content and have uploaded the flags to this directory (I have done this on other projects too) but they’re still the small flags on this one.

    Thanks

    Steve

    #54604
    Sakin
    Keymaster

    @Steve: I did same thing in my test server with Catch Kathmandu Pro and it’s working fine. I got big flag. I just created directory polylang inside wp-content directory and upload the large image en_US.png inside newly created polylang directory and it’s working fine. So, it looks like you have server issue and not theme or plugin issue. Can you activate any other theme for this site and check in?

    #54610
    Steve
    Participant

    Hi Sakim,

    Thank you very much for trying, I’ll see what I can see within the server. I created the folder using ftp via Filezilla and have seen it work on other projects, however, these were always on my own hosting, this one is being hosted elsewhere so, as you say, there could be a server issue.

    I must add that I am impressed with the support here, I had tried several combined theme/plugin packages for this project and despite saying that they were translation-ready, they were not and the support had been non-existent (I’m still waiting for one response after three weeks!).

    Best regards

    Steve

    #54611
    Sakin
    Keymaster

    @Steve: Thanks for your appreciation. Yes, it’s strange as the flag in working fine in my server.

    #54728
    Steve
    Participant

    Hi Sakin,

    Today I logged on and the flags are the right size! Must be some caching on the server. Thanks again for your help ๐Ÿ™‚

    #54750
    Sakin
    Keymaster

    @Steve: that’s nice ๐Ÿ™‚

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Changing Polylang switcher widget display’ is closed to new replies.