Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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 6 years ago by Artur667.
    #1036101

    Hey Artur667,

    1. Try to override the Post Slider, you can do this by following the instruction in: https://kriesi.at/documentation/enfold/intro-to-advanced-layout-builder/#add-elements-to-alb
    you should find it in enfold > config-templatebuilder > avia-shortcodes > postslider > postslider.php

    2. Please try to check: https://kriesi.at/support/topic/remove-link-from-page-and-post-h1-titles-permanent-link/

    3. Try also this post: https://kriesi.at/support/topic/disable-lightbox-on-single-post-featured-images-remove-featured-per-category/

    Best regards,
    Nikko

    #1037968

    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?

    #1038533

    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>';

    with:

    if ($slider) $slider = $slider;

    Best regards,
    Nikko

    #1038872

    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, 12 months ago by Artur667. Reason: Added info about cache systems
    #1040154

    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,
    Nikko

    #1041164

    Sure.

    #1043095

    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,
    Nikko

    #1043704

    Thank you, works well!

    #1044122

    Hi,

    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,
    Rikard

    #1046260

    Thanks. You can close the topic.

    #1046560

    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,
    Nikko

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.