-
AuthorPosts
-
January 7, 2019 at 12:14 pm #1050832
Hi, how can I remove ONLY the “Read More / Weiterlesen(in German)” Button & Link from Code on “Tag Overview Page” and “Category Overview Page”? See here:
https://xn--schlafstrungen-2pb.com/tag/maenner/
https://xn--schlafstrungen-2pb.com/category/schlafstoerungen/einschlafstoerungen/Thanks Dietmar
January 8, 2019 at 6:01 am #1051187Hallo Dietmar,
Please try the following in Quick CSS under Enfold->General Styling:
.tag .read-more-link, .category .read-more-link { display:none; }
LG,
RikardJanuary 8, 2019 at 9:36 am #1051296Hello Rikard, thank you for your reply. It is no more showing “Weiterlesen / Read more…” now but in the HTML code of page is still the link:
<div class=”read-more-link”>Weiterlesen<span class=”more-link-arrow”></span></div>
How can I remove this line from code too?
Thanks DietmarJanuary 9, 2019 at 12:04 pm #1051756Hi Dietmar,
Go to wp-content > themes > enfold > includes > loop-index.php and find this code (there should be 2 of it, line 302 and 315):
echo '<div class="read-more-link"><a href="'.get_permalink().'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"></span></a></div>';
and remove it. Let us know if it helps.
Best regards,
NikkoJanuary 9, 2019 at 12:38 pm #1051786Hello Nikko,
thank you for your reply. I have removed both lines from the file. Cleared Cache and actualized browser but it is still in see here for example:
https://xn--schlafstrungen-2pb.com/category/radiaesthesie/erdstrahlen/erdstrahlen-abschirmen-entstoeren/This link-line should be removed from Code if there is no Read More Button on Page anymore:
<div class=”read-more-link”>Weiterlesen<span class=”more-link-arrow”></span></div>It would be good to get this out via the Enfold Child theme otherwise I need to change it again at all updates if it works.
Shall I put the 2 lines in again?Best regards
Dietmar- This reply was modified 5 years, 11 months ago by pumpmakers.
January 9, 2019 at 12:47 pm #1051793I’ve run a grep on my copy of Enfold here and the only other file that contains the text “read-more-link” is postslider.php on line 465.
It’s got to be one of those files.
January 9, 2019 at 8:25 pm #1052078Hi Digital Essence, thank you for your reply. I have checked but could not find this file – in which folder you found it?
Thanks DietmarJanuary 10, 2019 at 8:19 am #1052227Hi Dietmar,
You can find that file in enfold/config-templatebuilder/avia-shortcodes/postslider
Thanks @DigitalEssence for helping out :-)
Best regards,
RikardJanuary 10, 2019 at 11:25 am #1052275Hello Rikard and Digital Essence,
I have found the file and remove this line what was not working again. Then I saw some other read-more parts in that postslider.php file and also removed them completely.
But still showing the “read-more-link” in code on page.
view-source:https://xn--schlafstrungen-2pb.com/category/schlafstoerungen/Do you have any idea where it could be yet?
Done so far:
1) I have removed in loop-index.php the 2 lines from Nikko and
2) also all parts in postslider.php file and
3) I wrote in QuickCSS
.tag .read-more-link, .category .read-more-link {
display:none;
}Thanks Dietmar
PS: Could you forward this to your developer maybe to consider in one of the next updates.January 11, 2019 at 10:58 am #1052678Hello Rikard, I just wanted to let you know that we found the solution for it. For everybody who want to make it too find here my description – you can close this support case – Thanks for help!
How to remove Read More Link on Tag & Category Overview Page including the link in source code which is an improvement for SEO of this pages:
1) Quick CSS Entry:
.tag .read-more-link, .category .read-more-link {
display:none;
}2) Hide or remove line 465 in postslider.php /*xxx */
Folder: enfold/config-templatebuilder/avia-shortcodes/postslider/* $permalink = ‘<div class=”read-more-link”><a href=”‘.get_permalink($the_id).'” class=”more-
link”>’.__(‘Read more’,’avia_framework’).'<span class=”more-link-arrow”></span></div>’; */3) Hide or remove two code lines in loop-index.php /*xxx */
Folder: themes > enfold > includes > loop-index.php and find this code (there should be 2 of it, line 302 and 315):
/* echo ‘<div class=”read-more-link”>‘.__(‘Read more’,’avia_framework’).'<span class=”more-link-arrow”></span></div>’; */4) Rewrite line 76 in loop-index.php
Folder: themes > enfold > includes > loop-index.php
OLD LINE
/* $current_post[‘content’] = $blog_content == “excerpt_read_more” ? $current_post[‘content’].'<div class=”read-more-link”>‘.__(‘Read more’,’avia_framework’).'<span class=”more-link-arrow”></span></div>’ : $current_post[‘content’]; */
NEW LINE
$current_post[‘content’] = $blog_content == “excerpt_read_more” ? $current_post[‘content’].’ ‘ : $current_post[‘content’];That’s it ;)
January 13, 2019 at 2:10 am #1053264Hi,
Thank you for sharing your solution, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)Best regards,
Mike -
AuthorPosts
- The topic ‘How to remove "Read More / Weiterlesen" Button / Link from Page AND CODE’ is closed to new replies.