Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #528032
    #528307

    Hey NMOI,

    Do you want to completely hide it on tablets? If so try this in Quick CSS:

    @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .sidebar {
      display:none !important;
    }

    Best regards,
    Rikard

    #528329

    Hi Rikard,
    Yes, this is what I want. I’ve tried to add your code (and even tried to add a } at the end since I guess there is one missing), but it didn’t change anything.
    Any idea?
    Thanks

    #528431

    Hey!

    Please try changing the code to following one

    @media only screen and (min-width: 768px) and (max-width: 1024px) {
    .sidebar {
      display:none !important;
    }}

    If that too does not work, please create a temporary admin login and post it here privately.

    Best regards,
    Yigit

    #528450

    Hi,
    I’m affraid it didn’t work neither. It just came back to the initial result.
    Please find in the private section the login credentials.
    Thanks

    #528981

    Hi,

    Sorry for the bad code I gave you, could you upgrade our account to admin please?

    Regards,
    Rikard

    #529043

    Hi Rikard,

    Oops, my bad too. I’ve just just changed it to admin.

    Thanks

    #529210

    Hi,

    You had your google analytics code in the Quick CSS box which isn’t too good, I removed it but it seems it’s not taking effect anyway. Could you try to disable your caching plugin to see if that helps please?

    Regards,
    Rikard

    #529500

    Hi Rakard,

    I understand what happened with Google analytics. When emtying the cache, the Envato page is refreshed, but not at the same tab. So I’ve mistaken the Google Analytics field in General layout with the quick CSS field in the following tab, which is at approximatly the same position. Sorry for that.

    With disabled cache, the sidebar becomes empty (but still there) and its content doesn’t appear anywhere else. I’m affraid the culprit is somewhere else.

    What else would you like me to try?

    Thanks

    #529517

    Hey!

    Seems like you have CSS minifying feature enabled on a plugin. Please disable it, flush cache and refresh your page a few times.

    Regards,
    Yigit

    #529958

    Hi Yigit,

    I’m affraid it didn’t change a thing. CSS is still disabled, if you want to check by yourself.

    The problem must come somewhere else.

    Thanks

    #530492

    Hi!

    Please add this inside the css media query:

    .container .av-content-small.units {
        width: 100%;
        border-right: 0;
    }

    It should increase the width of the container and remove the right border.

    Cheers!
    Ismael

    #530658

    Hi Ismael,

    I’m affraid you’ve lost me. Sorry, but I’m a CSS absolute beginer or close.
    What is the CSS media query? Where do I find this?

    Thanks

    Nicolas

    #531327

    Hi,

    Try adding the following to the top of the Quick CSS box:

    @media only screen and (min-width: 768px) and (max-width: 1024px) {
    .container .av-content-small.units {
        width: 100%;
        border-right: 0;
    }
    }

    Thanks,
    Rikard

    #531380

    Hi Rikard,

    This time, it’s back to normal state with the standard sidebar. As if I didn’t add anything in the quick CSS.

    #532369

    Hey!

    Could you please disable WP Rocket while working on the site? It hinders your frontend development because you can’t see the changes immediately. We modified the code in the Quick CSS field:

    @media only screen and (min-width: 768px) and (max-width: 1024px) {
     .container .av-content-small.units {
        width: 100%;
        border-right: 0;
    }
    
    .sidebar {
      display:none !important;
    }
    }
    

    Cheers!
    Ismael

    #532421

    Hi Ismael,

    With WP Rocket disabled, I’ve updated the custom CSS with your suggestion and checked the effect. The result is an empty sidebar, but still there.

    This seems really nasty!

    #533030

    Hi!

    I disabled the WP Rocket plugin and I think it’s OK now: http://multimediatique.fr/

    Screenshot:

    Regards,
    Ismael

    #533110

    Hi Ismael,

    You’re right, it’s working. I don’t get why it didn’t work when I disabled it myself. Sorry for that.

    Anyway, now we now the CSS code is right, and that the problem comes from WP Rocket CSS minification. I’m going to try to solve this with them.

    Thanks for your help.

    #533117

    Hi Ismael,

    There is an exclusion list, which seems to be the proper way to manage this. Could you please tell me the involved CSS file name?

    Thanks

    #533922

    Hi Ismael,

    Don’t bother. I think I’ve found it: custom.css. I’ve put its URL in the excluding field, and it seems to be working OK.

    Thanks

Viewing 21 posts - 1 through 21 (of 21 total)
  • The topic ‘Remove sidebar on ipad’ is closed to new replies.