Site Title and Tagline in Theme Options Page

The framework offers a filter for validating input values inside the optionsframework_validate function. Just for reference, here’s the relevant part from the file wp-content/themes/your-theme/inc/options-framework.php: /** * Validate Options. * * This runs after the submit/reset button has been clicked and * validates the inputs. */ function optionsframework_validate( $input ) { /* code */ $clean[$id] = … Read more

Add a page outside of the current theme?

Edit: Updated with the added context from your comment. You could do this with a custom Page template. In your theme, create a new file. In this example, my theme will be “mytheme2015,” my new file is “template-holiday-card.php”: in wp-content/themes/mytheme2015/template-holiday-card.php <?php /** * Template Name: Holiday Card */ Now, once you have that template file … Read more

Submenu pages delete settings from options array when saved

Yep you are missing something, On your validate_options function you need to: get an array of all existing options. update only the options your Submenu page handles. return that array. So something like: function validate_options($input){ //do regular validation stuff //… //… //get all options $options = get_option(THEMENAME . ‘_settings’); //update only the neede options foreach … Read more

Theme Options Panels, What are some good examples from Frameworks or Premium Themes? [closed]

Of the few I’ve seen, I think that most “premium” Themes way over-complicate Theme Settings pages. I generally prefer Theme Settings pages that maintain the style/layout of the rest of the WP-Admin UI. So, these would be my rules of thumb: Incorporate meaningful settings, and not necessarily every possible setting under the sun. Organize settings … Read more

How to add Color Picker in Theme Options for the following?

Your not going to get an answer to this, there is no magic wand you can use to change what your asking without working it out yourself, or at the very least supplying some actual code with your question. To change the CSS in a back-end option page you can use the Options API, http://codex.wordpress.org/Options_API, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)