Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
  • #1035123

    Hi, I have just received SEO audit, and I would like to ask you about few things:

    1. Element: Post slider — can I add rel=”nofollow” to a ‘read more’ link?
    2. Single blog post — can I remove H1 link, which is linking to itself?
    3. Single blog post — can I remove lightbox from the featured image? I would like this image not to be linking anywhere.

    Is there a way to make those changes form child theme, so I wouldn’t have to modify theme files after every update?

    Thanks in advance.

    • This topic was modified 5 years, 8 months ago by Artur667.

    Hey Artur667,

    1. Try to override the Post Slider, you can do this by following the instruction in:
    you should find it in enfold > config-templatebuilder > avia-shortcodes > postslider > postslider.php

    2. Please try to check:

    3. Try also this post:

    Best regards,


    Hello, thank you very much for your answers, I have managed to solve 1. and 2., but in 3. I’m looking to remove “a href” from image to make just an image, not just CSS it to not to look like link. I have tried some forum answers, but no luck.

    Resuming: is there a way to change blog post from lightboxed image to image via child theme or the other way which wolud be update safe?


    Hi Artur667,

    For 3, try to create includes folder in your child theme, then copy loop-index.php in the includes folder of Enfold to the includes folder of your child theme.
    Then go to line 242 and replace this code:

    if ($slider) $slider = '<a href="' . $link . '" title="' . $featured_img_desc . '">' . $slider . '</a>';


    if ($slider) $slider = $slider;

    Best regards,


    Sorry, but no luck.

    My exact steps:
    a. I have created /wp-content/themes/enfold-child/includes/ folder
    b. I have copied /wp-content/themes/enfold/includes/loop-index.php file to /wp-content/themes/enfold-child/includes/
    c. I have found line 242 and replaced code, exactly as you wrote.

    My blog posts still get featured image at the top (which is fine) and they still are acting like lightbox (which is the issue).

    edit: I’m fully aware about caching systems, and I have completely disabled cache while I was chcecking this solution.

    • This reply was modified 5 years, 7 months ago by Artur667. Reason: Added info about cache systems

    Hi Artur667,

    I have tested this on my end and it does work, maybe there’s a difference in configuration or something.
    Can you give us temporary admin access? so we can try to check on it further.
    Please also include the link to the page with issue, so we can easily find it.

    Best regards,




    Hi Artur667,

    I apologize for my late response and thanks for the admin access, I have switched the settings I have and this time it should work, still the same process but modify this code in line 129 of loop-index.php:

    if ($slider) $slider = '<a href="' . $link . '" title="' . $featured_img_desc . '">' . $slider . '</a>';

    and replace with:

    if ($slider) $slider = $slider;

    Best regards,


    Thank you, works well!



    Great, glad you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,


    Thanks. You can close the topic.


    Hi Artur667,

    Glad that we could help you :)
    Feel free to create a new thread if you need further assistance.
    Thanks for using Enfold and have a great day!

    Best regards,

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Nofollow for Post slider element and blog post modification’ is closed to new replies.