theme

The best way to customize a WordPress theme, is to create a child theme. To do this, you need to create a directory in the themes folder, add a style.css and set the the ‘Template’ parameter in its header to the name of the parent theme:

/*
Theme Name: Some Child Theme
Template: some-parent-theme
*/

Then you need to create a functions.php file and make sure to enqueue the parents css:

add_action( 'wp_enqueue_scripts', 'mytheme_enqueue_styles' );
function mytheme_enqueue_styles() {
   wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}

After that, you can copy any template file from the parent theme to your child themes directory and change whatever you need. These files won’t be overwritten when the parent theme receives an update.

Technology:

Emacs does not remember custom theme settings

After adding the following line to <quote>init.el</quote> <code> (load-theme 'solarized-dark) </code> Emacs asks the following 2 questions on every start: <cite>Loading a theme can run Lisp code. Really load (y or n)</cite> <cite>Treat this theme as safe in future sessions? (y or n)</cite> Answering both questions with "y" does have no effect, Emacs doesn't remember previous decisions.
Subscribe to theme