Visual Editor Lost Heading 1 and Heading 2 in options

Discussion in 'SpotMoto WordPress Theme' started by mtmccray, Aug 5, 2013.

Thread Status:
Not open for further replies.
  1. mtmccray

    mtmccray New Member

    Joined:
    Feb 5, 2013
    Messages:
    10
    Likes Received:
    0
    I have lost the options for Heading 1 and Heading 2 in the visual page editor.
    I have the following options...
    Paragraph
    Address
    Preformatted
    Code
    Heading 3
    Heading 4
    Heading 5
    Heading 6

    If i change the theme to something different the options Heading 1 and Heading 2 come back, then I change back to Spotmoto and these options are gone again.

    How can I get these two options in the visual page editor?

    Thanks
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Go to function.php present in your theme and remove the code given below

    Code:
    function change_mce_options( $init ) {
    $init['theme_advanced_blockformats'] = 'p,address,pre,code,h3,h4,h5,h6';
    $init['theme_advanced_disable'] = 'forecolor';
    return $init;
    }
    add_filter('tiny_mce_before_init', 'change_mce_options');

    Sending image for reference

    2013-08-05_1658.png


    This will solve your issue.
     
  3. mtmccray

    mtmccray New Member

    Joined:
    Feb 5, 2013
    Messages:
    10
    Likes Received:
    0
    Thanks, that worked perfectly!
     
Thread Status:
Not open for further replies.

Share This Page