• Resolved hetallerbeste

    (@hetallerbeste)


    I Would like to remove the sidebar or image (on https://www.coolkidsparty.nl) the boy and girl on the left and right of the website when i open the site on a mobile telephone or tablet.

    Can’t find a solution for this question, maybe someone can help me how to do that.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi hetallerbeste,
    use one of the following:

    //Remove images
    @media (max-width: 979px){
     .textwidget img {
       display: none;
     }
    }
    
    //Remove Sidebars
    @media (max-width: 979px){
     .left.tc-sidebar, .right.tc-sidebar {
       display: none;
     }
    }

    Thread Starter hetallerbeste

    (@hetallerbeste)

    Thanx Martonno,

    I tried to add this to custom CSS and before loading this image, but did not solve it. Maybe i’m doing something wrong?

    please try adding the code in the customizr style.css.
    Please also consider using a child-theme.

    Thread Starter hetallerbeste

    (@hetallerbeste)

    Well, i created a childtheme.

    I added both codes first to style.css and functions.php.
    But still not working.

    Maybe it has something to do how i created the images in the sidebar. I added this with custom HTML, could this be the problem?

    Kind regards!

    Thread Starter hetallerbeste

    (@hetallerbeste)

    If this has something to do with the images, the sidebar should be removed when opening site on my mobile phone, still got the remove sidebar added to the CSS file. I don’t see the problem.

    try removing the “//Remove Sidebars” before the code in the style.css.
    forgot that // is no valid comment for css… (not my day^^)
    use:

    /* Remove images */
    @media (max-width: 979px){
     .textwidget img {
       display: none;
     }
    }
    
    /* Remove Sidebars */
    @media (max-width: 979px){
     .left.tc-sidebar, .right.tc-sidebar {
       display: none;
     }
    }

    Thread Starter hetallerbeste

    (@hetallerbeste)

    Yes, GREAT!

    That’s the solution, just remove the // line!
    Thank you very much in solving this small issue!
    I’m grateful.

    Glad that solved your problem.
    Sorry for the comments mistake.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Remove Image or Sidebar in Mobile responsive site’ is closed to new replies.