• 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 Popup Maker to Executive Pro 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 › Adding Popup Maker to Executive Pro Theme

This topic is: resolved

Tagged: modal, popup maker

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 3 months ago by dareadel.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 28, 2017 at 9:48 am #200178
    dareadel
    Participant

    Hello,

    Does anyone have experience with this plugin? I am trying add the popup maker plugin to the Executive Pro but would like to know if anyone has a suggestions on what to change in the following function code to make it compatible with genesis especially the first add_filter parameter:

    <?php
    // Copy everything below this line //
    function my_allowed_protocols ( $protocols ) {
    	$protocols[] = "javascript";
    	return $protocols;
    }
    add_filter( 'kses_allowed_protocols', 'my_allowed_protocols' );
    
    ?>

    There are different options for using the plugin but I prefer to use the javascript option but afraid not to break codes in the genesis theme.

    January 28, 2017 at 10:55 am #200183
    Victor Font
    Moderator

    This has nothing to do with Genesis. kses_allowed_protocols is a WordPress filter. It knows nothing about theme hooks. The WordPress kses_allowed_protocols filter should be run before init. The correct way to call this filter

    add_action('plugins_loaded', function(){add_filter('kses_allowed_protocols', 'my_allowed_protocols' );});

    I'm curious as to why you would add a protocol for javascript. Javascript is not a protocol. I looked over the documentation on the plugin site also and kses_allowed_protocols is not found anywhere in the docs. Where did you find the instructions to add javascript as a protocol?


    Regards,

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

    February 1, 2017 at 10:27 am #200369
    dareadel
    Participant

    Thanks Victor. I copied directly from the site. However, I have decided to use their default settings which works ok.

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

© 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