Hi, I could use some help with the WordPress plugin Simply Static. I can’t figure out how to get it to add background images.
Context: I’m using Elementor, hello theme and generating static files using Simply Static. I’m making use of the Gallery widget, but the images are not being pulled by Simply Static. I’m quite certain it’s because Elementor codes them as background images, and this is a known issue in Simply Static. Documentation for Simply Static provides a snippet of php to customize what content the crawler pulls, but I can’t figure out how to customize it. I’m using the Code Snippet plugin to add the code to run it (can also be added to functions.php)
code:
add\_filter( ‘ss\_match\_tags’, function ( $match\_tags ) { $match\_tags\[‘div’\] = array( ‘href’, ‘src’, ‘style’ ); return $match\_tags; } );
here’s a link to documentation:
[https://simplystatic.com/docs/hooks-filter-simply-static/#ss-match-tags])and the creator helping someone else with this issue, but not fully explaining how to implement the code snippet:
[https://wordpress.org/support/topic/images-and-media-copied-in-to-the-zip-file/])I’m guessing, but not sure, that this div section HTML from the Elementor Gallery widget in use is relevant:
<div class=”e-gallery-image elementor-gallery-item\_\_image” data-thumbnail=”http://portfolio-pro.local/wp-content/uploads/2023/08/filename.jpg” data-width=”800″ data-height=”534″ aria-label=”” role=”img” style=”background-image: url(“http://portfolio-pro.local/wp-content/uploads/2023/08/filename.jpg”);”></div>
Any help? Thanks.
​
[ad_2]