Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: White text on page, can’t see in editor.

Discussion in 'Misc WordPress Requests' started by Rhand, Nov 8, 2017.

  1. Rhand

    Guest

    Reply To: White text on page, can’t see in editor., by Rhand

    You can check out this tutorial and the official documentation on adding the theme like css to your WordPress visual editor. User contributed example explains it succinctly:

    Add the following to the functions.php file of your theme.


    /**
    * Registers an editor stylesheet for the theme.
    */
    function wpdocs_theme_add_editor_styles() {
    add_editor_style( 'custom-editor-style.css' );
    }
    add_action( 'admin_init', 'wpdocs_theme_add_editor_styles' );


    Next, create a file named custom-editor-style.css in your themes root directory. Any CSS rules added to that file will be reflected within the TinyMCE visual editor. The contents of the file might look like this:


    body#tinymce.wp-editor {
    font-family: Arial, Helvetica, sans-serif;
    margin: 10px;
    }

    body#tinymce.wp-editor a {
    color: #4CA6CF;
    }


    Do add your own needed styles like a black background and white font face.

    Reply To: White text on page, can’t see in editor.
     
    #1

Share This Page

Web Hosting