ID of main container?

I need to add skiplinks to my site. The accessibility plugin I am using is asking for the ID of my main content container and the ID of my main navigation container. Where can I find these ID’s? Thank you

Hello @rpduffy,

Thanks for asking. :slight_smile:

The class that’s been used for navbar is .x-navbar and main container that’s holding content is .x-main.

Please let me know if that answers your question.

Thanks.

I think that should do it. Thanks as always for the quick help!

1 Like

You’re welcome.

Sorry team, one more question here on adding skiplinks. I am using the WP Accessibility plugin to comply with my clients accessibility requirements. I’ve attached a screenshot of my settings. The client got back to me today and said there is a skiplink present, but it doesn’t anchor anywhere. I know this isn’t exactly a “X Pro” question, but can any of you look at this and tell me where to put the anchor tag, and what that anchor tag should be?? As always, thank you for your time and help.

Hi There,

Could you please try testing for a plugin conflict by disabling your 3rd party plugins and also if you have any custom Javascript code added you can remove them temporarily, switch back to Parent theme (if you have a child theme) and test.

If you not, please provide us with the URL to your referenced site to check this issue further.

Thanks!

Hi There,

There seems to be an error on your site that with regards to unrecognized expression: #.x-main so looks like your Plugin is not accepting a CLASS, only ID.

You can define an ID to your first section or second section or wherever your content begins.


Do the same thing for the Header, assign an ID to the Container where your navigation is placed.


Then used those IDs to your WP Accessibility plugin settings.

Cheers!

Nice call @friech. I will give that a try. Thank you for your thoughts. Sounds like a solid plan.

Let us know how it goes,
Cheers!

Amazing assistance @friech! This is EXACTLY what I needed. Your solve worked perfectly. Thanks again, the Apex staff never fails. A million thank you’s for the advice. Worked like a charm. you guys are great.

Glad we could help and thank you for your nice words :slight_smile:

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.