Generate PO File

You can use POedit to generate the PO file from source code: https://codex.wordpress.org/User:Skippy/Creating_POT_Files The problem for me is that my WordPress installation is running on an Amazon Linux server, which does not have a package in the repos for POedit and I couldn’t figure out how to install POedit on my server (only on my … Read more

Creating a child theme – functions.php code issue

What you miss is that in your code snippet above you failed to name your own parent style. In the code, you posted in the 4th line from above need customization according to the name of your actual parent style. So as an example this line: $parent_style=”parent-style”; // This is ‘twentyfifteen-style’ for the Twenty Fifteen … Read more

Parent theme CSS overriding child CSS rules

After looking at your parent theme’s source code related to enqueuing styles, the original code you posted looks close. You just need to use the handle from the parent theme, adios-main-style. Add wpse244754_child_theme_enqueue_styles() to your child theme’s functions.php file: add_action( ‘wp_enqueue_scripts’, ‘wpse244754_child_theme_enqueue_styles’ ); function wpse244754_child_theme_enqueue_styles() { // Enqueue the parent theme’s stylesheet wp_enqueue_style( ‘adios-main-style’, get_template_directory_uri() … Read more

Different ways to load child theme css

There’s nothing wrong with css rules ending up in your inspector twice. In many cases you want the first version, loading both parent and child styles. After all, in that case your child style sheet only needs to have the styles you want different from the parent. The browser will correctly apply the child rule … Read more

I have some doubts regarding how to implement child theme

The first function should be there in your parent theme functions.php file. Parent Theme Code <?php if ( ! function_exists( ‘my_theme_enqueue_scripts’ ) ) { function my_theme_enqueue_scripts() { add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ ); function my_theme_enqueue_styles() { wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ ); } } ?> Child Theme Code Now place the following code in your child theme. … Read more