- This topic has 2 replies, 3 voices, and was last updated 2 years, 4 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I'm using the featured page widget to get a service page to appear on the home page. The title shows up with an h4 tag and I would like to change it to an h2.
The only way to change the featured post widget title to a h2 is to remove accessibility support for headings. With handicapped accessibility enabled, the heading is h4. Disabling handicapped accessibility for headings renders the tags as h2.
Accessibility is enabled at line 43 in Executive Pro's functions.php file. You may want to look at using WordPress conditionals to selectively remove accessibility support for headings. This way you won't deactivate accessibility for the entire site, just the home page. I suggest is_widget_active() in combination with is_front_page() and is_home(). https://codex.wordpress.org/Conditional_Tags#Is_Widget_Active
© 2022 WPEngine, Inc.