Title: ardan's Replies | WordPress.org

---

# ardan

  [  ](https://wordpress.org/support/users/ardan/)

 *   [Profile](https://wordpress.org/support/users/ardan/)
 *   [Topics Started](https://wordpress.org/support/users/ardan/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ardan/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ardan/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ardan/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ardan/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ardan/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [functions.php in child theme folder ends in fatal error](https://wordpress.org/support/topic/functionsphp-in-child-theme-folder-ends-in-fatal-error/)
 *  Thread Starter [ardan](https://wordpress.org/support/users/ardan/)
 * (@ardan)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/functionsphp-in-child-theme-folder-ends-in-fatal-error/#post-5780957)
 * marked as solved
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [functions.php in child theme folder ends in fatal error](https://wordpress.org/support/topic/functionsphp-in-child-theme-folder-ends-in-fatal-error/)
 *  Thread Starter [ardan](https://wordpress.org/support/users/ardan/)
 * (@ardan)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/functionsphp-in-child-theme-folder-ends-in-fatal-error/#post-5780862)
 * okay, got it working now..
    I had to change the path somehow.. didnt know how..
   but figured it out..
 * I included
 *     ```
       define('MD_CHILDTHEME_NAME', 'flex_child');
       define('MD_CHILDTHEME_DIR', get_stylesheet_directory());
       define('MD_CHILDTHEME_URI', get_stylesheet_directory_uri());
       ```
   
 * and pointed to the correct theme_path 🙂
 *     ```
       wp_enqueue_style( MD_THEME_NAME.'-generate', <strong>MD_CHILDTHEME_URI</strong> . '/assets/css/css-generate.php', '', '', 'all' );
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [functions.php in child theme folder ends in fatal error](https://wordpress.org/support/topic/functionsphp-in-child-theme-folder-ends-in-fatal-error/)
 *  Thread Starter [ardan](https://wordpress.org/support/users/ardan/)
 * (@ardan)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/functionsphp-in-child-theme-folder-ends-in-fatal-error/#post-5780846)
 * I know exactly what css statement I need to edit… so, no worries there
 * My child_theme/functions.php already only contained this:
 *     ```
       // Remove the default Thematic blogtitle function
       function remove_md_theme_scripts() {
           remove_action('wp_enqueue_scripts','md_theme_scripts',3);
       }
       // Call 'remove_thematic_actions' (above) during WP initialization
       add_action('init','remove_md_theme_scripts');
   
       if(!function_exists('md_theme_scripts_child')) {
   
           function md_theme_scripts_child() {
               wp_enqueue_style( MD_THEME_NAME, get_stylesheet_uri(), '', '', 'all' );
   
               wp_enqueue_style( MD_THEME_NAME.'-generate', MD_THEME_URI . '/assets/css/css-generate.php', '', '', 'all' );
               wp_enqueue_style( MD_THEME_NAME.'-custom', MD_THEME_URI . '/assets/css/custom.css', '', '', 'all' );
   
               wp_enqueue_script( MD_THEME_NAME.'-bootstrap', MD_THEME_URI.'/assets/js/vendor/bootstrap.js', array('jquery'), NULL, true );
   
               wp_enqueue_script( MD_THEME_NAME.'-plugins', MD_THEME_URI.'/assets/js/vendor/plugins.js', array('jquery'), NULL, true );
               wp_enqueue_script( MD_THEME_NAME, MD_THEME_URI.'/assets/js/theme.js', array('jquery'), NULL, true );
   
               if( is_singular() && comments_open() ){
                   wp_enqueue_script( 'comment-reply' );
               }
           }
       	add_action('wp_enqueue_scripts','md_theme_scripts_child', 3);
       ```
   
 * But wordpress still only uses the css-generate.php from “parent_theme/assets/
   css/css-generate.php”
 * this is the original part of the orig parent functions.php
 *     ```
       if(!function_exists('md_theme_scripts')) {
   
           function md_theme_scripts() {
               wp_enqueue_style( MD_THEME_NAME, get_stylesheet_uri(), '', '', 'all' );
   
               wp_enqueue_style( MD_THEME_NAME.'-generate', MD_THEME_URI . '/assets/css/css-generate.php', '', '', 'all' );
               wp_enqueue_style( MD_THEME_NAME.'-custom', MD_THEME_URI . '/assets/css/custom.css', '', '', 'all' );
   
               wp_enqueue_script( MD_THEME_NAME.'-bootstrap', MD_THEME_URI.'/assets/js/vendor/bootstrap.js', array('jquery'), NULL, true );
   
               wp_enqueue_script( MD_THEME_NAME.'-plugins', MD_THEME_URI.'/assets/js/vendor/plugins.js', array('jquery'), NULL, true );
               wp_enqueue_script( MD_THEME_NAME, MD_THEME_URI.'/assets/js/theme.js', array('jquery'), NULL, true );
   
               if( is_singular() && comments_open() ){
                   wp_enqueue_script( 'comment-reply' );
               }
           }
           add_action( 'wp_enqueue_scripts', 'md_theme_scripts' );
   
       }
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [functions.php in child theme folder ends in fatal error](https://wordpress.org/support/topic/functionsphp-in-child-theme-folder-ends-in-fatal-error/)
 *  Thread Starter [ardan](https://wordpress.org/support/users/ardan/)
 * (@ardan)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/functionsphp-in-child-theme-folder-ends-in-fatal-error/#post-5780821)
 * Hey Thanks for your answer!
    The instructions said, the files in the child theme
   REPLACE the once in the parent theme..
 * What do I have to do, if I want wordpress to load ONLY the file
 * **child_theme\assets\css\css-generate.php**
    and not **parent_theme\assets\css\
   css-generate.php** ?
 * What do I need to change in the child_theme functions.php ? (without touching
   the parent theme)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Responsive Lightbox & Gallery] Responsive lightbox suddenly stops to work](https://wordpress.org/support/topic/responsive-lightbox-suddenly-stops-to-work/)
 *  [ardan](https://wordpress.org/support/users/ardan/)
 * (@ardan)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/responsive-lightbox-suddenly-stops-to-work/#post-5255320)
 * it seems you figured it out? what was the problem?
 * mine stopped working as well..
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TablePress - Tables in WordPress made easy] Insert image dialogue not showing catgories of other plugin](https://wordpress.org/support/topic/insert-image-dialogue-not-showing-catgories-of-other-plugin/)
 *  Thread Starter [ardan](https://wordpress.org/support/users/ardan/)
 * (@ardan)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/insert-image-dialogue-not-showing-catgories-of-other-plugin/#post-5181590)
 * Hey Tobias,
 * thanks for the very quick response!
    Too bad you haven’t had the chance to integrate
   it yet.. Will have to try to find the image withing like hundred of images …
 * Any idea on when you might be able to integrate the new library?
    weeks, months?
 * best
    daniel

Viewing 6 replies - 1 through 6 (of 6 total)