• Resolved fondanalys

    (@fondanalys)


    Hi

    How do I either make the Meta-link (the author) either no-follow or even better unclickable?

    Br
    Ola

    • This topic was modified 3 years, 3 months ago by fondanalys.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Mat

    (@mateithemeisle)

    Hello @fondanalys,

    Thank you for using Feedzy and for reaching out!

    In order to achieve that you should be able to make use of the below code and add it into a site-specific plugin so it won’t be affected by future Feedzy updates.

    function bweb_feedzy_remove_link_matches( $matches ) {
        return $matches[2];
    }
    function bweb_feedzy_remove_link( $content, $feedURL ) {
        $pattern= '/<a.*href=\"(https?:\/\/.*)\".*>(.*)<\/a>/iU';
        $content= preg_replace_callback( $pattern, 'bweb_feedzy_remove_link_matches', $content );
        return $content;
    }
    add_filter( 'feedzy_meta_output', 'bweb_feedzy_remove_link', 9, 2 );

    In case you need more from Feedzy, you can take a look at this article with more options for it. Please keep in mind that some of the code will only work for the PRO version of Feedzy.

    Thank you and please let us know if this worked for you!

Viewing 1 replies (of 1 total)
  • The topic ‘Make meta unclickable or no-follow’ is closed to new replies.