WordPress

1 – First step in setting up WordPress

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
  1. Set the Site Title
  2. Set the Tagline
  3. Set Email Address
  4. Set Timezone
  5. Set Week Start On
Setting -> Permalinks
  1. Set to Post name
Create Child Theme
  1. In wp-content/themes make a folder for theme-child.
  2. In wp-content/themes/them-child create file style.css.
  3. 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
    */
  4. In wp-content/themes/them-child create file functions.php.
  5. 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
    }
    
    ?>
  6. Activate my theme under Appearance -> Themes