Tagged: H1, nofollow, post slider
-
AuthorPosts
-
November 19, 2018 at 11:28 am #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, 1 month ago by Artur667.
November 21, 2018 at 3:22 pm #1036101Hey 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.php2. 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,
NikkoNovember 27, 2018 at 12:11 pm #1037968Hello, 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?
November 28, 2018 at 2:41 pm #1038533Hi 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,
NikkoNovember 29, 2018 at 10:38 am #1038872Sorry, 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 6 years ago by Artur667. Reason: Added info about cache systems
December 3, 2018 at 7:35 am #1040154Hi 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,
NikkoDecember 5, 2018 at 11:15 am #1041164Sure.
December 10, 2018 at 2:34 pm #1043095Hi 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,
NikkoDecember 11, 2018 at 11:43 am #1043704Thank you, works well!
December 12, 2018 at 6:08 am #1044122Hi,
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,
RikardDecember 17, 2018 at 11:59 am #1046260Thanks. You can close the topic.
December 17, 2018 at 9:59 pm #1046560Hi 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 -
AuthorPosts
- The topic ‘Nofollow for Post slider element and blog post modification’ is closed to new replies.