Options Framework options not being output
I think the problem is that you are using uppercase letters in the options id: footer-nav1_URL Try instead: footer-nav1_url In general you should avoid using uppercase letters in options names in WordPress.
I think the problem is that you are using uppercase letters in the options id: footer-nav1_URL Try instead: footer-nav1_url In general you should avoid using uppercase letters in options names in WordPress.
You need that for child themes. If you have a separate header.php a child theme can use its own header.php and override the parent theme’s file. Plus, header.php and footer.php are used in wp-signup.php. Another reason is readability: Putting all the code for a theme into just one file gets very messy very fast. A … Read more
I have no idea how the framework actually stores its options, but I guess it uses the name redux_demo, not redux_demo[10]. If the option is an array, you can access the element 10 like this: $redux_demo = get_option( ‘redux_demo’ ); if ( ! empty ( $redux_demo[ 10 ] ) and 1 === $redux_demo[ 10 ] … Read more
As @Ashfame as already pointed out, you shouldn’t store defaults in the database – that should be for user selected options (of course, if they select the defaults, then fine – store them :). However, you don’t need to use wp_parse_args() either. get_option allows you to select a default value. For instance: //If nuod_logo is … Read more
If you add tracking code to a theme file you will need to do this on every theme change. It is considered good practice to use plugin for this, like Google Analytics for WordPress. It will use common hooks (that every theme worth using has) to insert code and that way you don’t need to … Read more
esc_html() and esc_textarea() are, appropriate to their names, escaping functions and really meant for display rather than sanitizing or validating. I would use wp_kses() or wp_kses_post() (which is just wp_kses() with the global $allowedposttags) to sanitize input from a wp_editor() field before saving.
The problem here is that you don’t allow PHP to read more than one value, because all values use the same name site_options[categorychoice], so they overwrite each other, and the last one wins. You need more brackets. Set the name attribute of your select element to site_options[categorychoice][], and all values will be read by PHP.
Have you looked at the archive functionality? It allows you to archive a site (aka ‘site is not live’) and unarchive it again when the site is ready to go online. You may do so in ‘/wp-admin/network/sites.php’. The option is shown when you hover over the row with your site in it. Another option is … Read more
Maybe the Q is bordering the off-topic, but IMO interesting in WordPress context. I’ve tested this directly in FireBug, in the Dashboard page (wp-admin/index.php). var $ =jQuery.noConflict(); // Remove ‘active’ class from all link tabs $(‘li[id^=”tab-link-“]’).each(function(){ $(this).removeClass(‘active’); }); // Hide all panels $(‘div[id^=”tab-panel-“]’).each(function(){ $(this).css(‘display’,’none’); }); // Set our desired link/panel $(‘#tab-link-help-content’).addClass(‘active’); $(‘#tab-panel-help-content’).css(‘display’,’block’); // Force click … Read more
If space were the only problem you could simply enqueue a css file to the admin area with these lines to expand the width of the customizer panel from the usual 300px to 500px: .wp-full-overlay-sidebar {width 500px !important;} .wp-full-overlay.expanded {margin-left:500px !important;} Hey, you could even enqueue a js file to insert a button to toggle … Read more