• Resolved denisyakovlev

    (@denisyakovlev)


    Hello everybody !
    I need to remove some classes and add some classes for specific blocks, buttons and etc. I find needed block (for example) in file plugins\userswp\includes\class-account.php.
    So, please, give me advice, how to change this file, that after updating the plugin my changes don’t disappear ?

    • This topic was modified 3 years, 7 months ago by denisyakovlev.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    To add a class you need to look for the filter and you can override the files from the templates folder if you want to modify them but can’t modify the class-account.php file without doing changes again after updating the plugin. If you can explain what exactly you want to change then I can check for a filter if available.

    Regards,
    Patrik

    Thread Starter denisyakovlev

    (@denisyakovlev)

    Thank you for the answer !
    So, I need change classes here:
    in file plugins\userswp\includes\class-account.php.
    line 24: public function display_form($type), var – $bs_btn_class.

    in file plugins\userswp\widgets\change.php
    change ‘widget_ops'[‘classname’] (remove class bsui)

    Hi,

    If you want to add or remove a class for the CSS then you can use the parent class to apply the CSS as we don’t recommend modifying the core files of the plugin.

    Regards,
    Patrik

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to edit/change files in includes folder’ is closed to new replies.