Remove "Opens in a new tab" if "Skip links" is active

By default, Bricks adds the following code right after the opening tag to each page:

<a class="skip-link" href="#brx-content">Skip to main content</a>
<span id="brx-new-tab-link-description" class="screen-reader-text">Opens in a new tab</span>

Under Settings » General » Miscellaneous, there is a switch to Disable “Skip links”. If it is activated, the <a> tag above is removed – but not the <span> tag. As far as I understand it, this makes no sense, since the text in the <span> tag describes a link that is no longer present.

I would therefore suggest to remove this <span> element if Disable “Skip links” is set.

Why is this important for us? We are using WordPress to display content on various screens in our buildings (wall-mounted smart tvs and tablets). These devices have lousy browsers with incomplete CSS implementations, and therefore «Opens in a new tab» is often visible although it should be hidden through CSS.

Similar discussion: SOLVED: Skip to main content and Skip to footer links show in public site - #20 by timmse

Hi Martin,
First of all, the skip links—or rather, the skip link setting—have nothing to do with the span tag.

The brx-new-tab-link-description span tag is set as soon as you enable “open in new tab” for any link on your page.

There’s currently no setting for this—but there is a workaround. See: