• I made a previous post here:

    https://wordpress.org/support/topic/center-custom-logo-2/#post-11431931

    I thought it resolved my issue (maybe I was wrong), but right before launch, I noticed the mobile (on phones) was not centered any more.

    It seems fine in portrait view on tablet, so I don’t know if I inserted any code that is blocking it from centering on phones or not.

    Code is below:

    .woocommerce-page .page-title {
      display: none;
    	}
    #access {
    	margin-bottom: 0;
    	}
    body.post-type-archive-product #content {
    	margin-top: -150px;
    	}
    body.home #content {
    	margin-top: -255px;
    }
    .page-id-12 #content {
    	margin-top: -50px;
    	}
    .page-id-5 #content {
    	margin-top: -50px;
    	}
    .page-id-13 #content {
    	margin-top: -40px;
    }
    .page-id-23 #content {
    	margin-top: -100px;
    }
    .page-id-378 #content {
    	margin-top: -40px;
    }
    .has-large-font-size {
    	margin-top: 20px;
    }
    .storefront-recent-products {
      margin-top: -70px;
    	margin-bottom: 0;
    	}
    .site-branding {
    	margin-bottom: -40px
    	}
    .storefront-handheld-footer-bar ul li.home > a:before {
    	content: "\f015";
    }
    header#masthead {
    	background-image: url(cropped-Post-and-Stud-6.png);
    	background-repeat: no-repeat;
    	background-position: left;
    	}
    .custom-logo {display: none;}
    #site-navigation {
    	width: 100%;
    	display: inline-block;
    	}
    .term-custom-orders #content {
    	margin-top: -135px;
    	}
    .term-dangles #content {
    	margin-top: -135px;
    	}
    .term-novelty-studs #content {
    	margin-top: -135px;
    	}
    .term-studs #content {
    	margin-top: -135px;
    	}
    .page-id-22 #content {
    	margin-top: -110px;
    	}
    a:focus,
    .focus a {
    	outline: none !important;
    }
    @media screen and (max-width: 1112px) and (min-width: 740px) {body.home #content {margin-top: -140px;}}
    @media screen and (max-width: 1040px) and (min-width: 740px)
    	{.menu {
            text-align:center
        }
        .menu li {
            display:inline-block;
            float:none;
            margin-left: -5px;
        }
        .menu li li {
            display:block;
            text-align:left
    }}
    	@media screen and (max-width: 1112px) {Img.wp-image-191 {display:none;}}
    @media screen and (min-width: 740px)  {header#masthead {
    	background-image: url(cropped-Post-and-Stud-6.png);
    	background-repeat: no-repeat;
    	background-position: left;
    	}}
    @media screen and (max-width: 740px)   { .site-branding {
    	margin: 0 auto;}
    button.menu-toggle {
    	margin: 0 auto;
    	float: none;
    	display: block;}
    .woocommerce-active .site-branding {
    	float: none;
    	text-align: center;
    	}
    .storefront-recent-products {
    	margin-top: 10px;
    	}
    .woocommerce-active .site-branding img {
    	display: inline-block;
    	margin-top: -15px;
    	margin-bottom: 5px;
    	}
    .page-id-5 #content {
    	margin-top: -15px;
    	}
    .woocommerce-cart-form {
    	margin-top: 90px;}
    	.woocommerce-info {
    		margin-top: 90px;
    	}
    .woocommerce-pagination {
    	margin-top: 50px;
    	}
    .woocommerce-ordering select 	{margin-top: 125px;}
    .woocommerce-result-count {
    	margin-top: 25px;
    	}
    .woocommerce-breadcrumb {
    	margin-top: -30px;
    	}
    header#masthead {
    	background-image: 	url(cropped-Post-and-Stud-6.png);
    	background: none !important;}
    .woocommerce-order-received #content {margin-top: -30px;}
    }
    @media screen and (min-width: 812px) 
    	{button.menu-toggle {
    		display: none;}}

    Thanks for your help.

    Jordan

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Riaan K.

    (@riaanknoetze)

    Hi there,

    The site at http://www.postandstud.com/ is currently sitting behind a landing page and we’re not able to double-check your code. If troubleshooting this before launch is absolutely necessary, you’ll need to get in touch with a dedicated web developer and provide them with login details to take a closer look 🙂

    Thread Starter nowlanjor

    (@nowlanjor)

    Hi RK,

    Apologies. Closed the site to fix the bugs post soft launch.

    I reopened it with limited access – only homepage visible.

    Thanks,

    J

    • This reply was modified 7 years ago by nowlanjor.
    • This reply was modified 7 years ago by nowlanjor.
    Riaan K.

    (@riaanknoetze)

    Thanks for that 🙂

    I’ve just had another look and I’m not sure whether we’re troubleshooting the same thing. Here’s what that logo looks like on mobile on my side:

    Portrait


    Link to image: https://cld.wthms.co/LztDmK

    Landscape


    Link to image: https://cld.wthms.co/AiIsHL

    Can you share a screenshot of what you’re getting in your side?

    Thread Starter nowlanjor

    (@nowlanjor)

    Ah, strange. Maybe my media queries are off for mobile (phone).

    This is what I’m getting on my end (both on my device and the mobile preview on desktop).

    https://i.imgur.com/auycH28.jpg

    EDIT: Using an old iPhone 5 FYI.

    • This reply was modified 7 years ago by nowlanjor.
    Ryan Ray

    (@ryanr14)

    Hi @nowlanjor,

    Perhaps this is fixed now, but I also see the same thing that Riaan had seen. Right up to 740px wide I see a centered logo above the mobile hamburger menu.

    Centered mobile
    Link to image: https://cld.wthms.co/5TcBKR

    I assume you’ve got your own media query/breakpoint there at 740px. Just as an extra FYI, these are the two breakpoints for Storefront by default. It starts out mobile optimized then as screens get wider it changes the CSS depending on these widths.

    Storefront breakpoints
    Link to image: https://cld.wthms.co/KoX4db

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Center Custom Logo Responsive’ is closed to new replies.