Okay
  Public Ticket #3746472
Sticky column on mobile
Open

Comments

  •  26
    Co-Brains started the conversation

    Hi!

    I have set the column with the title "Chi siamo" to be sticky, and as you can see on desktop, it works correctly. However, I noticed that on mobile (tablet too), the column is not sticky.

    I would like to know if it's possible to make the column sticky on mobile as well, maintaining the same functionality as on desktop.

    Thank you 

    have a nice day


  •  8,773
    Tahir replied

    Hey Again,

    Thanks for reaching out! .

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    @media only screen and (min-width: 1px) and (max-width: 999px) {
        .n-sticky.theiaStickySidebar {
            position: fixed !important;
            width: auto !important;
            left: 0px !important;
        }
    }
    
    

    Let me know if this helps! Happy to assist further if needed.

    Best,

     


    ThemeNectar Support Team 

  •  26
    Co-Brains replied

    It didn't work. I tried to remove the "theiaStickySidebar" class since i didn't find that in the html of the page, but in that way the titles disappear. if you want to check the page i leave the css that make the titles disappear

  •  8,773
    Tahir replied

    Hey Again,

    Here’s what you can try:

    @media only screen and (min-width: 1px) and (max-width: 999px) {
        .nectar-sticky-column {
            position: fixed !important;
            width: auto !important;
            left: 0px !important;
        }
    }

     

    Best,

     


    ThemeNectar Support Team 

  •  26
    Co-Brains replied

    i'm sorry, but as you can see the page is broken in this way. i think that something with the js that add the sticky class is not working properly.

  •  8,773
    Tahir replied

    Hey Again,

    The JS code does not get enabled in Mobile screen sizes , to confirm this try refreshing the page after switching to mobile width in the browser.

    At the moment there is no such JS code to enable the sticky feature for mobile the same as Desktop. 

    However have noted it in the wishlist. 

    Best 

     


    ThemeNectar Support Team 

  •  26
    Co-Brains replied

    okay, thank you. but for now, how can i fix this issue?

  •  8,773
    Tahir replied

    Try the below CSS solution.

    You will have to refresh the page if you are resizing the browser to the mobile width and testing.

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    @media only screen and (min-width: 1px) and (max-width: 999px) {
        .nectar-sticky-column {
            position: fixed !important;
            width: auto !important;
            left: 0px !important;
        }
    }
    

    Thanks


    ThemeNectar Support Team 

  •  26
    Co-Brains replied

    as I told you before, in this way the headers will be fixed on the page. this is problematic: if you look down the page, there are more than one. they are in fact sticky solely within the row, not across the page

    thank you

  •  8,773
    Tahir replied

    In that case I am afraid the sticky columns cant be replicated on mobile using CSS alone. 

    Best 


    ThemeNectar Support Team 

  •  26
    Co-Brains replied

    how can i do then not using css?

    thank you

  •  8,773
    Tahir replied

    Try switching to the CSS powered featured so we can try and write up custom css for it: 8316782863.png

     

    Best,

     


    ThemeNectar Support Team