1
vote
1answer
28 views

changing function wp_register

how can i change function in general-template.php without affecting this core file on this: if ( ! is_user_logged_in() ) { if ( get_option('users_can_register') ) $link = $before . '<a ...
0
votes
1answer
75 views

Trying to register script in footer

My problem is the script is not registering in the footer it, is just disappearing, although the jquery.js does show up in the head. I have the following code in my theme's functions.php file: ...
0
votes
0answers
59 views

WP_register_script() - odd behavior or bug [closed]

I've got WordPress Theme and WordPress Plugin. Both use colorpicker.js file. Theme has this in functions.php (for admin only): wp_register_script('jquery_colorpicker_script', ...
0
votes
2answers
1k views

How do I get a child theme to load scripts from the parent theme?

Pretty new to WordPress functions, so apologies if this is basic stuff. I've designed a parent theme that registers and enqueues two scripts like so: if ( !function_exists( 'scherzo_scripts' ) ) ...