- This topic has 22 replies, 6 voices, and was last updated 11 years ago by
Tom.
-
AuthorPosts
-
May 29, 2015 at 12:46 am #111105
Remi L
I am struggling to make it work. I upload a custom css plugin and the snippet plugin, I added the both the code you provide but nothing change… Do you know if “Simple Custom CSS” is a good plugin to do so?
May 29, 2015 at 8:45 am #111179Tom
Lead DeveloperLead DeveloperSimple Custom CSS is a good plugin 🙂
However, make sure you’re adding the CSS using one of these methods: http://generatepress.com/knowledgebase/adding-css/
And the PHP using one of these methods: http://generatepress.com/knowledgebase/adding-php-functions/
June 4, 2015 at 11:42 pm #112585Joseph
I added the snippet and the css to the child theme and works just as you stated, perfect! The only question I have is when I view it on a mobile phone the logo stays to the left, how cam I center it on mobile view.
(http://provinciawebdesign.com/disruptup/)
Thanks Tom, really impressed with your work AND support.
June 5, 2015 at 12:07 am #112593Tom
Lead DeveloperLead DeveloperTry this CSS:
@media (max-width: 768px) { .site-logo { float: none; margin-right: 0; } }June 5, 2015 at 12:58 am #112608Joseph
Worked great after adding .main-navigation to the css you mentioned above.
@media (max-width: 768px) {
.main-navigation .site-logo {
float: none;
margin-right: 0;
}
}Thank you again!!
June 5, 2015 at 8:31 am #112749Tom
Lead DeveloperLead DeveloperPerfect – no problem! 🙂
June 16, 2015 at 12:39 am #114862Austin Sanford
I have had only some luck with this… Seems like the image is deciding the size of the nav bar. So i have to be really careful about the size image i upload. How could i upload a higher quality image so that maybe it scales to the px of the nav bar that I want and the logo doesn’t look so bad : (
June 16, 2015 at 8:35 am #114930Tom
Lead DeveloperLead DeveloperHi Austin,
This CSS from the first page is the trick:
.main-navigation .site-logo { float: left; line-height: 60px; /* Adjust this to your menu item height */ margin-right: 1.5em; }The line-height attribute should match the height of your navbar – that should make sure the logo image isn’t too big.
If that doesn’t work, try this:
.main-navigation .site-logo img { height: 60px; }Let me know 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.