stop inline styling when using [caption] shortcode
-
HI there,
I am currently running a header CSP check on my site for or XXS errors.
On one page, I have used the WordPress shortcode[caption]many times to show many images.
When using the caption shortcode, https://codex.ww.wp.xz.cn/Caption_Shortcode you must enter awidthvalue. But this value is then inserted as an inline style value:
[caption id="" align="aligncenter" width="300"].......[/caption]results in<figure style="width: 300px"being output as inline styling.
I would like to enter this width from a style sheet.
Can anyone advise on this please?The page I need help with: [log in to see the link]
The topic ‘stop inline styling when using [caption] shortcode’ is closed to new replies.