Tagged: left sidebar, logo
-
AuthorPosts
-
February 7, 2017 at 8:57 am #743735
Hello there
I am setting up a new site (with child theme) using the “Logo and Main Menu in a Left Sidebar” option. The logo is very long and thin (vertical: 34px x 500px). I have tried all the suggested css changes that should (i) align the logo to the RHS of the sidebar, and/or (ii) change the width of the sidebar to a narrower dimension (presumably, it’s set at the 340px width specified in the admin). Nothing seems to work, although I have been able change the size of the content of the sidebar, as opposed to its own width.
With this choice of layout, there seems to be no way to set new logo dimensions or alter the logo/menu sidebar width. Suggestions?
Could set the logo and menu up in a widget but it seems a bit perverse.Many thanks
February 7, 2017 at 11:40 am #743821Hey JaneJoyce,
Adding a vertical logo like that requires special modifications and we are happy to help you with this customization.
You will need 2 versions of the logo one for desktop and one for mobile devices. For testing purpose you can use the initial T for mobile version of the logo.
STEPS:
1. Add the mobile logo from Enfold > Theme Option > Logo > Upload
2. Hide the mobile version logo in desktop and style the header widget to display the desktop logo.
/* Hide logo in desktop */ @media only screen and (min-width: 767px) { .html_header_sidebar .logo { display: none; }}
3. Setup a header widget area http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/
4. Place your logo image inside a text widget in the header widget area.
<img src="http://www.thomascarterprojects.com/wp-content/uploads/2017/02/TCP-logo_01_42x500.jpg" alt="Logo">
5. Position the desktop logo in the widget area and the menu.
/* Hide Header widget in mobile */ @media only screen and (max-width: 767px) { #header .widget { display: none; }} /* Position logo in the header widget and menu */ #header .widget { position: absolute; left: 0; top: 0px; } .main_menu { margin-left: 50px; }
By the end you should have something similar to the screenshot below :
Best regards,
Vinay- This reply was modified 7 years, 9 months ago by Vinay.
February 8, 2017 at 11:32 am #744304Right-oh, thanks very much Vinay. Am now in transit between countries and will try this out as soon as I can and report back.
Jane
February 9, 2017 at 6:51 am #744632Hi Jane,
Thanks for the feedback. We’ll keep the thread open for you in case you should have any more problems or questions.
Best regards,
RikardFebruary 16, 2017 at 5:36 pm #748065Hello there
All works brilliantly, thanks very much.
Jane
-
AuthorPosts
- The topic ‘How to change width of left sidebar with logo/menu’ is closed to new replies.