• Resolved MvdO79

    (@mvdo79)


    Hi, is there a simple way to disable MCE on the ad description?

    And, is there a way to alter the CSS or is the only way to just add custom CSS?

Viewing 1 replies (of 1 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    1. you can disable the editor by adding the code below in your theme functions.php file

    
    add_filter( "adverts_form_load", "customize_adverts_add" );
    function customize_adverts_add( $form ) {
      if( $form['name'] != "advert" ) {
        return $form;
      }
      foreach( $form["field"] as $key => $field ) {
        if( $field["name"] == "post_content" ) {
            $form["field"][$key]["mode"] = "plain-text";
        }
      }
      return $form;
    }
    

    2. the best way to modify CSS is to do it from wp-admin / Appearance / Customize / Additional CSS panel.

Viewing 1 replies (of 1 total)

The topic ‘Disable MCE / Alter CSS’ is closed to new replies.