WordPress.org

Ready to get started?Download WordPress

Forums

HMS Testimonials
[resolved] remove td in testimonial submission form?? (6 posts)

  1. Shotan
    Member
    Posted 9 months ago #

    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/

  2. Jeff K
    Member
    Plugin Author

    Posted 9 months ago #

    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

  3. Shotan
    Member
    Posted 9 months ago #

    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)

  4. Jeff K
    Member
    Plugin Author

    Posted 9 months ago #

    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.

  5. Shotan
    Member
    Posted 9 months ago #

    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

  6. Jeff K
    Member
    Plugin Author

    Posted 9 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic