• Resolved Christophe

    (@ahmontour)


    Hello,

    First of all, a big “thank you!” to this plugin’s authors for the great job done on this. Writing an article while taking into consideration typographic rules has never been that easy! ??

    Nonetheless, I have spotted a behaviour that was not expected from my side, and would like to report this to you in case it would be a bug and still unknown.

    I am using the default Twenty Twenty WP theme and it seems like wp-Typography does not modify the figcaption of the featured image of a post. You can see it on the page linked to this post.

    – The figcaption of the featured image contains ?? but no space is added,
    – You can also notice that at the bottom of the same post, one of the figcaption in the gallery contains ?? and spaces are correctly added there.

    I have also double checked the plugin configuration and none of these html elements/classes seem to be in the exclusion list (default configuration).

    • This topic was modified 4 years, 9 months ago by Christophe.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pepe

    (@pputzer)

    Twenty Twenty uses a template part (template-parts/featured-image) for including the featured image and does not run any filters on that. Until I get around to implement a full-page mode (which is something I want to do, but its a big change and only useful in certain circumstances), your best bet is to override the template in your child theme and apply the wp-Typography filter yourself.

    Alternatively, you could try adding the process_title filter to the wp_get_attachment_caption hook, but that might have side effects (there is no specific filter hook for the get_the_post_thumbnail_caption() function).

    Thread Starter Christophe

    (@ahmontour)

    Thanks for the quick reply. So apparently the bug was known. ??

    I really appreciate your suggestions to fix the problem, but I will choose the easiest one: keep it as it is! After all, that’s not a big deal and overall this plugin is still super efficient.

    Resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Typo in figcaption (featured image)’ is closed to new replies.