Theme Options Page Form Field Question
-
I recently upgraded to 6.0.3. I held out for more than a year because I knew it would break my custom theme that I started coding in 2010. I’ve gone through the due diligence of updating everything in my theme to ensure that it would work but I am stuck on one element related to the theme options page. I’m hoping someone can point me in the right direction.
The options page includes a wp_editor form element, which worked perfectly. With the WP upgrade the options page now displays a broken Tiny MCE editor above the options page. Where the wp_editor is supposed to be displayed it is still displayed but it is broken, it doesn’t display anything in the editor.
I’ve spent many hours googling and reading through articles (most are out of date) to no avail. I’m hoping someone can point me in the right direction for resolving this coding issue.
I have the following code in my functions.php
function x_theme_admin_styles() { wp_editor( "" , "main_text", array()); wp_enqueue_script('word-count'); wp_enqueue_script('post'); wp_enqueue_script('editor'); wp_enqueue_script('media-upload'); wp_enqueue_script('jquery'); wp_enqueue_script('thickbox'); wp_enqueue_style('thickbox'); }
And this is how I am calling the wp_editor on the options page form:
wp_editor($x_maincont_opt['x_main_text'], "main_text", array());
- The topic ‘Theme Options Page Form Field Question’ is closed to new replies.