Site logo

[Resolved] Header and widget

Home Forums Support [Resolved] Header and widget

Home Forums Support Header and widget

  • This topic has 4 replies, 3 voices, and was last updated 9 years ago by Leo.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #296437
    Thierry

    Hello,

    I have my site-logo (default float left), my menu (bottom header) and 3 widgets in the header.

    Currently the 3 widgets are in block (below the other) ; it’s possible, i want the first block but the second and the third on the same line.

    Other thing, i want hide 1 widget if the device is mobile.

    How i can do this ?

    Thank you

    #296526
    Leo
    Staff
    Customer Support

    Hi Thierry,

    Are you able to provide a link to your site and let me know which widget you want to hide on mobile?

    Thanks!

    #296565
    Tom
    Lead Developer
    Lead Developer

    This might help: https://generatepress.com/forums/topic/header-widgets-aligned-horizontally/#post-219837

    For hiding a widget, you would have to know the widget ID. A link as Leo said would help 🙂

    #296669
    Thierry

    Thank you Tom and Léo.

    I find with “.header-widget .widget:last-child” and “.header-widget .widget:nth-last-child(2)”

    For the mobile :

    @media (max-width: 768px) {
        .header-widget .widget:first-child {
            display:none
        }
    
    }

    🙂

    #296750
    Leo
    Staff
    Customer Support

    Glad you worked it out!

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