Tagged: ,

Viewing 2 reply threads
  • Author
    Posts
    • #7709
      utilityla
      Participant

      I’m looking to add some custom styles to my Piklist editor which I’m using in place of the default editor.

      The follow is useful when trying to add a stylesheet for the default editor but it does not seem to work with the Piklist editor. How would I go about this for the Piklist editor? Thanks!

      function editor_styles() {
      add_editor_style( ‘editor-style.css’ );
      }
      add_action( ‘admin_init’, ‘editor_styles’ );

    • #7729
      Steve
      Keymaster

      @utilityla– Welcome to the Piklist community!

      are you removing the default editor with remove_post_type_support? Try enabling and let us know if that works.

    • #7774
      utilityla
      Participant

      @steve – Thanks for the response!

      Yes I am removing the default editor with the following code

      function my_remove_post_type_support()
      {
      remove_post_type_support(‘page’, ‘editor’);
      }
      add_action(‘init’, ‘my_remove_post_type_support’, 10);

      I basically need to add custom css to the content in the WYSIWYG editor, and I’m not sure why add_editor_style is not working with the Piklist editor.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.