Okay
  Public Ticket #1181117
Formatting in custom tab
Closed

Comments

  • maitruongtung started the conversation

    Hi,

    In custom tabs, all formatting inside the text-area gets stripped away when saving the page, except em, li and basic tags. Please help me. 

    P/s my version using is 7.21

    Thanks

  •  2,057
    Theme replied

    Hi,

    Can you please put in a pastebin the html content you are trying to enter into one of those textareas so we can try it on our end and provide you with a solution?

    Thanks,

    Best regards,

    themeenergy support

  • maitruongtung replied

    Hi,

    I only using available tools of WP editor and I format as font-size, color... But they are removed after saving content.

    Please look for my attached file.

    Thanks

  •  2,057
    Theme replied

    Hi,

    Please copy includes/plugins/metaboxes/meta_box.php to your child theme (same folder structure), edit the file and change lines 437 to 440 from

    'span' => array(
                'class' => true,
                'id' => true
            ),
    

    to

    'span' => array(
                'class' => true,
                'id' => true,
                'style' => true
            ),
    

    Then, edit your content again, set colors and try and save and see how things go.

    Best regards,

    themeenergy support