Support

Home Forums Event Espresso Premium I need to put data-rokbox in link html removed when registration form renders

I need to put data-rokbox in link html removed when registration form renders

Posted: November 6, 2018 at 6:15 am

Viewing 10 reply threads


raffy

November 6, 2018 at 6:15 am

I am running:
Event Espresso 4.9.69.p
Wordpress 4.9.8 MU subdirectory

I want to include data-rokbox in my link tags

link text

so that I get

link text

. I intend to do this in either the description field or in the question field of a question. This will allow me to have a pop-up when the link text is clicked.

The pop-up works in other parts of the site. It does not work within the registration forms. When one inspects the element, the data-rokbox is stripped out.

Is there anything we can do about this?


raffy

November 6, 2018 at 6:21 am

I am running:
Event Espresso 4.9.69.p
Wordpress 4.9.8 MU subdirectory

I want to include data-rokbox in my link tags

link text
so that I get
link text

I intend to do this in either the description field or in the question field in the registration form. This will allow me to have a pop-up when “link text” is clicked.

The pop-up works in other parts of the site. It does not work within the registration forms. When one inspects the element, the data-rokbox is not there. If you add it back into the code while inspecting element, the link actually activates a pop-up actually works.

It works here https://incognitus.ph/ayala/#register. Click on the 1.2K Map

It does not work when I set up a link inside the registration form so that a size chart pops-up.

Is there anything we can do about this?


Josh

  • Support Staff

November 6, 2018 at 6:53 am

Hi Raffy,

Since you’re on a Multisite it might require you to be logged in as a Super Admin in order to add a custom attribute there. If you’re on a multisite and are logged in as a regular admin then some additional security filtering is used to help prevent admins from inputting invalid html into fields.


raffy

November 7, 2018 at 12:24 am

I am logged in as Super Admin.

Any other suggestion?


Tony

  • Support Staff

November 7, 2018 at 3:39 am

Hi Raffy,

Can you post a screenshot of how you are adding the class to the question please?

I’ve just tested in on my site an had no issues.

Question – http://take.ms/y3j8I

Output – http://take.ms/jTucR

What type of question are you using?


raffy

November 7, 2018 at 4:50 am

Question with link markup and data-rokbox on the backend
Markup as found on source after page rendersAs page is rendered on browser
Page where it does not work is found on https://incognitus.ph/macquarie/registration-checkout/
Please note current markup also has target=_blank as a less elegant implementation. If you decide to visit the site, during check out two images at the top which the theme renders outside the registration form produces the desired effect of a pop-up lightbox.


As page is rendered on browser
Page that has the working element is at https://incognitus.ph/macquarie/#register

I my notes work for you.


raffy

November 7, 2018 at 4:51 am

I hope my notes work for you.


Josh

  • Support Staff

November 7, 2018 at 6:50 am

Hi Raffy,

I can’t replicate this issue on my multisite when I’m logged in as Super Admin. Here’s a screenshot of the form I tested, with the source:

https://slack-files.com/T02SY781D-FDXND57QB-8922e1bc7b

One thing you could do is try deactivating all other plugins and temporarily switch to another theme. There may be something filtering the shortcode output on your site.


raffy

November 7, 2018 at 4:03 pm

I’ll do the troubleshooting you suggested.

Please note data-rokbox is not a value of an html attribute. It’s usage is is not class=”data-rokbox” or id=”data-rokbox” or label=”data-rokbox”.

Its usage is <a data-rokbox href="url">link</a>. On the registration form, data-rokbox is filtered out and the code becomes <a href="url">link</a>. On other portions of the site it is not filtered out.


Tony

  • Support Staff

November 8, 2018 at 2:48 am

Hi Raffy,

Just to note, initially, I did think you were trying to add a class of data-rokbox, however, I realized shortly after testing the class that wasn’t the case and tested using something similar to <a data-rokbox href="url">link</a>

For me the result is the same and data-rokbox is output on the link – http://take.ms/kWBeP


raffy

November 8, 2018 at 3:49 pm

Josh, Tony.

Thanks for the replies. I’ll go through my troubleshooting again.

I’ll update you with what I find.

Viewing 10 reply threads

The support post ‘I need to put data-rokbox in link html removed when registration form renders’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso