• I’m designing a web site for a bar/restaurant that uses SmartSliders on two pages. The firm I am interning for only allows me to style these pages with the CSS from the developer tab in the SmartSlider plugin, and don’t have any access to a theme editor or Additional CSS in the Customize section. My boss wants the pages to have a brand logo to the left and the navbar to the right, with the header removed above it. On the first web page I was able to accomplish this by using these properties:

     
    
    body:not(.home) header img {
    display: none;
    } @media screen and (min-width: 48em) {
    .site-branding {
    margin-bottom: -24px;
    }
    } masthead .wrap { position: relative;
    background-image: url('https://pbpavilion.com/WP/training/wp-content/uploads/sites/2/2024/03/cropped-IMG_6692g-1.png');
    background-repeat: no-repeat;
    background-size: contain;
    } @media screen and (min-width: 48em) {
    .js .main-navigation ul, .js .main-navigation ul ul, .js .main-navigation > div > ul {
    display: block;;
    float: right;
    background: #ffffff;
    }
    } .main-navigation ul {
    background:transparent;
    list-style:none;
    margin:0;
    padding:0 1.5em;
    text-align:right;
    } @media screen and (min-width: 30em) {
    .site-branding {
    padding: 0;
    }
    } @media screen and (min-width: 48em) {
    .site-content {
    padding: 0;
    padding-bottom: 0px;
    }
    }

    Which produced this result:

    But when I view it on a mobile device (like my iPhone), the PB brand logo shifts up above the navbar instead of lining up to the left of it, and part of the header reappears again with a smaller version of the brand logo in it also.

    If anyone more experienced than myself has any tips, ideas or guidance in order to correct the mobile issue, I’d really appreciate it – thanks.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter pbccdev

    (@pbccdev)

    Still working on resolving this issue. I was able to sort of recreate how the page displays in Firefox Web Developer Tools – the brand logo is duplicated at the top of the mobile screen and I’m trying to figure out how to remove it:

    In the inspector, the location of the duplicate logo is in a “wrap” class in a <div> that is inside the #masthead <div>, and is styled like this:

    masthead .wrap {

    position: relative;
    background-image: url(‘https://pbpavilion.com/WP/training/wp-content/uploads/sites/2/2024/03/cropped-IMG_6692g-1.png&#8217;);
    background-repeat: no-repeat;
    background-size: contain;
    }

    and I’ve tried a few properties to try and remove it, but when I do it also removes the logo to the left of the hamburger menu, which I don’t want to happen. Once again, if anyone has had any experience with a similar problem & has advice on how to fix it, it would be greatly appreciated – thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘remove leftover space after header removal on mobile page’ is closed to new replies.