WordPress.org

Ready to get started?Download WordPress

Forums

EvoLve
Child Theme Fixed (4 posts)

  1. cjc1867
    Member
    Posted 4 months ago #

    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

  2. cjc1867
    Member
    Posted 4 months ago #

    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

  3. cjc1867
    Member
    Posted 3 months ago #

    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?

  4. cjc1867
    Member
    Posted 3 months ago #

    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

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.