Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

.sr-only within linked Headline element

  • TwoLoonSoftware

    I have a linked headline element with some text in it, but it needs to be differentiated for screen readers, so I’d like to add a hidden .sr-reader element. Is there any way to wrap a portion of the contained text with an .sr-reader span?

    The element currently renders like this:

    <span class="gb-headline-text">
        <a href="#mylink" data-type="page" data-id="402">My Link Text</a>
    </span>

    And I need this:

    <span class="gb-headline-text">
        <a href="#mylink" data-type="page" data-id="402">My Link Text <span class="sr-only">Additional Screen Reader Content</span></a>
    </span>
  • Hi there,

    Yes, you can click the 3dots icon > edit as HTML, and change the HTML there.
    https://app.screencast.com/8Z6tkm9HVc3AK

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.