• Skip to main content

Julian Thomas Screawn

B.A. ,B.ED. ,M.ED.

  • Home
  • About
  • Computer Upgrades
  • Projects
  • Resources
  • Coding
  • Contact

How to add a read more button below post excerpts on archives in Genesis

2023/09/28

add_action( 'genesis_entry_content', 'custom_add_read_more' );

function custom_add_read_more() {
    
	// if this is a singular page, abort.
    if (is_singular()) {
        return;
    }

    printf( '<a href="%s" class="more-link button">%s</a>', get_permalink(), esc_html__( 'Read More' ) );
}

Filed Under: Wordpress

Copyright © 2023 · Servicing Moncton, Dieppe, Riverview and beyond! · Moncton Meditation · Moncton English Tutor