Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeff K

    (@kreitje)

    Let me know if this was what you are looking for. This change will be throughout all templates and all pages of your site.

    Add this to your themes functions.php file:

    function add_author_to_testimonial($source)
    {
    	return 'Author: ' . $source;
    }
    
    add_filter('hms_testimonials_system_source', 'add_author_to_testimonial');
    Thread Starter dasadler

    (@dasadler)

    Thanks, I will give it a try. Is there no way to do it in CSS? I am trying to contain all my customization with CSS override code.

    Plugin Author Jeff K

    (@kreitje)

    Possibly with a :before pseudo element on the author container.

    Thread Starter dasadler

    (@dasadler)

    As I have said previously, I am not a coder but the info at https://css-tricks.com/css-content/ seems to indicate that it may be possible using a CSS property called content.

    I don’t quite understand the information on that site – it is a short page… maybe it makes sense to you and we might be able to use it in this case?

    I am reluctant to get into php for fear I will mes something up.

    Plugin Author Jeff K

    (@kreitje)

    This is working for me.

    .hms-testimonial-container .author:before {
    	content: "Author: ";
    }

    Thread Starter dasadler

    (@dasadler)

    LOL… Timing is everything. You’re fast!

    I was just about to post the following and it works! What I wanted was something line Bill: or Mary:

    .hms-testimonial-group .author:after {
    content:”:”;
    }

    Your code works also very well. In fact, I may change to

    .hms-testimonial-container .author:before {
    content: “Testimonial by: “;
    }

    I’ll have to think about that.

    Thank you for the fast follow up.

    Thread Starter dasadler

    (@dasadler)

    Okay, got what I like now…

    .hms-testimonial-group .author:after {
    content:” said:”;
    }

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘appending a colon to name’ is closed to new replies.