• Resolved adijeff

    (@adijeff)


    Hi Jeff,

    Awesome plugin – thanks. My question is about the read more link behaviour. I am trying to show a page/widget of testimonies which are truncated -easy enough, but I want the read more link to go to a page containing the full version of that testimony. Is this possible without creating each page and link manually?

    In my mind this should be the default behaviour, which can then be over-ridden by adding a URL in the “Read more page” field. Thanks.

    https://www.ads-software.com/plugins/hms-testimonials/

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

    (@kreitje)

    Sure thing. I wish it could have been sooner but it’s only 8:30am where I am right now.

    At 6 hours, your updates come more often than buses in my neck of the woods.

    That will be my quote of the day.

    Thread Starter adijeff

    (@adijeff)

    Works perfectly – thanks Jeff.

    Sorry to barge in to somebody elses support request however the solution isn’t ideal, not for me any way. Nearly but not quite!

    The main issue is that when I implement this the testimonial in question is isolated however the ‘read more’ is still applied and the message abridged accordingly.

    Also, it would be nice if there was a differentiating class applied so that a different style can be applied to the single view.

    Oh, I had a thought about the thumbnail image also. Why not apply get_the_post_thumbnail so that images aren’t squashed? :
    https://codex.www.ads-software.com/Function_Reference/get_the_post_thumbnail

    Stirling work so far. Thank you for making this plugin available.

    Plugin Author Jeff K

    (@kreitje)

    That was the point. When you click the read more link it will only show that testimonial. You can override the read more link on and individual basis or adjust the setting.

    Groups of testimonials are wrapped inside a div with an hms-testimonial-group class so you can target single testimonials or groups of them. By groups, that includes just displaying them all.

    This plugin does not use the standard posts table so get_the_post_thumbnail will not work.

    Jeff

    Aye, I checked the class and saw the db tables the plugin uses and that standard posts weren’t used..

    And it seems odd to click on ‘read more’, the entry singled out but with no more to read. I’m not entirely sure what you meant concerning overriding on an ‘individual basis’ but it sounds far too labourious.

    Thanks for replying; the plugin isn’t suitable for me at this time in this current form. But without your effort and every other developers efforts the platform wouldn’t be what it is.

    Thanks and all the best.

    Thread Starter adijeff

    (@adijeff)

    I avoided kaisho’s squashed images, by setting the height to 0. This means the inline style only specifies width.

    The downside is that on the admin side, height is specified as “0” so the thumbnail does not show. I worked around this by adding this code to functions.php:

    add_action('admin_head', 'my_custom_fixes');
    function my_custom_fixes() {
      echo '<style>
    		.testimonial-image {
    			height: auto !important;
    			width: 150px;
    		}
      </style>';
    }

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Read more link behaviour’ is closed to new replies.