Can I remove Website option from comment section?

i have two questions

  1. Can I remove Website option from comment section?

  2. And one question more > I have added a specific look for my h1/h2/h3 headers in my child theme.

But i dont wnna show those headers in shortcodes like >>

default theme’s pricing table shortcode

I want to use jst like the demo of x theme > http://demo.theme.co/renew-1/shortcodes/responsive-pricing-table/

how is this possible?

Hi Sansar,

Thanks for reaching out.

  1. 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.

  1. 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!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.