• 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

Trouble adding meta tag to executive pro child theme

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 › Trouble adding meta tag to executive pro child theme

This topic is: not resolved

Tagged: hook, meta

  • This topic has 1 reply, 1 voice, and was last updated 12 years, 1 month ago by rcwatson.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 10, 2014 at 1:22 pm #84474
    rcwatson
    Member

    I'm trying to add a special meta tag to this site for controlling layout on mobile devices. I've followed this Genesis tutorial on using a hook, but it doesn't add the meta tag.

    The tag I want to add across the whole site is:

    <meta name="format-detection" content="telephone=no">

    So, I added that meta code to a new file named cbw-meta.php and put it in the child theme's directory (Executive Pro).

    Then I added this to the functions.php of the child theme:

    add_action( 'genesis-post-meta', 'include_cbw_meta');
    function include_cbw_meta() {
        require(CHILD_DIR.'/cbw-meta.php');
    }

    Uploaded those to the server and refreshed the browser, but the new meta tag doesn't show up in the rendered source.

    What step did I miss here?

    Thanks.

    http://stage.custombuiltwindows.com
    January 11, 2014 at 11:53 am #84635
    rcwatson
    Member

    Dang. I totally spaced that there is a Settings page in Genesis that lets me add stuff to the header. I did it that way and it worked like a charm.

  • 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