Home Forums WoodMart support forum Social links security vulnerabilities

Social links security vulnerabilities

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #250158

    prokreeger
    Participant

    Hi there!

    Google’s Lighthouse audit says that social links are unsafe (see attachment).

    How can I fix this?

    Attachments:
    You must be logged in to view attached files.
    #250197

    Hello,

    Please check this instruction: https://xtemos.com/docs/woodmart/faq-guides/https-security-ssl-issue/

    Please follow this instruction and check again.

    Best Regards

    #250370

    prokreeger
    Participant

    Provided instruction is about mixed content and I need help with social links rel attributes such as “noopener” and “noreferrer”.

    In your template files, I found the following piece of code where social links are displayed:

    <?php if ( ( $type == 'share' && woodmart_get_opt('share_fb') ) || ( $type == 'follow' && woodmart_get_opt( 'fb_link' ) != '')): ?>
    
    	<a rel="nofollow" href="<?php echo 'follow' === $type ? esc_url(woodmart_get_opt( 'fb_link' )) : 'https://www.facebook.com/sharer/sharer.php?u=' . $page_link; ?>" target="<?php echo esc_attr( $target ); ?>" class="<?php if( $tooltip == " yes" ) echo 'woodmart-tooltip' ; ?> woodmart-social-icon social-facebook">
    		<i></i>
    	    <span class="woodmart-social-icon-name">
    	        <?php esc_html_e('Facebook', 'woodmart') ?>
    	    </span>
    	</a>
    	
    <?php endif ?>

    And in this code I found only this rel attribute rel=”nofollow” but must be like this rel=”nofollow noopener noreferrer”.

    How can I add this two attributes to this links?

    #250738

    Hello,

    Please find this file: woodmart/inc/shortcodes/social.php

    and this function: woodmart_shortcode_social http://prntscr.com/w25r5k copy this function to functions.php of the child theme.

    Best Regards

    #250739

    Then make all the changes in that code.

    #250973

    prokreeger
    Participant

    Thanks, all works fine

    #251083

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Viewing 7 posts - 1 through 7 (of 7 total)