trouble styling nav submenu | WordPress.org

[ad_1]

I’m customizing a theme and everything looks good with one exception: I can’t figure out how to style only the text in the mobile popup version of the menu. In the theme editor (block editor) I gave the nav block a custom css class “.jj-top-nav”. I am able to do something like:


.jj-top-nav span {
	color: red;
}

which works, but of course it affects the menu bar text in desktop view, not just the mobile view.

How do I target just the mobile version of those menu items?

(Also what’s the easiest way to target the burger menu button in css?)

  • This topic was modified 22 hours, 19 minutes ago by Bunny Blake.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer