Home Forums Themes Support Claue SEO Optimize

Viewing 1 reply thread
  • Author
    Posts
    • #36282

      Hi Harry,

      Hope you are fine.

      As you know it’s a recommendation to rel=nofollow for external links.

      I have found some plugins for this purpose.

      But sometimes, the social links in the header don’t get that.

      How can I nofollow them?

      Thanks.

      Rahim Vaziri
      CEO & Founder at Look.ir

    • #36287

      Hi Rahim,

      Please add below code to claue-child > functions.php

      if ( ! function_exists( 'jas_claue_social' ) ) {
      	function jas_claue_social() {
      		$output = '';
      
      		$socials = cs_get_option( 'social-network' );
      		if ( empty( $socials ) ) return;
      
      		$output .= '<div class="jas-social">';
      			foreach ( $socials as $social) {
      				$output .= '<a class="dib br__50 tc ' . esc_attr( str_replace( 'fa fa-', '', $social['icon'] ) ) . '" href="' . esc_url( $social['link'] ) . '" target="_blank" rel="nofollow"><i class="' . esc_attr( $social['icon'] ) . '"></i></a>';
      			}
      		$output .= '</div>';
      
      		return apply_filters( 'jas_claue_social', $output );
      	}
      }

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 1 reply thread

You must be logged in to reply to this topic.