Questions tagged [accessibility]

Accessibility is the design of products, devices, services, or environments for people with disabilities.

Filter by
Sorted by
Tagged with
0 votes
2 answers
47 views

How to change content hash value, within the_block_template_skip_link action?

When my WordPress site loads up, towards the top, I have something that is generated in the DOM.... <a class="skip-link screen-reader-text" href="#content">Skip to content<...
klewis's user avatar
  • 857
0 votes
1 answer
63 views

Override theme hamburger menu to work without javascript (noscript)

What wordpress hooks can be used to override how the primary menu is displayed in my wordpress header's navigation menu -- ideally in a way that will work cross-theme. I need to build a wordpress ...
Michael Altfield's user avatar
0 votes
1 answer
48 views

Replace Header Element on Wordpress Login Page

The default Wordpress Login and Registration pages use the following markup for the page's top-level heading: <h1><a href="<?php echo esc_url( $login_header_url ); ?>"><?...
The-Coder-Who-Knew-Too-Little's user avatar
0 votes
0 answers
207 views

Editing alt text in media library

I added a column to the media library to display the alt text using this information, however I'd also like to edit the alt-text entry of each image without having to go into and edit each individual ...
Rowena's user avatar
  • 1
0 votes
1 answer
254 views

Apply walker_nav_menu_start_el but only to one menu

I'm building an accessible dropdown menu and successfully created a button to toggle the menu for screen readers that doesn't interfere with a top-level link. I targeted the class menu-item-has-...
Matthew Wright's user avatar
0 votes
0 answers
63 views

Gutenberg: Issue trying to commit locally

I am working on a small accessibility bug for Gutenberg, but cannot commit because of the following errors that seem to do with linting. I have tried deleting node-modules, package-lock, and re-...
tohm's user avatar
  • 1
0 votes
1 answer
236 views

How do I create a filter to hide the One Click Accessibility plugin button in WordPress?

I would like to add a filter to hide the One Click Accessibility plugin button, but I want to hide it on several specific pages and WooCommerce pages. I just want to show it on a custom post type ...
Anderson Viviel's user avatar
0 votes
2 answers
2k views

How to Restrict Access to all wp-admin pages for subscriber users

Here is summary of the problem and required solution: Access to mywebsite.com/wp-admin is blocked for subscribers [which is good] However, if i enter the link manually on the browser as follows: ...
The Oracle's user avatar
1 vote
0 answers
39 views

How to add screen reader text to links inserted in the block editor?

Background When user adds a link to a paragraph block (or some other richtext block where links can be added) and sets the Open in new window flag, the block editor produces the following markup. <...
Antti Koskinen's user avatar
0 votes
1 answer
28 views

Benefits to using semantic HTML in post content? [closed]

I've been reading up on semantic HTML as a means of improving accessibility and SEO, but I'm still learning about the implications of semantic HTML. One question I have is whether there's any point to ...
ayyyT5's user avatar
  • 3
0 votes
1 answer
752 views

How do I access the contents of Wordpress Classic editor in admin area with JavaScript?

I am working on a small Wordpress plugin which uses JavaScript to add html tags with a css class to the visual text view in the Wordpress editor. I use the Classic Editor. According to Chrome ...
conpertura's user avatar
0 votes
3 answers
595 views

get_search_form() and aria_label

How do you pass the aria_label parameter to get_search_form()? I can't seem to pass the 'aria_label' parameter to get_search_form() in the correct way and can't find any examples. Lots with the first ...
C0c0b33f's user avatar
0 votes
1 answer
15 views

Enable accessibility mode in widget as default

Guys how can I Enable widget accessibility mode as a default for all users, I thought about update_user_meta in wp_user-settings but I was not successful. Greetings
Infolu's user avatar
  • 1
0 votes
0 answers
49 views

URL Restrictions? Need only people who are logged in AND have a specific role (or roles) to access all pages for a site

I have a site that needs to only allow people who are logged in and have at least one of 3 possible roles to have access to the pages of the site. I'm not new to programming, but am new to both php ...
A.Karwowski's user avatar
0 votes
1 answer
71 views

How to make WP page accessile only to specific user roles

I am creating a website that consists of a "Home Page" (public) that has a login link to the WP login page, then, there will be different pages that are only accessible to specific logged ...
GeoLeo's user avatar
  • 1
1 vote
3 answers
1k views

Add HTML Attributes To Anchor Tags In `wp_list_categories()` Function

I'm using the wp_list_categories() function which generates an unordered list with list items and anchor tags for the categories. Is there any way to add HTML attributes to the <a> tags which ...
pjk_ok's user avatar
  • 908
0 votes
1 answer
22 views

On the online version of my blog posts disappear

I lose posts after a few weeks. So as of today there is a gap form April 14 to March 17. Do you know what happens. how can i rectify it? And then there is a gap
Philip Venables's user avatar
1 vote
0 answers
102 views

SlickNav - Google Lighthouse Accessibility issue for collapsed menu button

I use Slicknav for my mobile menu, and Lighthouse flags up the following: Links do not have a discernible name - a.slicknav_btn.slicknav_collapsed I assume it means this element <a href="#" aria-...
Obsidian's user avatar
3 votes
2 answers
824 views

Block Editor: add an aria-label to an option inside a SelectControl

I'm building a block that has, among other things, a FontAwesome icon. I'm currently letting users choose which icon by using a WP <SelectControl>. For individual <option>s, there is a ...
WebElaine's user avatar
  • 9,400
3 votes
0 answers
1k views

Make alt text required when setting a featured image

In the EU it will shortly be a requirement for public sector websites to have alt text for uploaded images. My organisation's users are rubbish at adding alt text, however, and I'm trying to find a ...
JohnG's user avatar
  • 334
