• Resolved Volkmar Kantor

    (@volkmar-kantor)


    I wonder why the css-class i had set with the cmplz_placeholder_markers filter was not applied for placeholder. Until i had a look at \core\php\class-cookie-blocker.php (line 263) where i found that only div and blockquote tags are searched for classes.

    Is it possible to add “section” to that list?

    Otherwise the following code will not be changed by the placeholder if i add the mapsWrapper-class via cmplz_placeholder_markers.

    
    <section class="mapsWrapper">
    <div id="map"></div>
    </section>
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Hi @volkmar-kantor,

    Sure, I have changed the regex to
    '/<(section|div|blockquote|twitter-widget)[^>]*?class=[\'"]([^>]*?' . $marker . '.*?)[\'"].*?>/i';

    It will be shipped with the next update, so you can change it now in the code without fear of it being overwritten.

    We can also add the “mapsWrapper” to our default integrations list, from which plugin is this class coming?

    Thread Starter Volkmar Kantor

    (@volkmar-kantor)

    Hi, thanks for the quick response.

    I have many different systems to maintain. Currently we work with elementor and the Avada pagebuilders (Fusion Builder). Also there some older pages using the SiteOrigin Pagebuilder.
    For events we use “event-organiser” – which included maps.

    But i dont think that you have to adjust for every plugin. The possiblity to add custom placeholder-classes is very cool.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘add section to possible placeholder-tags’ is closed to new replies.