Community Forums › Forums › Archived Forums › General Discussion › How to hide the extra headings in Genesis 2.2
Tagged: site
- This topic has 17 replies, 10 voices, and was last updated 8 years, 7 months ago by trucosgta.
-
AuthorPosts
-
September 3, 2015 at 12:20 am #164393Rian RietveldParticipant
If you update to Genesis 2.2 and activate the accessibility features, you may see some extra headings in your theme.
If you want to get rid of them, don’t remove them with a remove_action, but hide them with CSS.
Blind people need those headings to navigate and understand a web page.Don’t hide them with
display: none
, but with the.screen-reader-text
class.
This class is included in the new sample theme: https://github.com/copyblogger/genesis-sample/blob/develop/style.css
If you want to know more about how to use the accessibility features read: http://genesis-accessible.org/2015/07/genesis-2-2-accessibility-changes-and-features/
If you have any questions, ask them in the #accessibility channel.September 3, 2015 at 5:30 am #164405Victor FontModeratorAs an FYI, the new accessibility features have broken a few sites that have custom searches or dashicons in the menu. The dashicons disappear. This has happened on Parallax Pro and Magazine Pro so far. I've had to remove 'drop-down-menu', 'search-form', and 'skip-links' from the add theme support array to make the website appear normal again. It's going to take a lot of effort to figure out why the accessibility code is breaking these sites. I'm happy we're heading in this direction, but the new features shouldn't be breaking sites.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?September 3, 2015 at 6:34 am #164413Rian RietveldParticipantHey Victor, do you have links to one of those sites for me?
September 3, 2015 at 7:50 am #164422Victor FontModeratorYes, you can look at http://victorfont.com/ and http://sunshinestateskinny.com/. The first is my production site and the second is a site that is going live next week.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?September 3, 2015 at 8:45 am #164433Nathan RiceMemberNeither of those sites look broken to me. If you have a site that isn't live, please leave the a11y features turned on so we can see what the broken menus look like.
September 3, 2015 at 11:39 am #164484Victor FontModeratorI fixed my primary site. I still need to fix my client's. In order to add the search icon on the menu, I have custom code that looks for 'menu genesis-nav-menu' in $args->menu_class. The addition of super-fish changes the menu_class. I had to change my code to read:
if ( strpos( $args->menu_class, 'menu genesis-nav-menu' ) === false )
As an FYI, I just posted this article: http://victorfont.com/accessibility-genesis-framework/ to my 30,000 LinkedIn contacts. I'm hoping it brings Studio Press some business.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?September 15, 2015 at 12:54 am #165542jerrylcowanMemberFYI!
Add to the functions.php of your child theme (or the file where you store your add_theme_support options) the code:
add_theme_support( 'genesis-accessibility', array( 'headings', 'drop-down-menu', 'search-form', 'skip-links', 'rems' )
October 5, 2015 at 10:03 am #167448sachtotvnMemberHow can you activate the options you need and what to look out for to keep your own.
Ebook online doc sach dien tu online hay nhat tren internet
?‘ọc sách trực tuyến hay nhất, ?‘ọc sách ?‘iện tử online bản quyền, nghe kho sách nói online hay nhất, ?‘ọc ebook ngôn tình hay chất lượng. nhạc chờ viettel hay nhất trên mạng
October 6, 2015 at 12:40 am #167522Rian RietveldParticipantOctober 25, 2015 at 2:13 am #168951neerajojha5000MemberJanuary 9, 2016 at 3:51 pm #176078Nevil PatelMemberIf your active child theme does not already include the CSS for .screen-reader-text, add this in style.css
.screen-reader-text, .screen-reader-text span { position: absolute !important; clip: rect(0, 0, 0, 0); height: 1px; width: 1px; border: 0; overflow: hidden; } .screen-reader-text:focus { clip: auto !important; height: auto; width: auto; display: block; font-size: 1em; font-weight: bold; padding: 15px 23px 14px; color: #333; background: #fff; z-index: 100000; /* Above WP toolbar. */ text-decoration: none; box-shadow: 0 0 2px 2px rgba(0,0,0,.6); }
Hope this helps.
Blogger at Techno Nutty
January 20, 2016 at 9:33 pm #177060jonneal3MemberHey guys. For my genesis child theme, I will check it on certain mobile devices and the "genesis framework supports html 5 and mobile responsive design" header logo appears. Any idea how to get rid of this logo and display the "image logo as header that is supposed to show?
January 21, 2016 at 12:55 am #177068Rian RietveldParticipantHi Jonneal3,
The logo is present in 2 formats, one for normal screen ([email protected]) and one for mobile/retina screen
([email protected]). This is defined in style.css
You can replace [email protected] with your own logo or remove the [email protected] from the stylesheet.January 21, 2016 at 9:43 am #177082jonneal3MemberThis reply has been marked as private.February 11, 2016 at 1:54 am #178775Rian RietveldParticipantLOL@vinay123012, this is a first for me: someone stealing text from one of my blogposts and using it for spam. Get a life please...
March 8, 2016 at 2:54 am #180892Rian RietveldParticipantDue to the spam in the replies I'm unsubscribing this post. If you want my help or have issues with the accessibility of Genesis, please contact me in the Genesis Slack #accessibility channel @rianrietveld
And thanks to all the spammers for wasting everybody's time and preventing real support here :-s
RianApril 11, 2016 at 11:47 am #183405SusanModeratorI am closing this thread due to the number of spammers. If you still have questions, please contact @Rian directly, or start a new thread. Thanks!
August 23, 2016 at 4:28 am #191863trucosgtaMember -
AuthorPosts
- The topic ‘How to hide the extra headings in Genesis 2.2’ is closed to new replies.