Functions.php file doesn't read stylesheet in wordpress -
i'm creating wordpress theme myself, functions.php doesn't work properly. think there lot posts of question, can't find proper one.
how should fix ?
my code:
<?php // register custom navigation walker require_once('wp_bootstrap_navwalker.php'); register_nav_menus( array( 'primary' => __( 'pagrindinis menu', 'harionew' ), ) ); function apdaila_scripts() { wp_enqueue_style( 'blain-basic-style', get_stylesheet_uri() ); wp_enqueue_style( 'apdaila-bootstrap-style', get_stylesheet_directory_uri()."/css/bootstrap.min.css", array('apdaila-fonts','apdaila-layout') ); wp_enqueue_style( 'apdaila-main-style', get_stylesheet_directory_uri()."/css/main.css", array('apdaila-fonts','apdaila-layout') ); wp_enqueue_script('apdaila-collapse', get_template_directory_uri() . '/js/collapse.js', array('jquery') ); wp_enqueue_script( 'apdaila-bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery') ); wp_enqueue_script( 'apdaila-jquery', get_template_directory_uri() . '/js/jquery-1.12.0.min.js', array('jquery') ); } add_action('wp_enqueue_script','apdaila_scripts'); ?>
you missed 's' in hook wp_enqueue_scripts should add_action('wp_enqueue_scripts','apdaila_scripts');
Comments
Post a Comment