• Resolved Stuckindmud

    (@stuckindmud)


    We are running code for a subscribe form on an external site inside the popup. (scroll down about 30% of the page length and the popup appears)

    The code has the html tag checked=”checked” which is in the Hustle pop up but when I look at the WP page where the plugin runs, that tag is not present.
    It looks like something is stripping it out.
    The subscribe works fine, it just does not show the selected button (Text or HTML) although the button is actually selected.

    <tr>
    <td><label for="user_html">Receive</label></td>
    <td><input id="user_html_0" name="user[html]" type="radio" value="0" />
    <label for="user_html_0">Text</label>
    <input id="user_html_1" checked="checked" name="user[html]" type="radio" value="1" />
    <label for="user_html_1">HTML</label></td>
    </tr>

    Any solution would be much appreciated.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @stuckindmud

    I hope you are doing well.

    The plugin will remove some tags, could you please try to use this mu-plugin code instead?

    <?php
    
    //Using this to protect the plugin
    defined('ABSPATH') or die('What are you looking for?');
    
    function custom_html_hustle(){
    
        ob_start(); ?>
    
          <!-- Your custom HTML -->
          <label for="user_html">Receive</label><input id="user_html_0" name="user[html]" type="radio" value="0" />
          <label for="user_html_0">Text</label>
          <input id="user_html_1" checked="checked" name="user[html]" type="radio" value="1" />
          <label for="user_html_1">HTML</label>
    
        <?php
    
        return ob_get_clean();
    
    }add_shortcode('custom-html-hustle','custom_html_hustle');

    Inside the Hustle content use the shortcode

    [custom-html-hustle]

    If you are not familiar with mu-plugins, you can find a guide here:

    https://premium.wpmudev.org/docs/getting-started/download-wpmu-dev-plugins-themes/#create-the-mu-plugin-file

    Are you using any special integration?

    Hustle has some natives integration at Hustle > Integrations.

    Let us know if you need any further help on this.
    Best Regards
    Patrick Freitas

    Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Thank you for using Hustle. We are going to close this ticket for now because we have not heard from you in a while. If you still need support we can reopen the thread.

    Cheers,
    Predrag

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘checked=”checked” tag stripped on output’ is closed to new replies.