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=”screen-reader-text”><?php echo esc_html_x( ‘Search’, ‘submit button’, ); ?></span> I want to know what’s the use of the <span class=”screen-reader-text”><?php echo esc_html_x( ‘Search’, ‘submit button’, ); ?> in this search form, its also working when i remove … Read more

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 using the following: var currentitem = $( ‘.current_page_item > a’ ); currentitem.attr( ‘aria-current’, ‘page’ ); While this does what I want it … Read more

How can you program if you’re blind?

Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. Sight is one of the senses most programmers take for granted. Most programmers would spend hours looking at a computer monitor (especially during times when they are in the … Read more