• 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 add script

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 add script

This topic is: resolved
  • This topic has 3 replies, 3 voices, and was last updated 10 years, 2 months ago by davidsteele.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 11, 2015 at 3:58 am #143981
    davidsteele
    Member

    Hi All,

    I was trying to add this script:

    <script src='http://ctabarapp.com/embed/470e7a4f017a5476afb7eeb3f8b96f9b.js' type='text/javascript' data-class='ctaclass' ></script>

    before the tag </head> but it's not showing on my website. I put the codes under genesis simple hook and genesis header.php but still no success. Any idea what am I missing?

    Hope to hear any suggestions on how to fix this.

    Thanks,
    David

    http://www.relationshipcoachinginstitute.com/
    March 11, 2015 at 4:42 am #143986
    Brad Dalton
    Participant

    You can do this at least 4 ways.

    1. Add it to the correct simple hooks meta box which states it outputs before the head tag.

    2. Add it to the Genesis > Theme Settings > Header scripts

    3. Use it in a custom function with the correct hook.

    4. Or possibly use the wp-enqueue_scripts hook in a custom function.


    Tutorials for StudioPress Themes.

    March 11, 2015 at 4:51 am #143989
    Victor Font
    Moderator

    If you are using any caching programs, clear your cache. Adding scripts the way you are doing it won't be picked up as a change to a caching program.


    Regards,

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

    March 12, 2015 at 7:32 am #144158
    davidsteele
    Member

    Thanks for all your help. I already fixed the issue.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to add script’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 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