Hi Sansar,
Thanks for reaching out.
- That’s doable, please check this https://www.cloudways.com/blog/how-to-remove-url-field-from-wordpress-comment-form/. The code will be
add_filter('comment_form_default_fields', 'website_remove');
function website_remove($fields)
{
if(isset($fields['url']))
unset($fields['url']);
return $fields;
}
That code isn’t from us so we can’t provide support and further customization, though, the code is commonly used since it’s based on Wordpress’ hook/filter.
- You’ll need to use selectors so it would only take effect on headlines that has the class name. Example, let’s say
.x-pricing-column h2 {
/* your styling here */
}
Your styling will only affect the h2 headlines within the pricing table’s column. Or perhaps, you don’t wish to apply it to pricing table’s column headline? Then you would need to manually apply the class name to your headlines, examples,
<h2 class="apply_h2">Headline</h2>
h2.apply_h2 {
/* your styling here */
}
Or
<div class="apply_h2"><h2>Headline</h2></div>
.apply_h2 h2 {
/* your styling here */
}
Custom class name depends on your preference, I only use apply_h2
as a sample.
Thanks!