Skip to content

Add <p> tag around shortcode output #5

@marktmcgrath

Description

@marktmcgrath

When using the shortcode in a block theme, the links get output as two separate, inline links but that makes it difficult to do something as simple as center both links on the page.

Semantically, I would think the links should be wrapped in a <p> tag anyway, is that something we can get fixed?

Example before:

<a href="https://wordpress.com/wp/?partner_domain=partner&amp;utm_source=Automattic&amp;utm_medium=colophon&amp;utm_campaign=Concierge%20Referral&amp;utm_term=partner" class="imprint" target="_blank">Proudly powered by WordPress.</a> <a href="https://pressable.com/?utm_source=Automattic&amp;utm_medium=rpc&amp;utm_campaign=Concierge%20Referral&amp;utm_term=concierge" class="imprint" target="_blank">Hosted by Pressable.</a>

Example after:

<p><a href="https://wordpress.com/wp/?partner_domain=partner&amp;utm_source=Automattic&amp;utm_medium=colophon&amp;utm_campaign=Concierge%20Referral&amp;utm_term=partner" class="imprint" target="_blank">Proudly powered by WordPress.</a> <a href="https://pressable.com/?utm_source=Automattic&amp;utm_medium=rpc&amp;utm_campaign=Concierge%20Referral&amp;utm_term=concierge" class="imprint" target="_blank">Hosted by Pressable.</a></p>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions