Forums

Remove Elements from the Tiny MCE Formatlist (4 posts)

  1. tiscover
    Member
    Posted 4 years ago #

    Hi!

    i found a lot of tips online to do this - but they are not working with the 2.5 version. can someone tell me how to get rid of h2,h3,h4,h5,h6 in the format list?

    Thanks a lot,

    tisco

  2. Rich Higgins
    Member
    Posted 3 years ago #

    You need to edit this file

    wp-includes\js\tinymce\themes\advanced\editor_template.js

    Search for

    theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6"

    Edit this code directly for your desired options. You'll need to do some cache clearing before you see this come through in the editor, but it *will* work.

  3. Rich Higgins
    Member
    Posted 3 years ago #

    Some more information on this, the cached tinyMCE gz file is stored in

    wp-content\uploads\js_cache

    Delete this file.

    The newly generated file will pick up the changes mentioned in my previous post.

  4. georgebutler
    Member
    Posted 3 years ago #

    Thank You! This worked and helped me a great deal.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags