• bellportweb

    (@bellportweb)


    For some reason my spoiler tags are no longer working. This is the code I currently have…What is wrong here?

    [spoiler title="Available Options" open="yes"]
    
    <li>Red</li>
    <li>Yellow</li>
    <li>Orange</li>
    [/spoiler]
    [spoiler title="Packaging Options" open="no"]
    
    <li>11 lbs. - 1 1/9 bushels carton - (Choice Quality)</li>
    [/spoiler]
    [spoiler title="Availability" open="no"]
    
    <li>All Year Round</li>
    [/spoiler]
    [spoiler title="Special Packaging" open="no"]
    
    <li>Available Upon Request</li>
    [/spoiler]</div>
Viewing 5 replies - 1 through 5 (of 5 total)
  • baclab

    (@baclab)

    i have the same problem with the spoiler. no working here ??

    baclab

    (@baclab)

    I found the plugin that is guilty for it,Autoptimize. Can’t see what for settings exactly, but to get shortcodes to work again, I disable the plugin for the moment.

    Hi Baclab;
    I’m Autoptimize’s developer. I don’t really know shortcodes (others here do, so they can correct me if I’m wrong), but based on a quick scan of the code the spoiler functionality depends on “assets/js/other-shortcodes.js”. So add that (without the quotes) to the comma-seperated “exclude from JS optimization” list and try to re-enabling AO. It is possible you’ll also have to add jquery.js (which is a dependancy of other-shortcodes.js) and/ or that you’ll have to “force JS in head”.

    And if all of that fails, you could always just disable JS optimization, keeping CSS & HTML active.

    Hope this helps,
    frank

    baclab

    (@baclab)

    hey frank,

    thanks a lot. Autoptimize is a nice tool and I don’t want to skip it. Your method works perfectly and Your way to run it again was a great help!

    Brilliant! Thanks Frank! Exactly what I was just looking for as well!
    Chris

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shortcodes no longer working?’ is closed to new replies.