Links to cross-origin destinations are unsafe in author social links

Posted in: Newspaper
Post count: 18

Hello,

In the Single Post Author Box, the author’s social media links do not have the property rel=”noopener” or rel=”noreferer”.

How can we add this property to this element?

Thanks,

Post count: 35449

Hi,

Unfortunately for the moment the rel=”noopener” can be set only manually in theme files, the code need to be set in wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_author_box.php -> https://i.imgur.com/8XxsEqS.png ->

Thank you!

Post count: 18

Perfect! That solves for me.

Thank you very much.

Post count: 18

Hello Calin,

Can I extend this code in my child theme, so I don’t have to make this change to the original theme?

Thanks,

Post count: 35449

Hi,

Unfortunately foe the moment the cloud files can not be set in a child theme, sorry!
Child theme -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thank you for your understanding!

Post count: 155

I am facing the same problem, but in the mobile menu. Is there no fix, aside mannualy editing the file?

Post count: 35449

Hi josp, unfortunately no, this can be done only manually. If you need help with these, please provide a link to your website and let me know exactly the element that you want to edit and I will provide the path for it.
Thank you!

Post count: 155

Yes, I do like to fix these errors..
The site is: https://osaopaulo.org.br

The elements that show the errors are (the first 4 are the social icons in mobile menu, the last one is the image in the footer).

<i class=”td-icon-font td-icon-facebook”></i>

<i class=”td-icon-font td-icon-instagram”></i>

<i class=”td-icon-font td-icon-linkedin”></i>

<i class=”td-icon-font td-icon-twitter”></i>

a class=”td_single_image_bg” style=”background-image: url(‘https://cdn.statically.io/img/osaopaulo.org.br/f=auto%2Cq=70/wp-content/uploads/2020/05/brasao-transparente.png&#8217;); background-size: contain; background-repeat: no-repeat; background-position: center center;” href=”http://www.arquisp.org.br&#8221; target=”_blank” rel=”bookmark”></a

Post count: 35449

Hi,
If you are referring to those social icons -> https://i.imgur.com/8DoAF7b.png for them you can use the option from theme panel => https://i.imgur.com/f3LrDuP.png
The last image, I think that you are referring to this one set as a logo, but not using the logo element -> https://i.imgur.com/JF98ew5.png for this you must to go in wp-content/plugins/td-composer/includes/shortcodes/vc_single_image.php -> https://i.imgur.com/IZdOybq.png
Hope this will help you!
Thank you!

Post count: 155

Yep! It worked for the social icons. They were marked as nofollow in the theme panel; I switched to noopener ans all is ok!

For the last image, I tried to switch for a logo block, but it not resolved (as it can not be set as noopener [the only thing that shows is the option to open in a new window, but with no reference to the REL ATTRIBUTE VALUE..])

I’ll try to edit mannualy this block and, if everything goes well, I’ll share the news.

Post count: 35449

Hi josp, for the moment only the social has the option to set nofollow, noopener or noreferrer,, on the rest of options is possible to be add in the coming updates. Right now this can be done only in theme files wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_logo.php -> https://i.imgur.com/kawiyQR.png
Thank you!

Post count: 155

It worked! Thanks!

Viewing 12 posts - 1 through 12 (of 12 total)
The forum ‘Newspaper’ is closed to new topics and replies.