• 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 1 month, 1 week 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)
  • You must be logged in to reply to this topic.