• Resolved mauri01

    (@mauri01)


    Hello,
    How to add a title attribute to a link on a button, I did a social footer hook and created the social icons with the buttons, but google complains that a title tag is missing.
    I try to edit in HTML, but then I get an “Attempt Block Recovery” msg.

    what else I could do? and why I get an Attempt Block Recovery msg?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tom

    (@edge22)

    Hi there,

    The “Attempt Block Recovery” error is a core WP error that will happen when the HTML of a block doesn’t match what was saved.

    The Pro version of our plugin has a Custom Attributes feature that allows you to add a title tag.

    Otherwise, you would need to build your own custom control into the block editor in order to add the title tag. There are filters available to do this, but it would require custom development/javascript knowledge.

    Let me know if you need more info.

    Thread Starter mauri01

    (@mauri01)

    Hi Tom,

    What can I say, This means that the plugin is not SEO confirm.

    By all respect, for your work, Generate Press and now Generate blocks, have together a price tag, which is not for everybody’s pocket, especially Generateblocks.

    But not be SEO conform, is a problem, nowadays.

    Regards

    Plugin Author Tom

    (@edge22)

    I wouldn’t say it’s not SEO-friendly. You can set an aria-label if the button has no text which will help with accessibility. You can also simply add text to the button.

    It would be nice if HTML was able to be added without triggering the block recovery. I’ll do some looking into that.

    Appreciate the feedback 🙂

    Thread Starter mauri01

    (@mauri01)

    Thanks Tom, to have a open ear.

    • This reply was modified 3 years ago by mauri01.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add a title attribute to link on a button’ is closed to new replies.