Background images tags
-
Hello,
I see the plugin does its best to find background images using the following:
// Process background images on div elements. $buffer = $this->parse_background_images( $buffer, 'div' ); // Process background images on li elements. $buffer = $this->parse_background_images( $buffer, 'li' ); // Process background images on span elements. $buffer = $this->parse_background_images( $buffer, 'span' ); // Process background images on section elements. $buffer = $this->parse_background_images( $buffer, 'section' ); // Process background images on a/link elements. $buffer = $this->parse_background_images( $buffer, 'a' );
My theme happens to put background images on header tags. Would it be possible to add a filter so that the list of tags can be tweaked? Something like:
// Process background images on specific tag elements $background_images_tags = apply_filter( 'ewwwio_background_images_tags', array( 'div', 'li', 'span', 'section', 'a' ) ); foreach ($background_images_tags as $tag) { $buffer = $this->parse_background_images( $buffer, $tag ); }
Thank you!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Background images tags’ is closed to new replies.