how do I change the wording above the comments box from "Leave a Reply" to "Leave a C

  • Anonymous

    #7269

    I tried this but on my themes functions know matter how I try it All I keep getting is the white screen of death. I have tried the code with the ?> and without it and it still does not work? I have stuff written in my functions.php already. (I have a child theme)

    This custom function goes in your child theme functions.php file. If it is blank, start with <?php and close the code with ?>

    function graphene_filter_gettext( $translated, $original, $domain ) {
    $strings = array(
    'Leave a Reply' => 'Leave a Comment',
    );
    if ( ! empty( $strings[$original] ) ) {
    $translations = &get_translations_for_domain( $domain );
    $translated = $translations->translate( $strings[$original] );
    }
    return $translated;
    }
    add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );


    And I know you can change the color of the top border of the author reply. But how can I add a sold colored border “all around my author reply only?

    Admin

    Syahir Hakim

    #37637

    Try turning on WP_DEBUG in your wp-config.php file and see what error message come up.

    Anonymous

    #37638

    actually I think im going to stay with the leave a reply better.

    but what about my other question

    And I know you can change the color of the top border of the author reply. But how can I add a sold colored border “all around my author reply only?

    Is this possible?

    Anonymous

    #37639
    Quote:
    But how can I add a sold colored border “all around my author reply only?

    Add this to Custom CSS

    .bypostauthor {
    border: 3px solid #123456 !important;
    }

    Colour picker – http://www.colorpicker.com/

    Anonymous

    #37640

    Awesome! Thank you so much

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!