• Resolved Drew

    (@drewbee)


    I need a little bit of help removing something.

    On my main page there’s a ‘Read More’ button. No matter how much code and CSS I look through, I cannot find for the life of me how to remove it or at least change it to a text link instead of a button.

    My website is at https://www.neonlights.esy.es/wordpress

    I’m using the theme de-Lighted. Thanks for any help!!! ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • akapellos

    (@salat-production)

    .moretag-wrap {display:none}
    OR better this
    <script>$(document).ready(function(){jQuery(‘.moretag-wrap’).replaceWith(“<div class=’moretag-wrap’></div>”); });</script>

    You can try to remove it from Appearance => Editor => Main Index Template

    Thread Starter Drew

    (@drewbee)

    Where does this go?

    <script>$(document).ready(function(){jQuery(‘.moretag-wrap’).replaceWith(“<div class=’moretag-wrap’></div>”); });</script>

    Because when I do that first code part – it then squashes the posts up with the titles on the next page.

    I’m sorry but as you appear to be using a non-WPORG theme, you need to seek support from the theme’s developers – paid or otherwise. We only support themes downloaded from www.ads-software.com here.
    Try https://themeshift.com/help

    Go to: deLighted: helpers.php (inc/helpers.php) and remove the following code:

    $more_text = get_post_type( get_the_ID() ) == 'post' ? __( 'Read more', 'delighted' ) : __( 'More info', 'delighted' );
    
    $excerpt_more = '<div class="moretag-wrap"><a href="'. get_permalink( get_the_ID() ) . '">' . apply_filters( 'delighted_more_text', $more_text ) . '</a></div>';

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Thread Starter Drew

    (@drewbee)

    esmi – I did download this theme from www.ads-software.com. As seen below:

    https://www.ads-software.com/themes/delighted

    kaniamea – I’ll try that now. I’ll let you know in a moment if it worked.

    PERFECT. It worked. You’re a legend, thanks. Been looking for that for ages.

    Ok, I just tested this on my own WP and it worked.

    Thread Starter Drew

    (@drewbee)

    It certainly works, you can see the result now. And the posts with my photos on don’t get squashed up either.

    https://neonlights.esy.es/wordpress/

    Happy to help ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Cannot remove Read More button’ is closed to new replies.