Tagged: Inspirations, Themes Custom CSS/JS
-
AuthorPosts
-
March 26, 2021 at 1:04 pm #35356TimGuest
I’ve read, and still lost. I’m new at this, and know no CSS. I need to move my logo to the left and menu to the right, and get rid of white space at the bottom of header.
March 26, 2021 at 2:22 pm #35393Jesse OwensKeymasterHi Tim-
Thanks for reaching out, sorry to hear about the frustration designing your header.
The Evolv theme has a “contained” header built-in, but you can make it full width with a little bit of custom code. If you’d like to get full control of your header design without any coding, I recommend checking out our newest theme, the Crio WordPress SuperTheme.
That being said, here’s how you can accomplish your goals without changing themes.
First, make sure to remove the negative horizontal margin on your logo. Navigate to Customize > Site Title & Logo and adjust the Horizontal Margin slider back from -50 to 0.
Then, navigate to Customize > Advanced > Custom JS & CSS. Paste this line into the Custom Theme JS field:
jQuery('#masthead div.container').removeClass('container').addClass('container-fluid');
This will create a full-width header so that your logo and menu are all the way to the left and right.
Then, to get rid of the extra white space, paste then following line:
h3.site-description { display: none; }
March 29, 2021 at 3:21 pm #35442TimGuestMorning Jesse,
Thank you! That did get rid of the extra white space at bottom of header, but the j Query for width didn’t seem to do anything.
March 29, 2021 at 3:27 pm #35462Joseph WKeymasterHi Tim, sorry to hear that jQuery code did not adjust your header width as expected!
I jumped into the dashboard for your Cloud WordPress installation and saw that the jQuery code Jesse provided had some comment marks ( // )at the beginning of that line. Those comment marks were telling jQuery to disregard the code in that line and once I removed them your header elements started stretching the full width of your page.
Hopefully things are displaying as expected on your end now and please let us know if there is anything else that we can do to help!
March 29, 2021 at 3:40 pm #35468TimGuestThat’s beautiful! Thank you both!!
March 29, 2021 at 3:41 pm #35473Joseph WKeymasterYou’re welcome Tim! If you ever have any other questions for us in the future please do not hesitate to ask!
-
AuthorPosts
- The topic ‘Full-Width header, get rid of extra white space’ is closed to new replies.