• Resolved Clickers

    (@simpleclickers)


    Hi guys,

    Congrats on such a great theme which is really easy to use, it’s beautifuly designed with options to customize almost anything and all that in free theme.
    Since I’m newbie with no previous experience I need your help how to create child theme.?
    I can handle style.css but functions I dont think that I could solve that without your help.
    And I got confused when I saw scrpt below. Honestly I never saw something like that. Most of themes have sort of classic script where I could figuere it out what script or style I should enqueue in my child theme.

    /*Define Constants for this theme*/
    define( ‘COSMOSWP_VERSION’, ‘1.1.2’ );
    define( ‘COSMOSWP_THEME_NAME’, ‘cosmoswp’ );
    define( ‘COSMOSWP_PATH’, get_template_directory() );
    define( ‘COSMOSWP_URL’, get_template_directory_uri() );
    define( ‘COSMOSWP_SCRIPT_PREFIX’, ( defined( ‘SCRIPT_DEBUG’ ) && SCRIPT_DEBUG ) ? ” : ‘.min’ );
    /**
    * Require init.
    */
    require trailingslashit( COSMOSWP_PATH ).’inc/init.php’;

    Can you please help me with that so I can make child theme.?
    Thank you in advance and once again thank you for CosmosWP it’s really great.

    Cheers,

    Dragan

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @simpleclickers,

    Thank you for your feedback.

    Creating a child theme is normal as all themes for CosmosWP, you can follow this guideline Child Themes and Its Importance to create a child theme.

    There are also Child theme generator plugin you can use.

    If you are searching for code wp_enqueue_scripts or ( most of themes functions.php like you said ), it is on cosmoswp/inc/default-hooks.php#L252

    Let me know if you have further query.

    Best Regards!

    Thread Starter Clickers

    (@simpleclickers)

    Hi,
    Thank you for your reply. I’m just trying to solve that on my own and I did something without plugin. Still have some troubles since pages are not showing up in my child theme which probably means that something was not enqueued properly. I’ll find line 252 and I hope that I will make it. There is always option to use plugin for creating my child theme. Thank you one more time. Cheers guys

    Thread Starter Clickers

    (@simpleclickers)

    I got it. Its working now.
    If you agree I will mark this topic as resolved.
    Thank you one more time and keep up with briliant work.
    Cheers

    • This reply was modified 4 years, 10 months ago by Clickers. Reason: Update
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child Theme’ is closed to new replies.