Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Themeisle

    (@themeisle)

    Hey @cosmico,

    Can you share with me the shortcode you are using ?

    Thanks !

    Thread Starter Cs

    (@cosmico)

    example:

    [feedzy-rss feeds=”https://news.google.it/news?cf=all&ned=us&hl=it&output=rss&tbs=ar:1&q=Morto Paolo Villaggio” max=”5″ thumb=”no” summary=”no” feed_title=”no” meta=”no”]

    There is no “nofollow” in html code.

    • This reply was modified 7 years, 9 months ago by Cs.
    Plugin Author Themeisle

    (@themeisle)

    Hey,

    Where have you added the code to tweak the nofollow link ?

    Thanks !

    Thread Starter Cs

    (@cosmico)

    in:

    /wp-content/themes/mh-magazine/functions.php

    I added:

    
    
    add_action( 'wp_enqueue_scripts', 'tifd_remove_default_stylesheet',999 );
    
    function tifd_remove_default_stylesheet() {
        
        wp_dequeue_style('feedzy-rss-feeds');
    
    }
    
    function tifd_feedzy_thumb_aspect_ratio( $sizes, $feedURL ) {
        $sizes = array( 
            'width' => $sizes['200'] * (16/9), 
            'height' => $sizes['50']
        );
        return $sizes;
    }
    add_filter( 'feedzy_thumb_sizes', 'tifd_feedzy_thumb_aspect_ratio', 10, 2 );
    
    function bweb_feedzy_add_nofollow_matches( $matches ) {
        return '<a href="' . $matches[1] . '" rel="nofollow">' . $matches[2] . '</a>';
    }
    function bweb_feedzy_add_nofollow( $content, $feedURL ) {
        $pattern= '/<a.*href=\"(https?:\/\/.*)\".*>(.*)<\/a>/iU';
        $content= preg_replace_callback( $pattern, 'bweb_feedzy_add_nofollow_matches', $content );
        return $content;
    }
    add_filter( 'feedzy_global_output', 'bweb_feedzy_add_nofollow', 9, 2 );
    
    
    Plugin Contributor Hardeep Asrani

    (@hardeepasrani)

    Can you give us the link to your site we’re you’ve added the shortcode?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘add rel=”nofollow”’ is closed to new replies.