Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1096927
    MaddyJones
    Participant

    Hi,

    I’ve searched the forum but can’t quite find the answer to my query. I’ve set up buttons in Customiser to be transparent with black outline. However the Read more buttons on the blog posts are still red with white text. How do I change this?

    Many thanks

    #1097044
    Christian
    Moderator

    Hey Maddy,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1098718
    MaddyJones
    Participant
    This reply has been marked as private.
    #1098894
    Rahul
    Moderator

    Hey There,

    Follow this thread :

    https://community.theme.co/forums/topic/customise-read-more-button/

    Hope that helps!

    #1104976
    MaddyJones
    Participant

    Hi, thanks for your help here. I have updated functions.php on the child theme and also added the css on the link you shared, but nothing has changed. Please can you take a look and let me know what I’m doing wrong?

    Many thanks

    #1105128
    Christopher
    Moderator

    Hi there,

    Please update this code :

    function x_excerpt_string( $more ) {
      
      $stack = X_STACK;
    
      if ( $stack == 'integrity' ) {
        return ' ... <div><a href="' . get_permalink() . '" class="more-link x-btn">' . __( 'Read More', '__x__' ) . '</a></div>';
      } else if ( $stack == 'renew' ) {
        return ' ... <a href="' . get_permalink() . '" class="more-link x-btn">' . __( 'Read More', '__x__' ) . '</a>';
      } else if ( $stack == 'icon' ) {
        return ' ...';
      } else if ( $stack == 'ethos' ) {
        return ' ...';
      }
    
    }

    To :

    function x_excerpt_string( $more ) {
      
      $stack = X_STACK;
    
      if ( $stack == 'integrity' ) {
        return ' ... <div><a href="' . get_permalink() . '" class="more-link x-btn">' . __( 'Read More', '__x__' ) . '</a></div>';
      } else if ( $stack == 'renew' ) {
        return ' ... <a href="' . get_permalink() . '" class="more-link x-btn">' . __( 'Read More', '__x__' ) . '</a>';
      } else if ( $stack == 'icon' ) {
        return ' ...';
      } else if ( $stack == 'ethos' ) {
       return ' ... <a href="' . get_permalink() . '" class="more-link x-btn">' . __( 'Read More', '__x__' ) . '</a>';
      }
    
    }

    Hope it helps.

  • <script> jQuery(function($){ $("#no-reply-1096927 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>