Skip to content

Allow option for Post title to specify tag, or none for no extra markup #30549

@mkaz

Description

@mkaz

I would like to use the query block to create something close to the following markup:

<ul>
    <li><a href="{LINK}">{POST TITLE}</a></li>
    <li> ... </li>
</ul>

The issue is not necessarily the query block but the Post Title block renders as a header tag based on the level, or a p tag if the level=0. I would prefer just the title and not the additional markup.

A solution could be to specify the tagname for the Post Title block, passing a level and tagname=h can be the default behavior and it works the same, but an empty tagname could just return the title fragment with no markup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Post TitleAffects the Post Title Block[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions