Celebrating 7 Years! Get up to $30 off GeneratePress Premium!

[Resolved] Replacing Read More Button with our Logo

Home Forums Support [Resolved] Replacing Read More Button with our Logo

Home Forums Support Replacing Read More Button with our Logo

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #587828
    Cristina

    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

    GP Premium 1.6.2
    #587986
    Leo
    Staff
    Customer Support

    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/

    #588253
    Cristina

    Thank you very much Leo! This was very helpful. πŸ™‚

    #588352
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.