• cjc1867

    (@cjc1867)


    Hi
    This is a very nice theme but no support for a child theme.

    The functions.php file in the Library folder needs modifying slightly.

    Enqueuing all the scripts and styles has EVLJS but it is not defined anywhere….Why?

    Add this line of code to the function evolve_media()

    // I have added this to get it to work
      $EVLJS = get_template_directory_uri() . '/library/media/js';

    Now change all reference to EVLJS to $EVLJS within the library\functions.php file

    Mine is now working but not sure if anything else is needed but the theme is fixed…

    Colin

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter cjc1867

    (@cjc1867)

    Just found EVLJS is defined in library/evolve.php but it still points to the wrong directory for scripts and styles if a child theme is used.

    Can this be fixed in the theme’s next update?

    Colin

    Thread Starter cjc1867

    (@cjc1867)

    Just updated the theme to the latest version and now my child theme is broken again….

    My request has gone unnoticed so back to fixing it again…how annoying

    Why is the scripts and other files pointing to the wrong directory when using a child theme?

    Thread Starter cjc1867

    (@cjc1867)

    This line of code (line 50) is causing the problems:

    if ( get_stylesheet_directory() !== get_template_directory() ) define( 'EVLMEDIA', get_stylesheet_directory_uri(), true ); // Shortcut to point to the /media/ URI
    else define( 'EVLMEDIA', EVLLIBRARY . '/media', true ); // Shortcut to point to the /media/ URI

    The above code can be found in library => evolve.php scroll down to line 50.

    I have taken the If Else statement out and just used the following:

    define( 'EVLMEDIA', EVLLIBRARY . '/media', true ); // Shortcut to point to the /media/ URI

    So what is the IF Else statement doing?

    Also can this be fixed in the next update?

    Colin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child Theme Fixed’ is closed to new replies.