Support » Themes and Templates » Skip to content (Twenty Ten child theme)

  • Hello all,

    Trying to track down ‘errors’ in my child theme (of Twenty Ten) to get it going the way I want.

    When I have my child theme activated, it gives this message in the header: “skip to content”…

    Looking into the header.php I see this code below:

    <!-- #branding -->
    
    			<div id="access" role="navigation">
    			  <?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    				<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>

    Why is this showing? And can I safely remove this part of the code, so it won’t show up any more?

    Thanks for any input on this matter!

Viewing 2 replies - 1 through 2 (of 2 total)
  • a:
    if you don’t want to improve accessibility, you can remove this part safely:

    <?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    				<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>

    b:
    the parent theme uses this style to move the ‘skip’ from the screen:

    /* Text meant only for screen readers */
    .screen-reader-text {
    	position: absolute;
    	left: -9000px;
    }

    Thread Starter btwien

    (@btwien)

    @ alchymyth

    Thanks for your reply…Removing it is the ‘easiest’, but do you think keeping it would be best?

    If so, should I add the css code in my style.css?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Skip to content (Twenty Ten child theme)’ is closed to new replies.