0 votes
1 answer
728 views

All Images not calling alt text

I am having trouble with the alt text on my wordpress.com website. I am using a theme I coded myself. From what I recall, if I added alt text to an image in the Media Library it would insert into the ...
user5854648's user avatar
-1 votes
1 answer
245 views

one time visit to the page

I want to set up a page with PayPal subscription gate away to my members area. It's a simple page with PayPal button which offer discounted subscription price for the chosen customers only. ...
Vit's user avatar
  • 1
0 votes
0 answers
411 views

WPforms plugin modification for accessibility

I'm looking for a way to add aria-labelledby attributes to my wpforms plugin form. I emailed their support and they said it was not supported. I've got to believe there is a way to modify the plugin ...
user165297's user avatar
0 votes
1 answer
72 views

What are some of your favorite methods for creating an accessible menu?

I have a series of tricks that I use to add things like aria tags, keyboard navigation, screen reader text, and other features. I would love to see some of yours. Assume this is a multi-tiered menu ...
MikeNGarrett's user avatar
  • 2,661
0 votes
1 answer
24 views

RSS icons have the same Alt tag. Lighthouse is failing these elements. How do I display different alt tags for each icon?

I am making my websites accessible by mostly using Lighthouse in Chrome Devtools. I have fixed everything but this one issue. Lighthouse is failing these elements because the alt tags need discernible ...
mhowe85's user avatar
0 votes
0 answers
245 views

sometimes on saving a post as draft, it says Access Denied You don't have permission to access "mywebsite.com/wp-admin/post.php"

It only occurs sometimes, when i try to save a post as a draft, with a content having anchor target="_blank", it throws an error on saving Access Denied I set up it locally and its working fine. I ...
Awsme Sandy's user avatar
0 votes
1 answer
31 views

Resources won't load if not logged to cPanel after migration, cause?

I migrated my wordpress site to my live site. As mentioned in the title my site will look bad if I visit it and I am ot logged in cPanel. Guess it means resources are not accessable to all users. How ...
Giorgio Vitanza's user avatar
3 votes
1 answer
895 views

Why is there a class="screen-reader-text" on my search button?

i was going through a search and found this button in search form. <button type="submit" class="search-submit"> <span class="genericon-search"></span> <span class=...
TheDose's user avatar
  • 188
0 votes
1 answer
79 views

Can i legally remove a credit from a free plugin on wordpress.org? [closed]

I am using this accessibility plugin: https://wordpress.org/plugins/accessible-poetry/ I didn't like to logo in the bottom of it that adds a link to the plugin site so I removed it via css. But I ...
user avatar
5 votes
2 answers
5k views

Add custom attribute to menu item link using Filter

In order to increase my theme's accessibility, I want to add the aria-current="page" attribute to the menu item that has the class .current_page_item. As of right now, I am doing this via jQuery ...
Cedon's user avatar
  • 1,659
0 votes
1 answer
48 views

What to do to have access to WordPress functions

I'm developing my own theme and I currently work on a script that validates form data sends an email and puts the details into a second databse. In the Codex I saw how to connect to a second database,...
Sam's user avatar
  • 435
1 vote
2 answers
2k views

How to change the wordpress navigation bar UL to OL in Twenty_Twelve similer theme

I'am trying to make a wordpress website accessibility compliant but I have come across a problem with menu bar. It uses a modified them based on Twenty_Twelve. I need to change the "ul" tag to "ol" ...
rajiaguna's user avatar
0 votes
1 answer
34 views

How to create an optionally available stylesheet for visually impared users?

I have a WP website that I would like to make easily accessible for visually impaired users. I don't want to modify the default stylesheet, nor I would like to use any plugins, so I am looking for a ...
user avatar
2 votes
1 answer
63 views

Is it wrong to put header tags inside WordPress help tabs? [closed]

We're working on improving accessibility in our plugin. One of the rules for accessibility is apparently that you should have an h1 tag before any h2 or h3 tags etc. Normally that makes sense, except ...
thespacecamel's user avatar
0 votes
1 answer
2k views

Remove all link title attributes

After reading this and this, I want to remove the title attribute from all links of my blog, as that is good from accessibility point of view. How this can be achieved? UPDATE I found a solution how ...
Yuri's user avatar
  • 1,111
0 votes
2 answers
732 views

Add credit to get_custom_header in alt

Been hunting for a while and I can't figure out how to use get_custom_header to get the alt text associated with the media file, so that I can add photo credits to the headers on my site. Am I missing ...
Christopher's user avatar
3 votes
3 answers
571 views

Stylesheet switching and caching

I'm implementing a site that allows users to switch stylesheets (to show a high contrast version for people with vision impairments). The switcher essentially just changes the <link>ref to ...
anu's user avatar
  • 9,552
2 votes
1 answer
371 views

Accesibility problems with dropdown menus in twentyten theme or others

Some time ago I discovered that dropdown menus that do have clickable links on parent nodes are confusing for the users. Often they are not seeing that they can click on the parent, they just assume ...
sorin's user avatar
  • 1,123
3 votes
1 answer
2k views

How to make WordPress blog accessible for people with disabilities?

How do you make your wordpress blog accessible for people with disabilities ? are there any special plugins you are using ? are there any friendly themes you recommend ? is there an auto-detect ...
mireille raad's user avatar
1 vote
3 answers
11k views

How can I make a site viewable in multiple languages?

I am aware of the question What are options are there to implement a multi language site, but the answers there are focused on multi-language support on the backend as well as the frontend. I am only ...
Travis Northcutt's user avatar