• I use the Spoiler shortcode to wrap the standard gallery of images as follows, and I do it in the Code editor:

    <!-- wp:shortcode -->
    [su_spoiler class="my-custom-spoiler" title="Title"]
    
    GALLERY CODE
    
    [/su_spoiler]
    <!-- /wp:shortcode -->

    When I switch to the Block editor, the gallery code disappears, and only the following code of Spoiler shortcode remains:

    <!-- wp:shortcode -->
    [su_spoiler class="my-custom-spoiler" title="Title"]
    
    [/su_spoiler]
    <!-- /wp:shortcode -->

    I checked on a clean installation of WordPress with no other plugins.

    • This topic was modified 2 years, 5 months ago by pharmanext.
  • The topic ‘Spoiler and Gallery’ is closed to new replies.