Logo not centered on mobile view

Discussion in 'BizWay WordPress Theme' started by sapy_marketing, Feb 16, 2018.

  1. sapy_marketing

    sapy_marketing Member

    Joined:
    Mar 5, 2014
    Messages:
    64
    Likes Received:
    0
    I have centered my logo on my website www.sapy.com using
    }
    .header .logo img {
    margin-left: 197px;
    }

    However, when I view the website on my mobile phone, the logo is no longer in the centre, but off to the right.

    if I remove the CSS code, the logo goes to the left of my webpage when viewed on computer, but is centered on mobile view. Please kindly advise?
     
  2. akbar92

    akbar92 Support Staff Staff Member

    Joined:
    Jun 3, 2017
    Messages:
    2,318
    Likes Received:
    49
    Hi,

    Greeting from InkThemes,

    We need WordPress admin credentials to configure it.
    Kindly send the below-mentioned credential details at [email protected] along with the thread link.

    WordPress Website URL: -
    WordPress Username: -
    WordPress Password: -

    We will do the needful.

    Regards,
    Akbar
    InkThemes.com
     
  3. sapy_marketing

    sapy_marketing Member

    Joined:
    Mar 5, 2014
    Messages:
    64
    Likes Received:
    0
    Hi Akbar

    With all due respect, I would rather do it myself unless there is something wrong with the Wordpress file. Please send me the CSS code?
     
  4. sapy_marketing

    sapy_marketing Member

    Joined:
    Mar 5, 2014
    Messages:
    64
    Likes Received:
    0
    Please kindly advise?
     
  5. akbar92

    akbar92 Support Staff Staff Member

    Joined:
    Jun 3, 2017
    Messages:
    2,318
    Likes Received:
    49
    Hi,

    Greetings from InkThemes,

    To make the desired changes, just paste the code given below in Custom CSS section.
    (Dashboard->Inkthemes->Theme Options -> Styling Options -> Custom CSS) of your dashboard.

    Code:
    .header .logo img {
        margin-left: 22vw;
    }
    
    @media screen and (max-width: 992px) and (min-width: 768px) {
        .header .logo img {
        margin-left: 35vw;
    }
    }
    
    @media only screen and (max-width: 767px) and (min-width: 481px) {
        .header .logo img {
        margin-left: 0vw;
    }
    }
    Hope this helps...!

    Do let me know if you need further assistance.

    I will be glad to assist you.

    Thanks & Regards!
    Akbar
    InkThemes.com
     
  6. sapy_marketing

    sapy_marketing Member

    Joined:
    Mar 5, 2014
    Messages:
    64
    Likes Received:
    0
    I pasted the code, cleared the cache and cleared my browser history - it seems like the code didn't work as the logo is still offcentre?
     

    Attached Files:

  7. akbar92

    akbar92 Support Staff Staff Member

    Joined:
    Jun 3, 2017
    Messages:
    2,318
    Likes Received:
    49
    Try to paste the code in the Additional CSS section of the theme instead of Custom CSS section, Go to (Dashboard->Appearence->Customise->Additional CSS).

    Hope this helps...!

    Do let me know if the problem still persists.

    We will do the needful.

    Regards,
    Akbar
    InkThemes.com
     
  8. sapy_marketing

    sapy_marketing Member

    Joined:
    Mar 5, 2014
    Messages:
    64
    Likes Received:
    0
    Hi Akbar
    Thank you,
    I changed
    .header .logo img {
    margin-left: 22vw;
    }

    to

    .header .logo img {
    margin-left: 19vw;
    }

    and I think my logo is centered when viewed on my computer screen.

    However, the logo is still off centre for the mobile view. See image:

    upload_2018-2-28_9-30-6.png

    I tried changing the values on each of these, one at a time, but didn;t see a difference.

    @media screen and (max-width: 992px) and (min-width: 768px) {
    .header .logo img {
    margin-left: 35vw;
    }
    }

    @media only screen and (max-width: 767px) and (min-width: 481px) {
    .header .logo img {
    margin-left: 0vw;
    }
    }

    Please advise?
     
  9. akbar92

    akbar92 Support Staff Staff Member

    Joined:
    Jun 3, 2017
    Messages:
    2,318
    Likes Received:
    49
    Please remove this CSS code:
    Code:
    @media only screen and (max-width: 767px) and (min-width: 481px) {
    .header .logo img {
    margin-left: 0vw;
    }
    }
    And paste this CSS code:

    Code:
    @media only screen and (max-width: 767px) {
    .header .logo img {
    margin-left: 0vw;
    }
    }
     
  10. sapy_marketing

    sapy_marketing Member

    Joined:
    Mar 5, 2014
    Messages:
    64
    Likes Received:
    0
    Fantastic thank you, it worked.
     
  11. akbar92

    akbar92 Support Staff Staff Member

    Joined:
    Jun 3, 2017
    Messages:
    2,318
    Likes Received:
    49

Share This Page