• Resolved samsports

    (@samsports)


    Hello,
    some years ago I used the spoiler-plugin to hide some content. If you click on one of the 4 blue buttons lists show up. If you search for “spoiler” you will see that only the shortcodes called “[spoiler]” does show up. For years it works almost without problems, but now I don’t know what to do. When I create a blank page and hit [spoiler]sometext[/spoiler] in it, everything works, but on the link above it doesn’t work.

    I hope it hasn’t something to do with my link (and this special site) because all you see after hitting the blue buttons will be loaded dynamically with a child-theme.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Sergey Kuzmich

    (@sergeykuzmich)

    Hi,

    Did you try any other shortcode in this section? If the problem will still exist with other shorcodes – it means theme you’re using processes content some manual way without applying method to enable shortcodes.

    Please, let me know after you check it with another shortcode and we’ll look into the problem deeper.

    Thank you.

    Thread Starter samsports

    (@samsports)

    Sorry for my late reply. I found out that I can use plugins inside a child-theme with the following line (before I just inserted it in raw fashion):

    echo do_shortcode('[spoiler]' . $a[description_en] . '[/spoiler]');

    I tried it but it seems the CSS is not there and it slightly produced a different output as on my temporary testpage: https://www.scienceandmotion.com/testpage/

    • This reply was modified 5 years, 1 month ago by samsports.
    Plugin Author Sergey Kuzmich

    (@sergeykuzmich)

    Hi,

    There is an optimization for enqueuing plugin styles & scripts. It skips plugin styles & scripts if there is no spoiler shortcode on the page.
    I’m not sure I’m able to help with it without access to the code.

    Thread Starter samsports

    (@samsports)

    Ah, now that makes sense why nothing works, even after I tried to include all what was needed for this plugin but it ended with an error-message after including our plugin php-file, my stomach said I couldn’t simply raw-include this file because it is written as a plugin. The shortcode does also already exist when I tested this via the shortcode_exists() function.

    So the question is, how can I disable this optimization for a specific wordpress site? I haven’t found a solution yet but want to do it on my own (because of security reasons giving someone access, I hope you understand).

    Plugin Author Sergey Kuzmich

    (@sergeykuzmich)

    Hello again,

    Okay, please, try to use this version https://github.com/sergeykuzmich/inline-spoilers/archive/feature/disable-optimization.zip.

    I’ve disabled styles & script loading optimization.

    Please, let me know the result & I’ll think how to provide this feature in future releases.

    Thank you.

    Thread Starter samsports

    (@samsports)

    It worked without problems, I’m very happy now. Thank you !!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Spoiler doesn’t show up’ is closed to new replies.