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

    How can I set a nofollow link in the picture element?

    Greetings Karl

    #829948

    Hey Karl,

    You would need to modify image.php in enfold/config-templatebuilder/avia-shortcodes/ folder (if you use a child theme, I suggest following the instructions here: http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/ ). Find this line of code (line 498):

    $output.= "<a href='{$link}' class='avia_image'  {$blank}>{$overlay}<img class='avia_image ' src='{$src}' alt='{$alt}' title='{$title}' $markup_url /></a>";
    

    replace it with:

    $output.= "<a href='{$link}' class='avia_image' rel='nofollow'  {$blank}>{$overlay}<img class='avia_image ' src='{$src}' alt='{$alt}' title='{$title}' $markup_url /></a>";

    Hope this helps :)

    Best regards,
    Nikko

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.