Word Press Theme Customiser and Child theme Function.php

First remove action of customizer then add your action with new function name. in your child-theme functions.php add_action( ‘init’, ‘remove_my_action’); function remove_my_action() { remove_action(‘customize_register’, ‘business_prime_settings_control’,10); } require_once dirname( __FILE__ ) . ‘/inc/business-prime-customizer.php’; in your child-theme/inc/business-prime-customizer.php change name of function and callback function business_prime_settings_control_child($wp_customize) { # here your all customizer settings code } add_action(‘customize_register’, ‘business_prime_settings_control_child’); Remove … Read more

why jquery is not loading in wordpress page?

There are two things you should try: WordPress loads jQuery in compatibility mode, so you will need to use the noconflict syntax, ex. jQuery(‘.text-white.follow’).plate();. More information: https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/ https://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/ If you are using a child theme, you need to call get_stylesheet_directory_uri() instead of get_template_directory_uri(). Parent theme assets are accessed using template, and child theme assets are … Read more

Adding css and js to a blank page created with custom template

In my theme functions.php at the end works for me: function themesCharles_enqueue_style() { wp_enqueue_style( ‘my-theme’, get_template_directory_uri() .’/myFiles/myStyle.css’, false ); } function themesCharles_enqueue_script() { wp_enqueue_script( ‘my-js’, get_template_directory_uri() .’/myFiles/myScript.js’, false ); } add_action( ‘wp_enqueue_scripts’, ‘themesCharles_enqueue_style’ ); add_action( ‘wp_enqueue_scripts’, ‘themesCharles_enqueue_script’ );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)