Child Theme for Hostmarks? (7 posts)

  1. J. Brown
    Posted 2 years ago #


    I am having some trouble creating a child theme for hostmarks. I did everything as directed and it shows up in my themes but is not importing anything from the parent. I checked that the import url is correct and still no go.

    I am wondering if I am missing something. Is there anything that needs to be done different then the standard instructions given in the WP codex?

    Any help is appreciated.

    site: http://www.abhyasayogacenter.com

  2. batharoy
    Posted 2 years ago #

    Can you post the child themes css file please?

  3. J. Brown
    Posted 2 years ago #

    At this point, I took everything out and just stripped it to this basic template(below) until I can figure out whats up. I also tried putting the full path for the import url but there is no difference. Appreciate you taking a moment.

    Theme Name: Hostmarks Child
    Theme URI: http://www.abhyasayogacenter.com/wp-content/themes/hostmarks-child
    Description: Hostmarks Child Theme
    Author: Hostmarks.com
    Author URI: http://hostmarks.com/
    Template: hostmarks


    @import url("../hostmarks/style.css");

    /* =Theme customization starts here
    ------------------------------------------------------- */

  4. batharoy
    Posted 2 years ago #

    That all looks good.
    Have you tried activating it when its empty just too see if it shows while viewing page source?

  5. J. Brown
    Posted 2 years ago #

    Yes. I have tried activating it but all I get is content with no theme.

  6. batharoy
    Posted 2 years ago #

  7. J. Brown
    Posted 2 years ago #

    Thanks. This does point me in the right direction. Definitely a wp_enqueue_style issue. I've been researching it and I'm still a little lost as to the function that needs to be added and if it goes in the parent or child theme folder.

    If you or anyone might be so kind to hook me up, I'd be much obliged
    This is in the parent theme functions.php:

     * Enqueue scripts & styles
    if ( ! function_exists( 'hostmarks_custom_scripts' ) ) :
    	function hostmarks_custom_scripts() {
    		wp_enqueue_script( 'hostmarks_custom_js', get_template_directory_uri() . '/library/js/scripts.js', array( 'jquery' ), '1.0.0' );
    		wp_enqueue_style( 'hostmarks_style', get_stylesheet_uri() );
    add_action('wp_enqueue_scripts', 'hostmarks_custom_scripts');

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic