• Resolved Daniel B

    (@danbryde)


    Hello,

    Great plug-in! I’ve used it a couple times. I’m having an issue though on a current site I’m trying to implement it on. Whenever I activate MailChimp For WordPress, <br> tags are added around other input tags on the site. Particularly around inputs for product ratings on the home page. The br tags aren’t there regularly and they’re gone whenever I deactivate the plugin. Any help would be great. Thank you!

    MailChimp For WordPress Version: 4.0.9
    Website: http://energysaverhub.com/

    • This topic was modified 7 years, 4 months ago by Daniel B.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Lap

    (@lapzor)

    Hi,

    I do not see any product rating on the homepage. Maybe just overlooking it. Could you please give me some more detail where I should see the problem or else send me a screenshot?

    Are you sure BR tags are added, or do you just mean that there is spacing or something goes to a new line that shouldn’t (css conflict)?

    Thread Starter Daniel B

    (@danbryde)

    Hey Lap,

    Thanks for your response. I just realized I could have added a screenshot. My bad. that would have been helpful I’m sure. Anyway, I have attached a screenshot now. The spacing above the images is being caused by the br tags that are being added.

    Yes, they’re added. The weren’t there until I added and activated the plugin and they are no longer added once I disable the plugin.

    Again, thank you for your help.

    Issue Screenshot

    Plugin Contributor Lap

    (@lapzor)

    And could you now please turn off the MC4WP plugin and leave all others on and let me test again?

    By the way, we have seen similar problem before that was caused by a page builder, not by our plugin.

    Thread Starter Daniel B

    (@danbryde)

    I have disabled MC4WP. Interesting. I am using Site origins page builder however, I wonder why that would happen.

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Dan,

    Can you please try adding the following snippet of code to your site (your theme its functions.php would be a good place for this) and then re-activating the MailChimp for WordPress plugin to see if the problem persists?

    
    add_action( 'init', function() {
    	remove_filter( 'widget_text', 'shortcode_unautop' );
    }, 1);
    

    We feel like this may have something to do with the wpautop function in WordPress and the way we allow to use our shortcode in a regular text widget.

    If the problem with that snippet does not occur, then we know where it’s coming from!

    Thread Starter Daniel B

    (@danbryde)

    Hello Dan,

    Thanks for the code snippet. I added it to my functions file and activated the plugin, however, the bug is still occurring. Interestingly enough, the issue continues even when I don’t have the form displayed on the site. I don’t know if that’s helpful or not, nevertheless, I thought I’d let you know.

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Dan,

    Hmm, that is strange. Do you know which plugin is responsible for the “ratings” HTML output as shown in your screenshot? I’d love to take a closer look.

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey you haven’t responded to this ticket, so I’m marking this as resolved. Please do let us know if you’re still experiencing an issue.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Break(br) tags added around non MailChimp For WP Input fields’ is closed to new replies.