Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1127417
    bak
    Participant
    This reply has been marked as private.
    #1127422
    bak
    Participant
    This reply has been marked as private.
    #1127428
    bak
    Participant
    This reply has been marked as private.
    #1127751
    Rad
    Moderator

    Hi there,

    The second sections image column still has visibility classes and it’s affecting how it’s displayed on mobile. Would you mind providing your login credentials? It would be easier and faster if I can remove conflicting setup right away, it needs to be standard columns with standard visibility.

    Thanks!

    #1128393
    bak
    Participant
    This reply has been marked as private.
    #1128495
    Rue Nel
    Moderator

    Hello There,

    Thanks for providing the information. I have edited the page and removed the visibility classes. please check your page again.

    I would highly suggest that you give further clarifications on what or how do you want to columns to look like on desktop and smaller screens. Perhaps by sending us several screenshot, one for desktop and one for smaller screen could really help in getting what you have wanted to achieve.

    Thank you.

    #1128637
    bak
    Participant
    This reply has been marked as private.
    #1129254
    Rad
    Moderator

    Hi there,

    Please add this CSS,

     
      @media ( max-width: 767px ) {
      
    /* changing the order of text and image */
    
    .page-id-8578 #x-section-3 .x-container:nth-child(2) {
        display: -webkit-box;
        display: -moz-box;
        display: box;
    
        -webkit-box-orient: vertical;
        -moz-box-orient: vertical;
        box-orient: vertical;
    }
    .page-id-8578 #x-section-3 .x-container:nth-child(2) .x-column:nth-child(1) {
        -webkit-box-ordinal-group: 2;
        -moz-box-ordinal-group: 2;
        box-ordinal-group: 2;
    }
    .page-id-8578 #x-section-3 .x-container:nth-child(2) .x-column:nth-child(2) {
        -webkit-box-ordinal-group: 1;
        -moz-box-ordinal-group: 1;
        box-ordinal-group: 1;
    }
    
    /* background colors */
    
    .page-id-8578 #x-section-3 .x-container:nth-child(1) .x-column {
    background-color:#bdc0cb !important;
    }
    .page-id-8578 #x-section-3 .x-container:nth-child(2) .x-column {
    background-color:#f1f1f1 !important;
    }
    .page-id-8578 #x-section-3 .x-container:nth-child(3) .x-column {
    background-color:#bdc0cb !important;
    }
      
      }
    
    

    That should do it. Cheers!

    #1129860
    bak
    Participant

    Firstly, thank you very much for this solution. This works indeed the way I want it to look like.

    I see now that on mobile view, the columns are left aligned. From what I understand, X theme should display center aligned on mobile. How can I have custom headlines, buttons and text center aligned on mobile?

    #1130223
    Rad
    Moderator

    Hi there,

    Should it be applied to those columns or globally?

    Please add this as well,

    @media ( max-width: 767px ) {
    
    .page-id-8578 #x-section-3 .x-column {
    
    text-align: center;
    
    }
    
    }

    This will center all inline elements but with no effect on floating elements.

    Cheers!

    #1130536
    bak
    Participant

    I see that I have this issue on a few pages where on desktop i have left aligned columns and on mobile they should be centered but for some reason they stay left aligned. Is there a way to fix it globally?. It’s mostly affecting H3

    #1130609
    Rad
    Moderator

    Hi there,

    Would you mind providing all other pages or elements that are affected? CSS may depend on how you added them, alignment not only by text-align, it could also due to float. Hence, overriding CSS may be different depending on how the alignment is applied to existing element. But if it’s just about h3, then we can simply do it like this 🙂

    @media ( max-width: 767px ) {
    
    h3, .h3 {
    
    /* let's center it */
    
    text-align: center;
    
    /* we don't know if there are floating h3, but let's make sure by turning it off */
    
    float:none;
    
    /* complement the float:none */
    
    clear:both;
    
    /* text alignment will only work on wide row */
    
    width: 100%;
    
    }
    
    }

    This is just an assumption, this may also affect other h3′ that are meant to float.

    Hope this helps.

    #1131043
    bak
    Participant
    This reply has been marked as private.
    #1131316
    Rue Nel
    Moderator

    Hello There,

    Okay then, please let us know how it goes. Would you also point out which of the section you’d like to use so that we can update the code above?

    Thank you.

    #1131803
    bak
    Participant
    This reply has been marked as private.
  • <script> jQuery(function($){ $("#no-reply-1103102 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>