Add tags to remove

jeromebg
13 years, 9 months ago
Hi, is there a way to add tags to remove ?
I would like to remove a class="modal" because iphone and ipad doesn't work well with modal windows...

Thanx !
dryabov
13 years, 9 months ago
Currently there is no built-in solution. The correct way is to write a plugin that processes page text in onMobilePagePrepare event and removes class="modal".
fidoboy
13 years, 6 months ago
I'm trying to create a plugin using the onMobilePagePrepare  event, but it doesn't seems to work. I've created my plugin into the 'mobile' group. The event is not being fired... can you give me some tips to do this?
dryabov
13 years, 6 months ago
Check that your plugin belongs to system or mobile groups (to be sure it's loaded) and that method declaration is
function onMobilePagePrepare(&$text)


You can look at mobile youtube plugin for example.
fidoboy
13 years, 6 months ago
Thanks dryabov! I've solved my problem, it works fine now...

regards,

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.