Archived topic
Replacing Read More Button with our Logo
3 replies · Started by Cristina on May 30, 2018
Hi there :)
First, english isn't my native language so please excuse possible spelling mistakes. Thank you.
I am using GP Premium for our sports club website: ruderclubkreuzlingen.ch. We would like to have the default read more button replaced with the arrow that is part of our logo (see header of our website). (atm we don't use the button but a simple text link)
Is there a possitiblity to make this happen without assigning this to a programmer? I am comfortable with a little programming but ain't a pro ...
Thanks for any help that might come :)
All the best from Switzerland,
Cristina
Hi there,
You could try this (after turning off the built in read more):
add_action( 'generate_after_entry_content', 'lh_logo_read_more_button' );
function lh_logo_read_more_button() {
?>
<p class="read-more-container">
<a href="<?php the_permalink(); ?>"><img src="http://LOGO-URL-HERE"></a>
</p>
<?php
}
Adding PHP: https://docs.generatepress.com/article/adding-php/
Thank you very much Leo! This was very helpful. :)
No problem :)