using a child theme, after enqueing my js file it is loading before jquery
using a child theme, after enqueing my js file it is loading before jquery
using a child theme, after enqueing my js file it is loading before jquery
The problem was because the parent PAID template does not work with the customizer page and use a submenu page to load options. Because just a bad user experience, I lost my time.
The parent theme is missing. Please install the “bp-default” parent theme
menu, header and footer is not shown in the appearance after creating the child theme
On line 18 of your child theme’s functions.php you are enqueuing main.js with get_template_directory_uri(). That function is returning the path to you’re parent theme. Try replacing it with get_stylesheet_directory_uri(), which will return the path to your child theme’s root directory. I can’t blame you for not realizing the difference though. The developer.wordpress.org entry for get_template_directory_uri() … Read more
Problems with child theme
Child Theme Can’t Find Parent In a Folder
Enqueuing multiple stylesheets with a child theme
Add the following to your style.css. Using Flex to align and space the items in the header. #masthead .wrap { display: flex; justify-content: space-between; } .navigation-top a { width:100%; }
Actually my mistake, I was overriding the translation of the parent theme using it’s text domain for child theme, while I should have defined a different text domain for child theme and load both domains into child theme’s functions.php like this: add_action( ‘after_setup_theme’, ‘mr_load_textdomain’ ); function mr_load_textdomain(){ //for child load_theme_textdomain (MR_DOMAIN,get_stylesheet_directory().’/languages’); //for parent load_theme_textdomain (ET_DOMAIN,get_template_directory().’/lang’); … Read more