• 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

add javascript to studiopress 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 › Design Tips and Tricks › add javascript to studiopress theme

This topic is: not resolved

Tagged: java, javascript

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 6 months ago by ramseyp.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 11, 2012 at 7:58 pm #4600
    Bryan Morgan
    Member

    I am in need of adding the below javascript to my site, this script according to the developer is supposed to prompt someone when visiting my site from a mobile browser to download a iPhone or Android app.  I have placed the script in the header.php file just before the closing </head> tag but it is not working.  The site where this script is: http://www.imagebotique.com.

    <script src='http://mobileroadie.com/clientmodal/js/15519' type='text/javascript'></script>

    December 12, 2012 at 12:16 am #4643
    ramseyp
    Member

    Bryan, in your Genesis Theme Settings (Log into WordPress, look in the main menu on the left for "Genesis", then "Theme Settings". On that page, at the bottom, are boxes where you can paste any necessary javascripts for your site. That script you have should go in one of those.


    Community • Work • Conversations

    December 12, 2012 at 8:19 am #4689
    Bryan Morgan
    Member

    thanks for the you answer ramseyp.  I have cleared out the instance of the script I manually entered in the header.php file and placed the script in the header script section of Genesis settings, I am still not getting my desired outcome.  I read that js can sometimes be disabled by default in wordpress, is there something else I need to do to enable the script to run.

     

    For testing purposes I am testing on a iPhone 4 with iOs 6 and have been removing browser history and then navigating to my site.  The script is only supposed to work the first time someone visits the site.

    December 12, 2012 at 9:52 am #4724
    ramseyp
    Member

    Hi Bryan,

    I see the script loading inside the head of the site, so it's being inserted by Genesis successfully. (Looking at the URL with Chrome.) WordPress really has nothing to do with disabling javascript - I've never heard that before. You might need to check with who you got the script from to see if they can see it load on the site, or if they have any tips for troubleshooting it.


    Community • Work • Conversations

  • 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

© 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