HTML not allowed on Pricing Table features?

  • When I try and put an href in there, it just gets removed. I’d really like to link out from those features!

    Those widgets are coded to remove HTML tags from those fields.

    You can change that by editing the widget file.

    pricing_tables_widget.php located in /inc/widgets/ directory.

    On line 85 change,

    $instance['feature_1'] = strip_tags($new_instance['feature_1']);


    $instance['feature_1'] = $new_instance['feature_1'];

    You can do the same for the rest of the feature fields.

    Thanks for this, but is there a reason that HTML should be stripped out, or why is it setup to do that by default?

    It is a WordPress standard to sanitize text fields for security reasons.

You must be logged in to reply to this topic.