Support » Plugin: Gwolle Guestbook » Admin reply by :

  • Resolved carlager

    (@carlager)


    First of all thank you for a great guest book.

    How do delete the text “Admin Reply By : Carlager” to the right of the Avatar ?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marcel Pol

    (@mpol)

    You could use CSS to hide it:

    div.gb-admin-reply-uid em {
        display: none;
    }

    You can also use PHP code in functions.php of your theme (untested):

    function my_gwolle_gb_admin_reply_header( $admin_reply_header, $entry ) {
        return '';
    }
    add_filter( 'gwolle_gb_admin_reply_header', 'my_gwolle_gb_admin_reply_header(' );
    • This reply was modified 1 year, 11 months ago by Marcel Pol.

    Thanx a lot for your reply.

    Then function seem to work.

    Which PHP code do I need to show the date of the entry to the right of the avatar ?

    Carl

    Hi Marcel.

    The PHP code in functions.php should be

    function my_gwolle_gb_admin_reply_header( $html, $entry ) {
    	// $html is a string
    	$html = '';
    	return $html;
    }
    add_filter( 'gwolle_gb_admin_reply_header', 'my_gwolle_gb_admin_reply_header', 10, 2 );

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    • This reply was modified 1 year, 11 months ago by bdbrown.
    Plugin Author Marcel Pol

    (@mpol)

    To change the order of the data, you will need to edit the template.
    You can copy the frontend/gwolle_gb-entry.php file to your theme directory and edit the order.
    Please be aware that on updates, new changes can be made to the template, and you will want to track those. You should consider if you want all that work for just this change.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Admin reply by :’ is closed to new replies.