- This topic has 9 replies, 2 voices, and was last updated 4 years, 5 months ago by
David.
-
AuthorPosts
-
November 30, 2018 at 2:32 am #744480
Chris
Hey guys,
I’m trying to emulate a site that uses generatepress also and can’t quite get it to look right.
woorkup.com
-I can’t get my logo to show bigger like on this site. It shrinks mine. It’s a 500×100 pixel image.
-How did they get the border around the main content?
-How can I get the right sizing of where the content area is located as well as the sidebar?Thanks in advance.
ChrisNovember 30, 2018 at 4:27 am #744539David
StaffCustomer SupportHi there,
the Navigation Logo sizes itself to fit the height of the navigation which is defined by the menu height. Your logo also has a lot of transparent space around it, removing this from the image would increase its size.
The shadow border has been added using this CSS:
.separate-containers .inside-article { box-shadow: 0 0 27px 0 rgba(214, 231, 233, 0.35); border: 1px solid rgba(0,0,0,.05); border-radius: 3px; }
The right sizing part, can you clarify this.
November 30, 2018 at 1:41 pm #745018Chris
Hey David,
Thanks for the response. Generatepress support has been great.
As far as the sizing portion. If you look at both the sites side by side, the main content and sidebar are a little off. Is there any padding suggestions and which ones to change you can make. Is there a way to figure out their padding numbers?
Also, on the mobile version, how can I get my header and drop down to look like this sites as well?
Sorry for the vagueness.
November 30, 2018 at 6:32 pm #745137David
StaffCustomer SupportSo the woorkup site has an 1100px container. And the top, right, bottom padding is 25px as opposed to yours is 27px. And thats about it really.
December 1, 2018 at 2:10 pm #745647Chris
Alright I’ve got pretty much everything how I want it. Thanks for your help.
The last thing I can’t get right is to center my logo on the mobile version only.
I’ve researched this in the documentation to avoid asking you something that’s been answered but none of the css worked for me.
I’ve tried:
#mobile-header .site-logo {
position: absolute;
left: calc( 50% – 90px); /* 50% from the left – half your image width */
}#mobile-header button.menu-toggle {
position: absolute;
left: 0;
}and:
@media (max-width: 768px) {
.main-navigation .main-nav .sf-menu>li {
text-align: center;
}
}Neither works and the logo is still left centered.
I also tried turning on and off the mobile logo.December 1, 2018 at 7:11 pm #745725David
StaffCustomer SupportThe woorkup site doesn’t use the mobile header. Deactivate that and then you should be able to get to that result.
December 7, 2018 at 12:06 pm #750959Chris
Hey there,
I did deactivate the mobile header and I still can’t get the header on mobile centered?
Any ideas?
December 7, 2018 at 3:32 pm #751065David
StaffCustomer SupportTry this:
@media (max-width: 768px) { .main-navigation .navigation-logo { display: inline-block; max-width: 100%; float: none; } .menu-logo .main-navigation:not(.mobile-header-navigation) .menu-toggle { display: block; float: none; width: auto; } }
December 7, 2018 at 3:37 pm #751067Chris
Boom!
Worked like a charm.
Love your guys support!
December 7, 2018 at 3:44 pm #751069David
StaffCustomer SupportAwesome. Glad to be of help 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.