• I’m trying to get LightWindow to work on my wordpress blog. I have a bunch of links that when clicked, they open up in a modal box (with an image/swf inside). The thing is, this is an example code that is fully functional:

    <a href="gallery/header.swf" class="lightwindow" params="lightwindow_width=800,lightwindow_height=345">Link Name</a>

    (Note – I add this in the HTML tab and it actually works after I save the page.)

    Once I switch to the “Visual” tab and then back to the “HTML” tab, I see WordPress has removed the “params” tags, leaving me with:

    <a href="gallery/header.swf" class="lightwindow">Link Name</a>

    (The code doesn’t function now…)

    How do I go about solving this? I’ve gone through WAY too much work here to try and find and then switch to another modal box.

    Please help.

    I appreciate any answers.
    (I’m assuming I can edit a core file to tell wordpress not to remove stuff from posts/pages, right?)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ralph23

    (@ralph23)

    Bump.

    Once I switch to the “Visual” tab and then back to the “HTML” tab, I see WordPress has removed the “params” tags,

    Never switch back and forth between the visual and html editors because it will mess up your code. Use only one editor or the other. This is a long-standing issue due to the different ways these editors do things, and I don’t expect it to be fixed anytime soon.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WordPress Deletes “params” Attribute in Posts/Pages’ is closed to new replies.