0

I'd like to know the class or ID of the theme menu I'm using.

Is there a way to find this value?

  • 2
    Can you explain further? This is a bit unclear what you want. Are you looking for this in the admin area? On the front end? – disinfor Apr 1 at 17:24
  • I'm looking this in the front end. – Wall Apr 1 at 17:29
  • 1
    Are you familiar with using your browser's Inspector? On most browsers if you right-click an element and choose Inspect Element or similar, you'll see the element along with its classes and ID. – WebElaine Apr 1 at 18:32
  • 1
    Can you add a screenshot pointing at what you're referring to? There's nothing in WP that's called a theme menu, so there are a few things you could be referring to, settings pages, nav menus, etc – Tom J Nowell Apr 1 at 18:36
  • Thank you, I solved with the inspector! – Wall Apr 1 at 23:29
2

I have just noticed you have solved your problem after I wrote this answer. I'm posting it anyway for future visitors.

Various web browsers have an "Inspect" function built in, for example; Firefox, Google Chrome, Chromium, Bravve etc.

How to Inspect pages

Load up the page you want to examine in an appropriate web browser and right click on the element you want to analyse and select "Inspect".

You will be presented with two screens, one with your original page and the other with information available through the Inspect option.

The "Elements" function (available at the top of the right-hand window) is the option you want. As you move your mouse over class identifiers and other code the related element on your web page will be highlighted.

Once you have identified the element you wish to inspect, click on the class identifier and the properties associated with it will be displayed. You can turn them off, on, modify them etc. Changes made here are temporary.

https://developers.google.com/web/tools/chrome-devtools/css

Other useful functions

The Inspection window is also useful for examining response headers from the server, current caching status, etc. It can be very useful for determining bottlenecks on your page.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.