WordPress.org

Ready to get started?Download WordPress

Forums

Testimonial By Weblizar
[resolved] How to remove the box "website"? (4 posts)

  1. zapper123
    Member
    Posted 2 months ago #

    Hi,
    I want to remove box "website" on admin panel or change this box to "not required" because lot of my clients don't have websites so this function is unnecessary for me.

    Thanks in advance,
    Cezary

    PS. I like your plugin very much ;).

    https://wordpress.org/plugins/testimonial-by-weblizar/

  2. weblizar
    Member
    Plugin Author

    Posted 2 months ago #

    Hi Thr,

    You need to remove some validation code in dashboard.php file

    File: dashboard.php
    File Path: plugins\testimonial-by-weblizar\admin\

    Remove or comment out below website validation code:
    line no - 259 to 270

    /*
    //website
    var urlregex = /(http(s)?:\\)?([\w-]+\.)+[\w-]+[.com|.in|.org]+(\[\?%&=]*)?/;
    if(Website == "") {
    	jQuery("#website").focus();
    	jQuery("#website-div").after("<div class='tError alert alert-danger'><button class='close' data-dismiss='alert' type='button'><i class='icon-remove'></i></button> <strong><?php _e('Field Required:', 'WEBLIZAR_TESTIMONIAL_TEXT_DOMAIN'); ?></strong> <?php _e('Type your website address here', 'WEBLIZAR_TESTIMONIAL_TEXT_DOMAIN'); ?></div>");
    	return false;
    }
    if(urlregex.test(Website) == false ) {
    	jQuery("#website").focus();
    	jQuery("#website-div").after("<div class='tError alert alert-danger'><button class='close' data-dismiss='alert' type='button'><i class='icon-remove'></i></button> <strong><?php _e('Field Required:', 'WEBLIZAR_TESTIMONIAL_TEXT_DOMAIN'); ?></strong> <?php _e('Type valid website address', 'WEBLIZAR_TESTIMONIAL_TEXT_DOMAIN'); ?></div>");
    	return false;
    }
    */

    Thanks for using Testimonial plugin.
    Weblizar

  3. zapper123
    Member
    Posted 2 months ago #

    Thank you so much for help!

  4. weblizar
    Member
    Plugin Author

    Posted 2 months ago #

    You're Welcome Cezary

Reply

You must log in to post.

About this Plugin

About this Topic