• Wondering if anyone can help me–

    I want to remove the author name, date and category tag from all posts.

    I created an artpop child theme with a function.php and style.css. But no matter what I do either in php or in the Child Theme’s stylesheet, I see no changes on my site. Is there a specific line of code for the Artpop theme that I need to be using in the css?

    I also wondered whether I enqueued the parent stylesheet in my Child Theme correctly?:

    <?php
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    function my_theme_enqueue_styles() {
        $parenthandle = 'artpop-style';
        $theme = wp_get_theme();
        wp_enqueue_style( $parenthandle, get_template_directory_uri() . '/style.css', 
            array(),  // if the parent theme code has a dependency, copy it to here
            $theme->parent()->get('Version')
        );
        wp_enqueue_style( 'child-style', get_stylesheet_uri(),
            array( $parenthandle ),
            $theme->get('Version')
        );
    }
    ?>

The topic ‘Artpop Child Theme’ is closed to new replies.