olefredrik / FoundationPress

FoundationPress is a WordPress starter theme based on Foundation 6 by Zurb
https://foundationpress.olefredrik.com
MIT License
2.71k stars 871 forks source link

Question: where is the markup for a standard, non-gallery, single image with a caption? #1355

Closed adambundy closed 5 years ago

adambundy commented 5 years ago

I just wanted to remove the inline hard-coded width in the

element. Thanks!

derweili commented 5 years ago

There are some modifications to Standard Images in the responsive-images.php file.

https://github.com/olefredrik/FoundationPress/blob/master/library/responsive-images.php

Or do you mean something else?

adambundy commented 5 years ago

No I was referring to an image with a caption applied in the edit image modal. Is this being modified by Foundation, or is this core WP somewhere?? The opening figure tag ends up looking like:

<figure id="attachment_XX" style="width: 1024px" class="wp-caption alignnone">

derweili commented 5 years ago

This is a WordPress "Feature".

Under the following link you will find solutions to solve the problem.

https://stackoverflow.com/questions/23812072/wordpress-3-9-x-remove-inline-width-from-figure-element

adambundy commented 5 years ago

Oh wow, how dumb. :) Thanks @derweili!