rwp_add_filters examples needed
-
Hi there,
This plugin seems to be awesome for image optimisation, especially when mobile performance is more and more taken into account for the SEO.
Unfortunately, I’m not an expert. And I have red that the default plugin settings only take care of images related to the_content (TinyMCE if I understand correctly).
What I expect to do is to add this an srcset attribute to ALL my images. This can be done by using the rwp_add_filters if I have properly understood. But I need some help in order to achieve this, like a proper exemple related to MY website in order to get started.
My website : https://www.les-alternatives.com
The different images displayed on my website will comes from 3 plugins :
– Justify Images Grid
– Custom Content Shortcode
– Grid FXLet’s say we’ll begin to add a rwp_add_filter for all images related to the Custom Content Shortcode plugin. An example of my “last product news” made with this plugin can be shown there : https://www.les-alternatives.com/jeu/moba/news-smite-battleground-of-the-gods/
As you can see, even if the plugin uses standard WP function, and are generated directly inside the Tiny MCE Editor, no srcset attribute are set. Can you just gimme an example on how I can do to make your plugin work.
Any help will be more than appreciated.
PS : if you wanna give me an exemple for the Grid FX plugin, displayed on the welcome page here, you can do it too. It will be easier prob because Custom Content Shortcode is kinda specific.
Regards.
- The topic ‘rwp_add_filters examples needed’ is closed to new replies.