how to create template path for external (include) .js file

Use wp_enqueue_script(), hooked in via an appropriate action hook callback. wp_enqueue_script( // Script handle ‘someScript’, // URL get_template_directory_uri() . ‘/js/someScript.js’, // Dependencies array( ‘jquery’ ), // Version ‘2.4’, // Output in footer? false ); For example: function wpse72720_enqueue_scripts() { if ( ! is_admin() ) { wp_enqueue_script( ‘mathUtils’, get_template_directory_uri() . ‘/js/mathUtils.js’, array(), ”, false ); wp_enqueue_script( … Read more

Child theme template file will not load

This is a basic WordPress question, please get familiar with theme theming concepts. Basic theme: https://codex.wordpress.org/Theme_Development Child themes: https://codex.wordpress.org/Child_Themes Theme hierarchy Parent theme style.css /* Theme Name: Twenty Fifteen Theme URI: https://wordpress.org/themes/twentyfifteen/ Author: the WordPress team Author URI: https://wordpress.org/ Description: Twenty Fifteen Version: 1.3 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html … Read more

Updating modified templates

Yes, it’s about to check changes after updates of main theme, mostly updates goes to core of theme, not files like single.php etc.. but when it’s go this way, you need some Diff program. Check this out: https://stackoverflow.com/questions/25874018/comparing-the-contents-of-two-files-in-sublime-text

Force all images to full size in page template

This code works, although I suspect that it could be more efficient – or replaced by a better filter. I modified this code from the answer to this question, which was the best choice out of all the googles I spent hours trying out.enter link description here You will need to change the ‘full’ to … Read more