nofollow noindex icon

Home Forums Social Icons nofollow noindex icon

This topic contains 1 reply, has 2 voices, and was last updated by  Nishan Budhathoki 6 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1296214

    Aleksandr
    Participant

    Good evening. How to remove indexing links to social network? End-to-end link did not really want to put.

    #1296282

    Hello Aleksandr,

    I suppose you need to add the code rel="nofollow" to solve your issue, but unfortunately, this feature is not available in the plugin currently. And hence can be achieved only through the code customization. So, the files you need to edit would be widgets/class-si-widget-social-icons.php and class-si-shortcodes.php and the changes can be done as shown below.

    For icons displayed by the widgets(class-si-widget-social-icons.php)

    <li class="social-icons-list-item">
    					<a href="<?php echo esc_url($field[url]); ?>" rel="nofollow" <?php echo ( $instance['open_tab'] ? 'target="_blank"' : '' ); ?> class="social-icon">
    						<span class="socicon socicon-<?php echo esc_attr( $title ); ?>" style="padding: <?php echo esc_attr( $icon_padding ); ?>px; font-size: <?php echo esc_attr( $icon_font_size ); ?>px"></span>
    
    						<?php if ( $instance['show_label'] ) : ?>
    							<span class="social-icons-list-label"><?php echo esc_html( $field['label'] ); ?></span>
    						<?php endif; ?>
    					</a>
    				</li>

    And for icons displayed by the shortcodes.

    <li class="social-icons-list-item">
    					<a href="<?php echo esc_url($field[url]); ?>" rel= "nofollow" <?php echo ( 'yes' == $group_data['open_new_tab'] ? 'target="_blank"' : '' ); ?> class="social-icon">
    						<span class="socicon socicon-<?php echo esc_attr( $title ); ?>" style="padding: <?php echo esc_attr( $icon_padding ); ?>px; font-size: <?php echo esc_attr( $icon_font_size ); ?>px"></span>
    
    						<?php if ( 'yes' == $group_data['manage_label'] ) : ?>
    							<span class="social-icons-list-label"><?php echo esc_html( $field['label'] ); ?></span>
    						<?php endif; ?>
    					</a>
    				</li>

    Please be careful while editing the code otherwise errors may be generated.

    Regards,
    ThemeGrill Support Team

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

You must be logged in to reply to this topic.