Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @patee333,

    It is, but Hitchcock does not include widget areas, so any ads would have to be included in the post content (or added through code in a child theme).

    — Anders

    Thread Starter patee333

    (@patee333)

    Hi Anders,
    Okay, I managed to figure out how to create a ChildsTheme. I saved a new style.css file in the theme directory. Added all the necessary details.
    Now, I’m stuck on step 3 in that link you provided above. The Enqueue part which I’m not sure I am doing correctly.

    I created a functions.php file and I added this content into it:


    <?php
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    function my_theme_enqueue_styles() {

    $parent_style = ‘parent-style’; // This is ‘twentyfifteen-style’ for the Hitchcock 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’)
    );
    }

    **************
    But when I log onto my wordpress dashboard and go to my Themes, I see this message:

    Broken Themes
    The following themes are installed but incomplete.

    Name Description
    Hitchcock The parent theme is missing. Please install the “Hitchcock Child” parent theme.

    What am I doing wrong?
    Sorry, I’m really new to the Child Theme thing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Running Ads, Adsense, Etc.’ is closed to new replies.