Support » Themes and Templates » Theme Astrid child

  • Resolved Tanzi001


    I have made a child theme for wordpress theme Astrid
    folder astrid Child > .css & php
    astrid.css contains:
    Theme Name: Astrid Child Theme
    Description: A child theme for the Astrid WordPress theme.
    Author: Tanzi
    Template: astrid
    Version: 1.0.0
    @import url (“../astrid/style.css”);

    and astrid.php
    add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );
    function enqueue_parent_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
    For the most part it meshed across except for header style and woo commerce products. The products are in the woocommerce admin area but do not come up on my website under the category, also no sidebar.
    Help? any clues? it’s not permalinks of plugins
    Thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • /* this fixed the products
    function theme_enqueue_styles() {

    $parent_style = ‘parent-style’;

    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 )
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    /* but still no side bar…anyone?

    I realized that the sidebar widgets didn’t carry over so I added them in manually.
    then I found
    * Sidebar
    * This template can be overridden by copying it to yourtheme/woocommerce/global/sidebar.php.
    * HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer).
    * will need to copy the new files to your theme to maintain compatibility. We try to do this.
    * as little as possible, but it does happen. When this occurs the version of the template file will.
    * be bumped and the readme will list any important changes.
    * @see
    * @author WooThemes
    * @package WooCommerce/Templates
    * @version 1.6.4

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit; // Exit if accessed directly

    get_sidebar( ‘shop’ ); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme Astrid child’ is closed to new replies.