Support » Plugin: HMS Testimonials » remove td in testimonial submission form??

  • Resolved Shotan

    (@shotan)


    I LOVE your plugin and it’s the only one that consistently works with Artisteer generated themes!
    I am using the testimonial submission form in a sidebar which is only 220 pixels wide. I would like to remove the labels td to make the widget inputs wider and perhaps insert default text within the input fields instead.

    I’ve searched but, being a non php guy, I cannot find where the actual table is created. I was hoping I could simply remove the labels tds.

    Can this be done and if so, how please?
    Many thanks and a donation on its way, Paul (UK)

    https://wordpress.org/plugins/hms-testimonials/

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

    (@kreitje)

    Hey Paul,

    Thanks for the compliments. If you have a few moments, please rate the plugin if you haven’t already.

    I always recommend editing the PHP as the next time I release an update it will be overwritten. If you must anyways, the file is shortcodes.php (towards the top) in the hms-testimonials folder.

    Right now it requires the the use of a table, but to get rid of the label column you can add this to your CSS:

    .hms-testimonials-label { display:none; }

    It just hides those columns.

    To solve your label problem I only have a hackey solution using javascript for the time being. You can enter this in your footer theme or if you have another spot at the bottom you can enter javascript. Each input has a class name, this find the name, website and testimonial fields and adds a placeholder html attribute to it.

    <script>
    	jQuery(document).ready(function($) {
    		$('.hms_testimonials_name').attr('placeholder', 'Your Name');
    		$('.hms_testimonials_website').attr('placeholder', 'Your Website (http://');
    		$('.hms_testimonials_testimonial').attr('placeholder', 'Enter your testimonial.');
    	});
    </script>

    I hope this helps.

    Jeff

    Thread Starter Shotan

    (@shotan)

    Hi Jeff
    I can’t believe how quickly you respond here, it’s so unusual and WELCOME. Sincere thanks for running the best customer support forum I’ve encountered. And of course thanks for that-in depth guide. I’ll get it done straight away. Rating and Donation imiment. you deserve both
    Cheers, Paul (UK)

    Plugin Author Jeff K

    (@kreitje)

    Sure thing. I try my best to respond pretty quickly. Let me know if that works for you. I did test it on a test site of mine before hand so I am hoping it works for you.

    Thread Starter Shotan

    (@shotan)

    Thank you so much Jeff, That fix was exactly what I needed I now have the sidebar widget at full width and placeholders in the input fields. couldn’t be better.
    Cheers and all the best for the future.
    Paul Shotan artworks-unlimited

    Plugin Author Jeff K

    (@kreitje)

    Sure thing. I am glad it worked out for you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘remove td in testimonial submission form??’ is closed to new replies.