Dominate Marketing

Dominate Marketing Logo
Categories
How To Guides Website Tips Wordpress

How to Make a WordPress Child Theme

Code you will need

Functions.php file

(make sure to save it as “functions.php”)

Version 1 (try this first):

<?php

add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );
function enqueue_parent_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
}

Version 2:

<?php

// register and enqueue the stylesheet.
add_action( ‘wp_enqueue_scripts’, ‘register_child_theme_styles’ );

function register_child_theme_styles() {
wp_register_style( ‘style’, get_stylesheet_uri() );
wp_enqueue_style( ‘style’ );
}

Version 3:

<?php

add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
function my_theme_enqueue_styles() {
wp_enqueue_style( ‘child-style’, get_stylesheet_uri(),
array( ‘parenthandle’ ),
wp_get_theme()->get(‘Version’) // this only works if you have Version in the style header
);
}

Style.css code

(make sure to save the file as “style.css”)

/*
Theme Name: Twenty Twenty Child
Template: twentytwenty
*/

 

Categories
How To Guides

Why Your Google Analytics Just Stopped Working… [July 2023]

If you’ve just logged into your Google Analytics account and realized that all the data is no longer being collected and reported, this video explains why.

Google stopped support for Universal Analytics starting 1st July 2023, and if you haven’t upgraded to GA4, you will no longer be collecting any data from your website.

In order to solve this, you need to set up a Google Analytics 4 account, and set up your conversions there, as well as link that to your Google Ads account or your Google Ads will no longer optimize for conversions (since they won’t be reporting any).

Watch these videos for how to do everything you need to do:

How to set up GA4

How to set up conversions in GA4

How to link GA4 to your Google Ads account and import the conversions