• Resolved RolandasZa

    (@rolandasza)


    Hi there ??

    I came to strange issue- there are no data-attributes on my production website, but data attributes are present on local website.

    So, this is a rendered element which triggers popup on local website:

    <p id=”el-d-for-propower” class=”manual-download-link pum-trigger” data-popup=”1661″ data-settings=”[object Object]” style=”cursor: pointer;”>ProPower</p>

    And same element rendered on live website:

    <p id=”el-d-for-propower” class=”manual-download-link pum-trigger” style=”cursor: pointer;”>ProPower</p>

    As you can see- data-popup and data-settings are missing.

    I do manual Google Captcha rendering on each form in each popup, so I need data-popup value.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @rolandasza:

    You need to sort out what is different between the local and production versions of your website (plugin settings, theme settings, WP Core version, etc).

    Here’s a reference to our article on site testing for troubleshooting problems: https://docs.wppopupmaker.com/article/332-test-whether-a-plugin-or-theme-interferes-with-popup-maker

    Work to isolate the source of the problem by using the simplest set up possible, then add in more complexity to see what might be causing the issue.

    Plugin Author Daniel Iser

    (@danieliser)

    @rolandasza – Those attributes are added via our JS. They don’t always appear in the inspector because we use $.data() to get them, not $.attr(). The latter would force them to appear in the inspector as well.

    I’m not sure what your using them for but jQuery should have no trouble pulling from the $.data() of the object.

    Hope that helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘data- attributes missing’ is closed to new replies.