Site logo

[Resolved] H1 for homepage logo : CSS problem

Home Forums Support [Resolved] H1 for homepage logo : CSS problem

Home Forums Support H1 for homepage logo : CSS problem

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1487243
    maxime

    Hello,

    I looked around in the support forum to find a way to make my logo as a H1 for my homepage only.
    And I found the code from this post https://generatepress.com/forums/topic/h1-for-homepage-logo/#post-1161994

    It looked like it was working but the CSS provided in the same post didn’t really work.

    The main-nav wich is on the right side came right next to the logo (and that does it for every page, not only the home page). I don’t know which CSS to use, I’ve tried diplay, float, etc but nothing worked.

    So I was wondering if it was possible to make the logo as my H1 for the homepage but without touching the style of the navigation bar.

    For information I’m using the marketer theme.

    Thank you

    #1487254
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    You can use the private information field.

    Let me know 🙂

    #1487256
    maxime

    Yes sorry, just added it. The code is active but no CSS

    #1487285
    Leo
    Staff
    Customer Support

    Can you add the CSS in so it’s easier for me to tweak it?

    #1487290
    maxime

    Done

    #1487298
    Leo
    Staff
    Customer Support

    Try this:

    .main-navigation:not(.slideout-navigation) .main-nav {
        margin-left: auto;
    }
    #1487300
    maxime

    Worked like a charm 🙂

    Thank you Leo

    #1487307
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.