Archived topic
Header and widget
4 replies · Started by Thierry on March 23, 2017
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
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!
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 :)
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
}
}
:)
Glad you worked it out!