Home Forums Saraswati Blog Child theme

Viewing 1 reply thread
  • Author
    Posts
    • #4974
      gingram
      Participant

      I’m trying to create a child theme and having trouble with code to call up stylesheets in functions.php. I’m pulling in saraswati-blog’s style.css but the other stylesheets for the sidebar, etc is not coming through. Do you have recommended code for calling the stylesheets for a child theme? I am not a coder which is why I’m having trouble with this. Thanks for any help.
      This is what I’m using now.
      <?php
      add_action( ‘wp_enqueue_scripts’, ‘saraswati_blog_child_enqueue_styles’ );
      function my_theme_enqueue_styles() {
      wp_enqueue_style( ‘saraswati-blog-child-style’, get_stylesheet_uri(),
      array( ‘saraswati-blog-style’),
      wp_get_theme()->get(‘1.0.0’) // this only works if you have Version in the style header
      );
      }
      ?>

    • #5049
      arjun
      Keymaster

      you can check our child theme, we already build for this theme https://wordpress.org/themes/quick-blog/ ,https://wordpress.org/themes/blog-mag/ , please check on this themes

      • This reply was modified 3 years, 9 months ago by arjun.
Viewing 1 reply thread
  • You must be logged in to reply to this topic.