• Hello,
    When creating a Blog page, I would like to add a button Read More at the end of each excerpt of each post.
    How can I manage to do this?
    Thanks for your help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • AddWeb Solution

    (@addweb-solution-pvt-ltd)

    Hello ameliehub,

    Refer following link https://en.support.wordpress.com/more-tag/

    Hope this will helps you.

    Thanks.

    Thread Starter ameliehub

    (@ameliehub)

    Thanks for the link but I am using Elementor and not wordpress Editor.
    Is there an other way to include this Read More
    Thanks for your help

    Hello,

    Can you share your site link or a screenshot so that I can understand exactly where do you want to add read more button?

    Thread Starter ameliehub

    (@ameliehub)

    Here is a link of a test website I’m working on:
    https://www.designerslinen.com/bog2/

    I’ve included a Read more button manually in the wordpress excerpt of each post and customized it with CSS (Post 7 and 6)
    As for the other post it’s just normal configuration.
    The theme OceanWP does not include automatically this read more button? I can’t find it in the customizer.
    Thanks a lot

    Hi,

    If you are using the Thumbnail entry style for the blog entry. Please follow the below steps.

    Step 1 – Download OceanWP Child theme, install and activate it. Here is the link for child theme and documentation how to properly install it – OceanWP Child Theme

    Step 2 – Open the functions.php file of the child theme and add the code below.

    if(!function_exists('read_more_on_thumbnail')) {
    	function read_more_on_thumbnail() {
    		$style = get_theme_mod( 'ocean_blog_style', 'large-entry' );
    		if( 'thumbnail-entry' == $style ) {
    			return get_template_part( 'partials/entry/readmore' );
    		}
    	}
    	add_action('ocean_after_blog_entry_content', 'read_more_on_thumbnail');
    }

    Step 3 – Add the below CSS code in the Customize > Custom CSS section to style the continue link.

    .blog-entry.thumbnail-entry .blog-entry-readmore a {
        display: inline-block;
        font-size: 12px;
        line-height: 1.2;
        padding-bottom: 3px;
        border-bottom: 1px solid;
        text-transform: uppercase;
    	padding-bottom:7px;
    	margin-bottom:10px;
    }
    .blog-entry.thumbnail-entry .blog-entry-readmore i.fa.fa-angle-right {
    	margin-left:5px;
    }

    Hope it helps you. Let me know if you need any other help.

    Thread Starter ameliehub

    (@ameliehub)

    Thanks for your reply but their is an error message when pasting the if statment in functions.php : Syntax error, unexpected T-FUNCTION

    Thread Starter ameliehub

    (@ameliehub)

    Sorry about that. Copyed the code from here and it worked fine
    Thanks very much for your quick replies and help

    You’re welcome!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Blog – Add Read more button’ is closed to new replies.