WordPress.org

Forums

Sparkling
[resolved] Read more button is always shown (10 posts)

  1. magicehret
    Member
    Posted 1 year ago #

    I just don't get it.

    I see the read-more button after every article on my main page, even if i don't use the read-more-tag. I already tried solutions i found here (e.g. content/excerpt replacing), but nothing seems the work. I see this button all the time.

    Thank You

  2. magicehret
    Member
    Posted 1 year ago #

    Btw
    Awesome Theme. Thank you for that.

  3. Silkalns
    Member
    Theme Author

    Posted 1 year ago #

    That's expected behavior for this theme to create consistency.

    If you want to get rid of that button you can alway add this code to Theme Options - Other - Custom CSS

    .btn.btn-default.read-more {
        display: none;
    }
  4. annfarnsworth1
    Member
    Posted 1 year ago #

    Thank you for this info! Can you tell me where to put the code and I will try it out.

  5. annfarnsworth1
    Member
    Posted 1 year ago #

    Never mind, I figured it out! Great theme, we all appreciate it.

  6. magicehret
    Member
    Posted 1 year ago #

    Thanks for your answer.
    I already figures out that kind of solution. All Button disappear then.

    But my Try is to show the buttons only when the read-more-function is used. Do you have any idea how to solve this?

    Thanks for your work. How can i support (donate) your work?

  7. magicehret
    Member
    Posted 1 year ago #

    I found another answer from you:

    There is no automated solution for this and you will have to hide those buttons based on post ID.

    How do you hide the buttons with post ID?

  8. Silkalns
    Member
    Theme Author

    Posted 1 year ago #

    This thread was resolved on our support forum and I will mark this thread as resolved.

  9. JasonForbes
    Member
    Posted 12 months ago #

    to get rid of the "read more" button---
    Ok, I went into the Content.php page and simply removed this code.

    `<p>" title="<?php the_title_attribute(); ?>"><?php _e( 'Read More', 'sparkling' ); ?></p>

  10. ArcherTC
    Member
    Posted 6 months ago #

    The solution above did not remove it from the home page for me. The following solution did work:

    Remove from content.php

    <p><a class="btn btn-default read-more" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php _e( 'Read More', 'sparkling' ); ?></a></p>

    Add to functions.php

    add_filter( 'the_content_more_link', 'modify_read_more_link' );
    function modify_read_more_link() {
    return '<a class="btn btn-default read-more" href="' . get_permalink() . '">Read More</a>';
    }

    Solution provided by the theme author with modification by @kalliste on the support forum

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic