• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to remove unwanted code

Welcome!

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.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › How to remove unwanted code

This topic is: resolved
  • This topic has 1 reply, 2 voices, and was last updated 9 years ago by Victor Font.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • June 14, 2017 at 1:43 pm #207741
    horace1
    Member

    Hey how do i go about removing all this this code. So that it does show up in "view source page".

    <div class="site-container">

    <ul class="genesis-skip-link">

  • Skip to content
  • Skip to primary sidebar
  • <div class="site-innerhome" itemscope itemtype="https://schema.org/CreativeWork"></div>

    </div>

    <script type='text/javascript' src='http://localhost/site/wp-includes/js/hoverIntent.min.js?ver=1.8.1'></script>
    <script type='text/javascript' src='http://localhost/site/wp-content/themes/genesis/lib/js/menu/superfish.js?ver=1.7.5'></script>
    <script type='text/javascript' src='http://localhost/site/wp-content/themes/genesis/lib/js/menu/superfish.args.js?ver=2.5.2'></script>
    <script type='text/javascript' src='http://localhost/site/wp-content/themes/genesis/lib/js/skip-links.js?ver=2.5.2'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    var genesisSampleL10n = {"mainMenu":"Menu","subMenu":"Menu"};
    /* ]]> */
    </script>
    <script type='text/javascript' src='http://localhost/site/wp-content/themes/genesis-sample/js/responsive-menu.js?ver=1.0.0'></script>
    <script type='text/javascript' src='http://localhost/site/wp-includes/js/wp-embed.min.js?ver=4.8'></script>

    http://Localhost
June 19, 2017 at 5:12 am #207925
Victor Font
Moderator

Skip links are an essential part of the accessibility features. If you want to disable accessibility and risk hurting your SEO, then look for a line similar to this in your theme's functions.php file and remove it:

add_theme_support( 'genesis-accessibility', array( 'drop-down-menu', 'headings', 'rems', 'search-form', 'skip-links' ) );

You can remove the site-container by adding this to functions.php:

add_filter( 'genesis_markup_site-container', '__return_null' );


Regards,

Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?

  • Author
    Posts
  • Viewing 2 posts - 1 through 2 (of 2 total)
    • The forum ‘General Discussion’ is closed to new topics and replies.

    CTA

    Ready to get started? Create a site or shop for themes.

    Create a site with WP EngineShop for Themes

    Footer

    StudioPress

    © 2026 WPEngine, Inc.

    Products
    • Create a Site with WP Engine
    • Shop for Themes
    • Theme Features
    • Get Started
    • Showcase
    Company
    • Brand Assets
    • Terms of Service
    • Accptable Usse Policy
    • Privacy Policy
    • Refund Policy
    • Contact Us
    Community
    • Find Developers
    • Forums
    • Facebook Group
    • #GenesisWP
    • Showcase
    Resources
    • StudioPress Blog
    • Help & Documentation
    • FAQs
    • Code Snippets
    • Affiliates
    Connect
    • StudioPress Live
    • StudioPress FM
    • Facebook
    • Twitter
    • Dribbble