Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #963043

    Hi There,

    I have added a link in a image using image feature of Avia Layout Builder. I want to make this link as nofollow, but I am not getting any option to do so.
    Please let me now the solution for this.

    Thanks

    #963274

    Hey manojvinod,

    You will need to override the Image in Avia Layout Builder to do that, but first you need to use a child theme:

    Then follow the instructions here: https://kriesi.at/documentation/enfold/intro-to-advanced-layout-builder/#add-elements-to-alb
    Copy image.php found in enfold > config-templatebuilder > avia-shortcodes > image folder then paste it to the shortcodes folder in the child theme.
    Find this code (line 548):

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

    then insert the nofollow code. Hope this helps :)

    Best regards,
    Nikko

    #966233

    Hi Nikko,

    As suggested by you, I was looking forward to install a child theme, but after going through the details of it, I come to know that the child theme should be installled at the very beginning of the site, otherwise wp treats child theme as a different theme and you will loose all the modification of the parent theme.

    And as we have done a lot of work in the parent theme it will be too risky to loose all the modifications.

    Can you suggest me some other work around to save the work done the parent theme.

    Regards

    #966584

    Hi manojvinod,

    It would be best to move your modifications to the child theme, theme settings can be imported though files doesn’t. However later on if the theme version you’re using gets outdated you’ll have hard time updating it, since theme update will remove all modification on the parent theme.

    But for now as a temporary solution, I could only suggest to make the modification directly to image.php instead of doing it in a child theme.

    Best regards,
    Nikko

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