- This topic has 7 replies, 3 voices, and was last updated 3 years, 7 months ago by
David.
-
AuthorPosts
-
October 5, 2018 at 11:18 am #694410
Immi
Hello there,
I want to the primary menu near the logo in a line.I have achieved it on my another site by help this post https://generatepress.com/forums/topic/primary-navigation-logo-alignment/
but this trick not working on this site https://androidspd.com/
my another site https://firmwaregsm.com/sample-page
GP Premium 1.7.2October 5, 2018 at 7:04 pm #694614Tom
Lead DeveloperLead DeveloperI’m not seeing the necessary CSS on the new site.
Try this:
.nav-float-right .inside-header .main-navigation { float: none; display: inline-block; vertical-align: middle; } .nav-float-right .header-widget { top: 0; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 6, 2018 at 5:12 am #694749Immi
I put this code in simple CSS, but nothing happens I want to display on this site ** like this site header **
October 6, 2018 at 5:54 am #694766David
StaffCustomer SupportHi there,
you have some broken CSS in your Simple CSS – ie this:
@media (max-width: 768px) { h1 { font-family: Helvetica, arial, sans-serif; font-size: 20px; font-weight: 600; } @media (max-width: 768px) { .grid-container.yoast-breadcrumb { font-size: 11px; color: #222; font-weight: normal; } @media (max-width: 768px) { .yoast-breadcrumb p { margin-bottom: 0; } .grid-container.yoast-breadcrumb { padding: 6px 3px; } @media (max-width: 768px) { .mobile-header-navigation .site-logo.mobile-header-logo im { height: 58px; } .menu-toggle, .main-navigation .mobile-bar-items a { line-height: 58px; } } .nav-float-right .inside-header .main-navigation { float: none; display: inline-block; vertical-align: middle; } .nav-float-right .header-widget { top: 0; }
remove that and replace it with this:
@media (max-width: 768px) { h1 { font-family: Helvetica, arial, sans-serif; font-size: 20px; font-weight: 600; } .grid-container.yoast-breadcrumb { font-size: 11px; color: #222; font-weight: normal; } .yoast-breadcrumb p { margin-bottom: 0; } .grid-container.yoast-breadcrumb { padding: 6px 3px; } .mobile-header-navigation .site-logo.mobile-header-logo im { height: 58px; } .menu-toggle, .main-navigation .mobile-bar-items a { line-height: 58px; } } .nav-float-right .inside-header .main-navigation { float: none; display: inline-block; vertical-align: middle; } .nav-float-right .header-widget { top: 0; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 6, 2018 at 10:31 am #695008Immi
hello Sir,
It worked perfectly, thank you very much for your support. I have another question I’m using the Lightweight Social Icons plugin, and I want to display the social icon on the right corner top of a header. Same as shown in the attached picture below.**
October 6, 2018 at 10:49 am #695013David
StaffCustomer SupportTry this:
.header-widget { display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; overflow: visible; } .header-widget .widget_lsi_widget { position: relative; margin-left: 0.5em; top: -0.25em; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 6, 2018 at 11:14 am #695034Immi
Thank You So Much, Sir
October 7, 2018 at 3:43 am #695336David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.