Nov 5, 2014 - My Eyes Only    Comments Off on How to update the WordPress theme for localgeek.us

How to update the WordPress theme for localgeek.us

The LocalGeek web site (www.localgeek.us) uses a child theme of Figero. Special attention needs to be taken when updating this theme, to avoid overwriting important files.

The following files and folders should be kept in the figero-child folder, which should avoid this issue, allowing the parent figero folder to be updated with new files.

404.php
contact.php
footer.php
fullpage.php
functions.php
screenshot.png (optional)
style.css
functions (FOLDER)
images (FOLDER)
js (FOLDER)

A note about child themes

The only 2 files required for child themes are functions.php and style.css.

@import should not be used to import the parent stylesheet into the child theme. The correct method is to use wp_enqueue_style() to enqueue the parent stylesheet, using this code in your child theme’s functions.php:

<?php
 
add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style' );
function enqueue_parent_theme_style() {
 wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
}