Documentation and Online Training
×
Menu
Index

How to Add SDF Child Theme


How to Add a Child Theme to the SEO Design Framework
 
 
Download your “blank” initial SDF child theme from the SDF downloads area.
 
Custom css should be placed in /css/custom.css file and theme generated css file will be set inside child theme in /css/ folder as well.
 
Changes on /css/custom.css can be applied/visible upon you make style save in theme options.
 
Namely, all styles from bootstrap, style settings and custom.css are then saved to one file e.g. /css/preset-1.css and then it’s working.
 
So like when you change some theme settings it’s same for custom.css changes. Save that file and then you have to click “Save Changes” in style settings to generate theme css: http://screencast.com/t/yy5n3gfxT9
 
So just keep that structure regarding css part and there won’t be ajax calls for css as it’s slowing down the site.
 
If you just want to add small css snippets you might also want to consider adding it to the designated CSS option field in your themes backend at:
SEO Design >> Header >> Additional HTML/CSS
 
In child theme’s functions.php file you can save your options encoded backup string. Copy from styles export .txt file and paste in line 10 variable $child_theme_options
 
 
Also on line 3, child theme options name is defined  '_sdf_theme_options_initial'
so child theme options won’t overwrite your core theme options.
 
But first of all export and save your SDF style settings  http://screencast.com/t/aQNrQeapaO9 as you need to import it upon new child theme activation and to have it as a backup too.
 
About style settings, initial child theme comes as a blank so as mentioned above, you can save encoded settings content in functions.php and have it inside as a backup and for options reset functionality on this child theme:
 
Copy from SEO_Design_Framework_Settings.txt file or from Options Export Code textarea http://screencast.com/t/aQNrQeapaO9
and paste in line 10 variable $child_theme_options
The online help was created with Dr.Explain