How to extend parent theme sections and settings to Options Tree

For anyone who want to achieve the same thing : add_filter( ot_settings_id() . ‘_args’, ‘my_ot_setting’); function my_ot_setting($custom_settings){ //do some work with the settings and the sections, ie append your settings. return $custom_settings; } This works if the parent theme applies this filter before saving the options like the example here : https://github.com/valendesigns/option-tree-theme/blob/master/inc/theme-options.php#L833 Otherwise you have … Read more

Child theme within a child theme?

You can add a custom functions.php to your child theme. As long as it’s in the child theme folder, it will not be overwritten when you update the parent theme. See http://codex.wordpress.org/Child_Themes. Read the section “Using functions.php”

WordPress Twenty Fourteen Theme Sidebar

The sidebar is created in two different places: The black strip is created from .site:before, check line 3910 of style.css #secondary actually displays the sidebar information, check line 3923 of style.css .featured-content, .site-content, .site-main .widecolumn provide left padding to the content area should you wish to dispose of that too.

How to create a child theme with multiple css files.

Your question is general, so I cannot answer it in details. If the parent theme enqueues some styles using get_stylesheet_directory_uri() in the path they won’t be available in child theme. Then you should enqueue lacking stylesheets in your child’s function.php using get_template_directory_uri() which will point to the parent theme directory. Some example: add_action( ‘wp_enqueue_scripts’, ‘wpse179217_enqueue_styles’ … Read more

Child theme style.css isn’t overwriting parent style.css

Style is not from parent CSS it is from themes/optimizer/style_core.css Then you can enqueue your child CSS on highest priority. enqueue the parent style then child style on high priority function enqueue_parent_theme_style() { wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ ); } add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_theme_style’ ); function enqueue_child_theme_style() { wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri().’/style.css’ ); } add_action( ‘wp_enqueue_scripts’, ‘enqueue_child_theme_style’, 100 );

How to style options page in dashboard?

You can simply add those CSS to admin HEAD section, it’s fast and easy solution. function jrl_styles() { ?><style type=”text/css”> #jrl-wrap { width: 700px; padding: 3em; /* … */ } </style><?php } add_action(‘admin_head’, ‘jrl_styles’); Or you can enque your CSS file like this: function load_custom_wp_admin_style() { wp_register_style( ‘custom_wp_admin_css’, get_stylesheet_directory_uri() . ‘/functions/site-options.css’, false, ‘1.0.0’ ); wp_enqueue_style( … Read more