-
Notifications
You must be signed in to change notification settings - Fork 860
image alignment not working as expected #1237
Comments
This is sort of interesting. This looks like it has to do with the filter "img_caption_shortcode" in cleanup.php . On line 25 if you comment out this line your images will probably work as expected. @colin-marshall @olefredrik Is this needed anymore? The function attached to it looks old. |
@JPOak the purpose of that filter is to:
Did you test this with the filter removed and images that are wider than the container? |
@colin-marshall I am not seeing any difference when I add an image of 2000px to the default FP template for a page. The _global for images is set to max-width: 100% . I'm just wondering if this stuff needs these function overrides now. |
If images larger than the container are staying 100% width of the container with that filter removed then I see no problem with removing the filter. It serves no other purpose that I can tell. |
@jturmelle if you get a chance just comment out the line I mention above. It won't destroy anything, but I think it will fix your problem. Let us know. I tested with theme testing data and it looks fine. |
@jturmelle did you try to debug with the inspector? |
Sorry, I screwed with the SCSS trying to fix it. I’m reverting my changes now. I’m pretty sure that’s the remaining problem.
Jeff Turmelle
International Research Institute for Climate and Society
The Earth Institute at Columbia University
… On Feb 26, 2018, at 9:21 PM, Colin Marshall ***@***.***> wrote:
@jturmelle <https://github.com/jturmelle> did you try to debug with the inspector?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#1237 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFMW0EQ1-oab4v84NWxYpfIRjHtYkwrYks5tY2aQgaJpZM4ST-v_>.
|
Looks like its working now. I checked out _wp_overrides.scss to overwrite my changes and it is working again.
Thanks very much for your quick help with this!
Jeff
… On Feb 26, 2018, at 9:21 PM, Colin Marshall ***@***.***> wrote:
@jturmelle <https://github.com/jturmelle> did you try to debug with the inspector?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#1237 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFMW0EQ1-oab4v84NWxYpfIRjHtYkwrYks5tY2aQgaJpZM4ST-v_>.
|
Fix image alignment bug discussed in #1237.
Is this closed out now @colin-marshall ? |
Yup. Thanks. |
How can this bug be reproduced?
What did you expect to happen?
![screen shot 2018-02-26 at 4 44 14 pm](https://user-images.githubusercontent.com/5445328/36697181-50ecf180-1b14-11e8-958f-5876bb4a474d.png)
I expected the figure and image to be centered and the caption to be the same width of the image, which is what happens in the preview.
What happened instead?
![screen shot 2018-02-26 at 4 46 10 pm](https://user-images.githubusercontent.com/5445328/36697278-9439b914-1b14-11e8-814b-b831d8c7f389.png)
Image is left-aligned with caption spanning the whole line.
Please List the Following:
node_modules/foundation-sites/package.json
) : 6.4.3Sorry, I'm not sure how to do this properly within a codepen or jsfiddle, since it depends a lot on the combination of wordpress and foundationpress.
The text was updated successfully, but these errors were encountered: