1 – First step in setting up WordPress
(After WordPress is installed)
These are the steps that I use when setting up a WordPress site
WordPress Basic Configurations I Change
Setting -> General
- Set the Site Title
- Set the Tagline
- Set Email Address
- Set Timezone
- Set Week Start On
Setting -> Permalinks
- Set to Post name
Create Child Theme
- In wp-content/themes make a folder for theme-child.
- In wp-content/themes/them-child create file style.css.
- Paste the following:
/* Theme Name: Theme Child Theme Theme URI: http://www.ourroadtripdays.com/ Description: A theme child theme Author: Gary Stockburger Author URI: http://www.ourroadtripdays.com Template: Theme Version: 1.0.0 */
- In wp-content/themes/them-child create file functions.php.
- Paste the following:
<?php add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { $parent_style = 'theme'; wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); } add_action( 'wp_head', 'analyticstracking', 10); function analyticstracking() { ?> <script> /* Location of my google analytics script */ </script> <?php } ?>
- Activate my theme under Appearance -> Themes