• Resolved narrativeAlchemist

    (@narrativealchemist)


    Hello! I am using the Minnow theme to create a simple blog:

    http://www.dainedward.com/

    I don’t think the main menu toggle in the upper right is prominent enough and would like to make it darker in its before state. Using the Edit CSS tool of the Jetpack plugin, I’ve been adding CSS code to modify the menu-toggle class, but the best I’ve done is make the topmost of the parallel lines become dark.

    I’d also be interested in changing the toggle itself, perhaps to the word “Menu” in order to be very clear with users about where to look.

    I’ve attempted all the suggestions already in the forums for this but nothing has worked yet.

    Any suggestions?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey there,

    Hope you’re well! 🙂

    If you want to just change the color of toggle

    Put this code to the CSS Tool of Jetpack:

    .menu-toggle,
    .menu-toggle:before,
    .menu-toggle:after {
    	border-top: 4px solid #000;
    }

    If you want to replace the toggle menu

    First, Use child themes for any customization you will make. Read more about it here: http://codex.wordpress.org/Child_Themes

    Get the code here: https://gist.github.com/calvincanas/a9f513cc55039364fe3d and save it as ‘header.php’ and put it on your child theme’s folder. It will simply replace the ‘Sidebar’ text on line 40 to ‘Menu’ text and remove the class that make the text hidden.

    Second, put the css code below in jetpack plugin. The code simply removes the toggle looks and make the color black so you can see the ‘menu’ text better.

    .menu-toggle,
    .menu-toggle:before,
    .menu-toggle:after {
    	border-top: none;
    
    }
    
    .menu-toggle {
    	color: #000;
    }

    Hope it helps! 🙂

    Best Regards,
    Calvin

    Thread Starter narrativeAlchemist

    (@narrativealchemist)

    Wow! That’s great! I’m shocked at how simple the initial change is, just including all three of these: .menu-toggle, .menu-toggle:before, .menu-toggle:after makes all the difference.

    I’d prefer to have both the image and the text, and it’s very close. I’ve added the new header.php file (thank-you!) but have not hidden the border, then changed the padding on the toggle from 6px to 20px so that the text is visible under the image.

    Unfortunately, the result is that the menu image (the border) is now much wider than before. I can’t see why that would change. Can you?

    Thank-you!

    -Dain

    Hey there Dain,

    Hope you’re well! 🙂

    Unfortunately, the result is that the menu image (the border) is now much wider than before. I can’t see why that would change. Can you?

    Yes, because the padding is increasing the width on which is the border depend. So let’s say the box have

    10px width + 10px left padding + 5px right padding = 25px border line.

    I hope I make sense here 🙂

    Take care,
    Calvin

    Thread Starter narrativeAlchemist

    (@narrativealchemist)

    Totally makes sense. I was thinking about the padding backwards, as something that might contain the border (larger numbers, smaller lines) instead of being the length of the lines.

    It’s all perfect! Thank-you so much for your help!

    -Dain

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Theme: Minnow] main toggle before color’ is closed to new replies.