Issue with photo captions
-
I used the plugin with my blog, it works fine… until I noticed that photos were generated without their caption.
Is it a missing feature? Something I missed or a bug?
Thanks.
PS: I would’ve gladly provided the link, but it is a private blog…
-
Hi @ellismagaud thanks for the big report. Image captions should appear- at least they have for me.
Are you using any image plugins? Are you using the clsssic editor or Gutenberg?Hi,
I am using the “Twenty Nineteen” theme.
I am not using any special photo plugin.
Only plugins active are Jetpack, Akismet Anti-Spam, Alfred the Assistant and Print My Blog ??
… and then I believe I am using Gutenberg as I did not add the Classic editor plugin, nor the Disable Gutenberg plugin.One specificity of my blog is in the layout, almost all the photos are inserted in a two column block…
Ok thanks for the details. I’ve tried with twentyninteen theme, and Gutenberg, adding a columns block, with two column inside it, and added images to them and tried printing it with Print My Blog. The columns appeared ok.
So unfortunately, I still don’t have enough information to figure out what the problem is.
You could try creating a temporary site on https://poopy.life (or somewhere else that’s public) and see if you can reproduce the same issue, then send me the link to it.
I think I got it…
See: https://hurt-crayfish.w6.poopy.life/
Issue is that I have set a non white background color and used white for caption text…
For some reason the non-white background color is not taken into accout, but the white text caption is!! Thus rendering invisible text!!Pat
Oh, wow, you totally figured out the issue on your own… What do you need me for?? ??
Oh, I also noticed: on that site, the caption text was only invisible in the print-page (which only provides a rough preview), it was actually visible in the real printout.
So although you fixed your issue, it was still a headache for you. So I’ve add some text suggesting (in version 1.9.5) folks use their browser’s built-in print preview. Hopefully that will save some people similar headaches.Thanks for working through this! Feel free to leave a review??
Hi,
I would still like to have my selection of background color reproduced… then I could still keep my selection of caption color text.
Any ideas why the non white background color does not get rendered?
I also did not get your comment about it only been invisible on the print-page preview… when I go all the way to generate the pdf, I still get the white background i.e. invisible white text.As I am not gifted in CSS nor expert in WP, maybe the way I set the background color for that blog is not the best solution (I usually search the web and copy what others did…).
Anything you might suggest so we can preserve the choice of background ?
In the meantime I have a workaround….
Pat
My apologies for prematurely thinking your issue was resolved!
> Any ideas why the non white background color does not get rendered?
There are two reasons:
1. Print My Blog’s print page doesn’t use the CSS class “site”. Why not? Because I didn’t think about it! ?? I think I’ll add that right away.
2. Firefox and Chrome have options to force white backgrounds in printouts.
Eg, when printing from Chrome, it’s under “More settings” then “Background graphics”. This is what the site looks like when it’s including background colors, and this is it without background graphics.
> Anything you might suggest so we can preserve the choice of background ?
I’ll add the CSS class “site” in the next update, and I think your background colors will appear. ??
For my reference, the custom CSS you were using that was causing the issue was
.site { background-color: #6a8a79; } .wp-block-image figcaption { color: #fff; }
-
This reply was modified 5 years, 8 months ago by
Michael Nelson. Reason: adjusting markup
Super and thanks
(Would change the issue title to mention background color instead of caption, if I was allowed to ….)
Hi @ellismagaud, here is a version of Print My Blog you can try that adds the “site” CSS class. It would be helpful if you could confirm it resolves your issue by downloading it, uploading it to your site (from the admin dashboard, go “plugins”, “add new”, then “upload”, and select the zip file), deactivate the current version of Print My Blog (1.9.5) and instead activate this new version (1.9.6).
Now when you’re printing to PDF (I’m guessing you’re using the Firefox extension “Print to PDF”; if not, please tell me what you’re using), if you have the extension setup to show background colors, they should be shown as expected (with white caption text); but if you have setup the extension to hide background colors, the backgrounds should be white, and the captions should be black. (Here’s an image explaining how to change that setting for the “Print to PDF” Firefox extension).
Thanks!
-
This reply was modified 5 years, 8 months ago by
Michael Nelson. Reason: ummm it snot markup
It’s ok @ellismagaud, from my testing this resolved the issue, so I’ve just released this as 1.9.6. So all you need to do to try it is update the plugin from your WordPress dashboard as you do normally.
If you could confirm it helped that would be great.
Either way, take care! Thanks for the review ??.
-
This reply was modified 5 years, 8 months ago by
- The topic ‘Issue with photo captions’ is closed to new replies.