init-front.php'de şu kısımda
if ( ! function_exists( 'hu_styles' ) ) {
function hu_styles() {
$_main_style = hu_is_checked('responsive') ? 'main' : 'main-not-responsive';
//registered only, will be loaded as a dependency of the wp style.css
wp_register_style(
'hueman-main-style',
sprintf('%1$s/assets/front/css/%2$s%3$s.css',
get_template_directory_uri(),
$_main_style,
hu_is_checked('minified-css') ? '.min' : ''
),
array(),
( defined('WP_DEBUG') && true === WP_DEBUG ) ? time() : HUEMAN_VER,
'all'
);
//This function loads the main theme stylesheet or the child theme one
//1) Not mandatory if only the main theme is activated. But mandatory if a child theme is used (otherwise the child theme style won't be loaded)
//2) must be loaded as a dependency of 'hueman-main', to make it easier to override the main stylesheet rules without having to increase the specificicty of each child theme css rules
wp_enqueue_style(
'theme-stylesheet',
get_stylesheet_uri(),
array('hueman-main-style'),
( defined('WP_DEBUG') && true === WP_DEBUG ) ? time() : HUEMAN_VER,
'all'
);
//can be dequeued() if already loaded by a plugin.
//=> wp_dequeue_style( 'hueman-font-awesome' )
wp_enqueue_style(
'hueman-font-awesome',
sprintf('%1$s/assets/front/css/%2$s',
get_template_directory_uri(),
hu_is_checked('minified-css') ? 'font-awesome.min.css' : 'dev-font-awesome.css'
),
array( 'theme-stylesheet' ),
( defined('WP_DEBUG') && true === WP_DEBUG ) ? time() : HUEMAN_VER,
'all'
);
}
}
add_action( 'wp_enqueue_scripts', 'hu_styles' );
peki bir şey sorabailirmiyim ? bu kodu o sayfadan nasıl kesip footera ekleyebilirim ? kestim ama sayfa bozuldu. sanırım yanlış yerden aldım kod bilgim olmadığı için. yardım rica ederim