• Resolved Peter Müller

    (@pmmueller)


    As described in Github #763) the “Read More” link is displayed when the blog options are set to “full content”.

    That works fine, but it always looks like this:

    Read more

    Is there any chance to remove (or style) the paragraph with the 3 dots above the “Read More” link?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Peter Müller

    (@pmmueller)

    I found them three dots 😉

    They are created in the file inc/blog/blog-config.php, line 188:

    $output = ' &hellip;<p class="read-more"> ' . $post_link . '</p>';

    &hellip; is the three dots ... above the paragraph, without any markup whatsoever to style or hide them.

    Do I have to create a child theme to change or remove the “hellip”?

    Or is there an option somewhere that I haven’t found yet?

    • This reply was modified 5 years, 5 months ago by Peter Müller.
    • This reply was modified 5 years, 5 months ago by Peter Müller.
    • This reply was modified 5 years, 5 months ago by Peter Müller. Reason: small corrections for `code`
    • This reply was modified 5 years, 5 months ago by Peter Müller.

    Hey @pmmueller,

    You can remove those three dots using our filter hook. You just need to add the following function to your child theme’s functions.php

    /*
     * Remove helip from read more link
    */
    function remove_helip_from_read_more( $output, $output_filter ) {
    
    	$output = str_replace( '&hellip;', '', $output );
    	return $output;
    }
    
    add_filter( 'astra_post_link', 'remove_helip_from_read_more', 10, 2 );

    Let me know if that works for you.

    Regards,
    Vikas

    Thread Starter Peter Müller

    (@pmmueller)

    I got used to the three dots and will leave them for now, but if I want to get rid of them I now know how.

    One idea: If the Hellip had a little markup it would be easier to target it with CSS.

    Thanx
    Peter

    • This reply was modified 5 years, 5 months ago by Peter Müller.
    • This reply was modified 5 years, 5 months ago by Peter Müller. Reason: Typos

    Hi there,

    Sorry @pmmueller for replying here. I’d like to remove the three dots as well. I have a child theme, I pasted the code in functions.php but didn’t work for me. Is there anything else I need to do?

    Thanks!

    Thread Starter Peter Müller

    (@pmmueller)

    Hi @rox32,

    as mentioned above I just got used to the three dots as I did not want to create a child theme or install a plugin just for that.

    Therefore I had never tried the filter posted by @brainstormteam, but I have just copied it and added it to the functions.php of the theme itself, and indeed there is no change.

    If you REALLY want to get rid of those dots, you’ll probably have to create a child theme and then edit the file inc/blog/blog-config.php as described above (see post).

    And that’s a lot of work for three dots. So I just got used to them.

    Hey @rox32 and @pmmueller,

    The filter should work as expected. If it is not working, could you please open a support ticket here? We would like to take a closer look.

    Regards,
    Vikas

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove … (3 dots) above “Read more” link?’ is closed to new replies.