• 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

Adding Javascript to Genesis Simple Hooks

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 › Adding Javascript to Genesis Simple Hooks

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 2 years, 2 months ago by andytc.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 6, 2021 at 1:48 pm #502511
    amifer
    Participant

    Hello,
    I have the Beautiful Pro Theme. I am trying to add this code:
    <script type='text/javascript' src='https://www.etsy.com/assets/js/etsy_mini_shop.js'></script><script type='text/javascript'>new Etsy.Mini(9235337,'gallery',5,1,0,'https://www.etsy.com');</script>
    using the simple hooks plugin in the genesis_entry_header hook.
    When I save changes, I get "A potentially unsafe operation has been detected in your request to this site."
    Can you please tell me what I am doing wrong?
    Thank you for your help!

    https://doodledogprimitives.com/
    January 6, 2021 at 2:50 pm #502513
    andytc
    Participant

    Do you have the Wordfence plugin installed?

    January 6, 2021 at 2:52 pm #502514
    amifer
    Participant

    Yes

    January 6, 2021 at 2:54 pm #502515
    andytc
    Participant

    A little reading tells me you might have to place the firewall option into ‘learning mode’ , if you google that exact error wording you’ll find some info. I don’t use that plugin, it’s just what I’ve found from a quick poke around.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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

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