Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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

    #1051187

    Hallo Dietmar,

    Please try the following in Quick CSS under Enfold->General Styling:

    .tag .read-more-link, .category .read-more-link {
      display:none;
    }

    LG,
    Rikard

    #1051296

    Hello 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 Dietmar

    #1051756

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

    #1051786

    Hello 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, 10 months ago by pumpmakers.
    #1051793

    I’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.

    #1052078

    Hi Digital Essence, thank you for your reply. I have checked but could not find this file – in which folder you found it?
    Thanks Dietmar

    #1052227

    Hi Dietmar,

    You can find that file in enfold/config-templatebuilder/avia-shortcodes/postslider

    Thanks @DigitalEssence for helping out :-)

    Best regards,
    Rikard

    #1052275

    Hello 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.

    #1052678

    Hello 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 ;)

    #1053264

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

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘How to remove "Read More / Weiterlesen" Button / Link from Page AND CODE’ is closed to new replies.