| Server IP : 208.109.34.209 / Your IP : 216.73.217.134 Web Server : Apache System : Linux 209.34.109.208.host.secureserver.net 5.14.0-687.29.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 23 16:18:48 EDT 2026 x86_64 User : oceanproject ( 1012) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/oceanproject/public_html/wp-content/themes.old/reda-child/ |
Upload File : |
<?php
/**
* Enqueues child theme stylesheet, loading first the parent theme stylesheet.
*/
function reda_custom_enqueue_child_theme_styles() {
wp_enqueue_style('reda-child-style', get_stylesheet_uri(), array('reda-main-stylesheet'));
}
add_action('wp_enqueue_scripts', 'reda_custom_enqueue_child_theme_styles', 11);
add_filter('acf/settings/load_json', 'reda_acf_settings');
function reda_acf_settings($paths) {
$paths = array(get_template_directory() . '/acf-json');
if(is_child_theme()){
$paths = array(
get_stylesheet_directory() . '/acf-json',
get_template_directory() . '/acf-json'
);
}
return $paths;
};
?>