Quantcast
Channel: WordPress.org Forums » [Autoptimize] Support
Viewing all articles
Browse latest Browse all 14038

timholz on "[Plugin: Autoptimize] Filter"

$
0
0

Good Morning

I am sometimes using the filter that offers the options to insert css either before, after or replacing a specified html-tag. The head tag is unique, therefore the number of targets is one. But other tags have many instances. When i use the script tag and before or after, the css gets added with every occurence of the script-tag.

Would it be possible to modify the filter that, for instance the first occurence can be determined? (Like in css nth-child(1))

Thanks a lot for your interest.

regards
theo

p.s.: do you have more examples for the usage of filters?
Not all of them are self-explanatory, at least for non-programmers...

https://wordpress.org/plugins/autoptimize/


Viewing all articles
Browse latest Browse all 14038

Trending Articles