Jump to content
John Olsson

Old child-theme

Recommended Posts

John Olsson

I think I have and old child-theme, and there is a line where it creates a timeout/404. It's in the functions.php.

But I am worried to remove it, I tried that, and the whole child-theme broke and crached.

Any ideas..? Does anyone have a link to a clean child-theme, best practise here?

I think it's this code:

add_action( 'wp_enqueue_scripts', 'enqueue_child_scripts' );
function enqueue_child_scripts() {
    
  pl_script( 'stickykit', get_stylesheet_directory_uri() . '/_plugins/stickykit/stickykit.js', array('jquery'), false, true );

  pl_script( 'pl-pagelines-theme', get_stylesheet_directory_uri() . '/pagelines.js', array('jquery'), false, true );
  //  wp_enqueue_style( 'pagelines-framework-child', get_stylesheet_directory_uri() . '/build.css' );
}

 

0F5F0970-F6A8-4B2C-BA62-73BA3C3D6EBB.png

Share this post


Link to post
Share on other sites
edgarcheverier

Hi,

Since when you have this script error?
This could happen because an external plugin is causing a conflict with the PageLines script, or did you add any javascript code?

Share this post


Link to post
Share on other sites
John Olsson

I really don't know when it started to happen.. I have not added any script no..

Share this post


Link to post
Share on other sites
edgarcheverier

ok, can you please try to deactivate all the external plugins and refresh the page?
And let's see if you still have this error in the console.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×