Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #990309
    genuinesp
    Participant

    Hi,

    In our site, we’ve got 3 languages (spanish, french and english). All pages will be translated except BLOG, that it’s only in spanish.
    It’s possible to hide the top carousel of posts of the home when an user select other language different to spanish??
    We want to keep it when the user select spanish flag, and hide it when french or english flags will be selected.

    We are usign WPML.

    Thanks a lot.

    #990778
    Rad
    Moderator

    Hi there,

    Thanks for posting in.

    Would you mind providing your site’s URL, maybe that’s possible through CSS as long as there is language CSS selector.

    Thanks!

    #991047
    genuinesp
    Participant
    This reply has been marked as private.
    #991068
    Christopher
    Moderator

    Hi there,

    In regards with blog page, please provide us with login credentials .

    In regards with post carousel, please add following code in Customize -> Custom -> CSS :

    html[lang="en-EN"] .x-post-carousel ,html[lang="es-ES"] .x-post-carousel {
        display: none;
    }

    Hope it helps.

    #993844
    genuinesp
    Participant

    Hi,

    I’ve added this code:

    html[lang=”fr-FR”] .x-post-carousel, html[lang=”en-EN”] .x-post-carousel {
    display: none;
    }

    This solution works perfectly to french (fr-FR) but, in english (en-EN) the space of the posts is still visible. So I`ve got a white big space in the top of the page before the logo and the menu.

    It’s very strange because, as I’ve written on the top, that solution is correct in french.

    Please, could you help me with this?

    Thanks a lot!.

    #993862
    genuinesp
    Participant

    Hi again,

    I’ve modified a little your code and now works.

    Firstly, I’ve hide the carousel:

    .x-post-carousel{
    display:none;
    }

    And after this, I only show the language that I want:

    html[lang=”es-ES”] .x-post-carousel{
    display: inline!important;
    }

    Thanks!

    #994170
    Rahul
    Moderator

    Glad you were able to make it work!

    Let us know if you need any further help.

    Have fun with your X 🙂

  • <script> jQuery(function($){ $("#no-reply-990309 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>