Okay
  Public Ticket #2689830
Testimonials
Closed

Comments

  •  3
    WakeyMark1 started the conversation

    Hi guys

    Ok the issue I have is the testimonials on the home page. We have some rather long testimonials but only want to show 6/7 lines on the home page slider but want to show the full testimonial on the testimonial page. Also on the hompage could it have a button link.

    Many thanks 

    Mark

  •  1,710
    Barry replied

    Hi Mark,

    By default there is no such option in the testimonials element but you can achieve something similar by using custom CSS code. It need some explanation and some steps to do that I'll describe below:

    1. Navigate to the "Testimonials" admin tab and edit the first testimonial post

    2. Write the full testimonial there and add a text link below. Point this link to your main testimonial page where you would like to show all the full testimonials (see attachment "1. Edit Testimonial.png")

    3. Go to Appearance -> Customize -> Additional CSS and add the following CSS code to the textarea:

    body.home .testimonials .element-content p:first-of-type {
        height: 180px;
        overflow: hidden;
    }
    

    This CSS code will set a maximum height the testimonial only on the homepage. You might need to tweak the 180px height value to your own needs. By changing the height value you can show a maximum amount of lines visible.

    4. Create a new page called testimonials if you don't have this yet

    5. Add the "QT: Testimonial" element on this page

    6. Repeat step 2 for the other testimonials posts under the "Testimonials admin tab

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  1,710
    Barry replied

    Attachment

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  3
    WakeyMark1 replied

    Hi Barry

    Thats worked a treat, thank you so much

    Mark


  •  1,710
    Barry replied

    Great! You're welcomesmile.png

    If you have any other questions please let me know.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  3
    WakeyMark1 replied

    Hi Barry

    Hope your well.

    I have just tried to edit another testimonial but cannot get it to work this time. 

    Please see here https://yorkshirehygiene.co.uk/ further down the page.

    Cannot for the life of me work out what I have done wrong this time I did only edit an existing one. I have cleared caches ect.


    Can you assist please


    Mark

  •  1,710
    Barry replied

    Hi Mark,

    I'm doing fine thank you for asking. Hope you're too!

    To display the testimonials as wanted with the CSS workaround I provided you have to add the quote of a testimonials in one single paragraph block instead of using multiple blocks. Basically you have to remove all the line breaks between the paragraph blocks.

    Please see the attached screenshots. If your quote is added as in the "multiple-paragraph.png" attachment the CSS will not work and the full testimonial will be displayed.

    On the "single-paragraph.png" attachment you can see the quote is added in one paragraph block and all line breaks are removed. Now the custom CSS can target this testimonial and set a fixed height to the element.

    Hope this helps.

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes

  •  3
    WakeyMark1 replied

    Wow thank you so much Barry, your support is excellent.


    Cheers 

    Regards

    Mark

  •  1,710
    Barry replied

    You're welcome Mark. Thank you for the compliment!smile.png

    Best regards,
    Barry
    QreativeThemes.com  |  WordPress Themes