• 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

I need to load a meta tag on all internal pages except the home page of my site.

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 › Design Tips and Tricks › I need to load a meta tag on all internal pages except the home page of my site.

This topic is: not resolved

Tagged: indexing, Robots Meta Settings, seo settings

  • This topic has 3 replies, 2 voices, and was last updated 7 years, 9 months ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • August 17, 2018 at 8:53 pm #222585
    cristiano
    Member

    Hello,

    I need to load the meta tag on all internal pages except the home page of my site. How can I load this code below into settings.php

    <?php
    if ( is_home() ) {
      
      } else {
        <meta name="googlebot" content="noindex,noarchive,follow"/>
    }
    ?>
    August 17, 2018 at 9:38 pm #222586
    Brad Dalton
    Participant

    Use 1 of these conditionals after your function name :

     if ( ! is_front_page() 

    or

     
    if ( is_front_page() )
        return;
    

    Tutorials for StudioPress Themes.

    August 19, 2018 at 2:49 pm #222623
    cristiano
    Member

    Hi @braddalton, I appreciate your attention, but I can not make it work for me.

    I wanted to inform google to only index my homepage, I did not want to do the theme settings, I wanted to insert this conditional in the head.php of my genesis installation.

    Thanks

    August 19, 2018 at 7:31 pm #222626
    Brad Dalton
    Participant

    Use a custom function with the genesis_meta hook


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ 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