badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Reply To: Changing seach behaviour in \inc\structure\searchform-extension.php

#24203

Hi pavlo.golub,

<?php 
//child theme functions.php 
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') );
}

This is the correct way. If there is a function hook then you have to unhook the functions first and then hook the functions in child theme and then customize the code.

Thank You!