• Hi,
    Post title block uses H1 till H6 tags
    is there a way to add “p” tag to selection ?

    Thanks in advance for your help

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Chillmen,

    I completely understand your concern regarding the Post title block using h1 till h6 tags. Adding a “p” tag to the selection is feasible through custom code or custom CSS.

    For a sample Custom CSS solution:

    1. Go to your dashboard.
    2. Navigate to “Appearance.”
    3. Click on “Customize.”
    4. Look for “Additional CSS” or “Custom CSS.”
    5. Paste the following code:

    .your-post-title-class p { /* Your custom styles for the "p" tag go here */ font-size: 16px; color: #333; /* Add more styles as needed */ }

    6) Make sure to replace .your-post-title-class with the actual class of your post title block.

    Check out this link -> https://share.zight.com/DOuPEN4W

    To provide you with a more accurate solution, could you please specify the theme or block you’re currently using? This will help me guide you on whether there’s an option within the builder itself or if we need to implement custom code.

    Best regards,

    Alexander

    Thread Starter chillmen

    (@chillmen)

    Hi Alexander,
    Thank you for your help, but this solution won’t reflect in the source code.
    Right now i’m using the H2 tag in archives posts, what i need is to use p tag instead. I don’t want to use any of the H tags.

    i’m using the new 2024 default theme.

    Moderator bcworkz

    (@bcworkz)

    In case Alexander is unable to help you further, I suggest asking for help in your theme’s dedicated support forum.

    FWIW, it is possible to manually add some HTML like p and br tags to titles through the Quick Edit feature, but doing so would not remove the h tags your theme uses.

    I just stumbled upon this topic and noticed there’s a related issue on GitHub. A workaround has been provided in the comments section:

    https://github.com/WordPress/gutenberg/issues/30549#issuecomment-1679376389

    • This reply was modified 5 months, 1 week ago by huubl.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.