I need to remove a class for a wordpress page without using javascript, can it be done with php? or any wordpress function?. the thing is the following: I'm using a plugin and this plugin uses a class wich is damaging the styles of the inner tags inside it, so I need to remove that class without touching the plugin.

I was looking here for a solution but I couldn't find this, looks impossible to me that nobody was made this question.

  • What element is the class being added to? What is the class name? – Dave Romsey Mar 23 '17 at 19:36
  • <p class="form-row ">*****content****</p> something like this – Kenny Amaro Mar 23 '17 at 19:38
  • 2
    The next step would be to search the plugins for form-row to see how this class and other markup are being added. It's possible that there is a filter that could be removed. It would help if you could edit your question and add the code from the plugin. – Dave Romsey Mar 23 '17 at 19:44
  • is woocommerce plugin and it adds this classes on it's forms – Kenny Amaro Mar 23 '17 at 19:48
  • You'll likely need to leverage the template hierarchy and add the modified templates to your theme. There are many templates, so it might be easier to address the issue via CSS. – Dave Romsey Mar 23 '17 at 19:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.