Add following comments to style.css
/*! Theme Name: neuron Theme URI: https://themes.bdhostit.com/neuron/ Author: Shahadat Hossain Author URI: https://www.codexcafe.net/ Description: Demo Theme Version: 1.0.0 */
Add following comments to style.css
/*! Theme Name: neuron Theme URI: https://themes.bdhostit.com/neuron/ Author: Shahadat Hossain Author URI: https://www.codexcafe.net/ Description: Demo Theme Version: 1.0.0 */
function neuron_theme_files() { wp_enqueue_style('animate', get_template_directory_uri() .'/assets/css/animate.min.css', array(), '1.0', 'all' ); wp_enqueue_style('font-awesome', get_template_directory_uri() .'/assets/fonts/font-awesome/css/font-awesome.min.css', array(), '1.0', 'all' ); wp_enqueue_style('owl-carousel', get_template_directory_uri() .'/assets/css/owl.carousel.min.css', array(), '1.0', 'all' ); wp_enqueue_style('bootsnav', get_template_directory_uri() .'/assets/css/bootsnav.css', array(), '1.0', 'all' ); wp_enqueue_style('bootstrap', get_template_directory_uri() .'/assets/bootstrap/css/bootstrap.min.css', array(), '1.0', 'all' ); wp_enqueue_style('neuron-style', get_stylesheet_uri() ); wp_enqueue_script('bootstrap', get_template_directory_uri() .'/assets/bootstrap/js/bootstrap.min.js', array('jquery'), '1.0', true ); wp_enqueue_script('bootsnav', get_template_directory_uri() .'/assets/js/bootsnav.js', array('jquery'), '1.0', true ); wp_enqueue_script('owl-carousel', get_template_directory_uri() .'/assets/js/owl.carousel.min.js', array('jquery'), '1.0', true ); wp_enqueue_script('wow', get_template_directory_uri() .'/assets/js/wow.min.js', array('jquery'), '1.0', true ); wp_enqueue_script('ajaxchimp', get_template_directory_uri() .'/assets/js/ajaxchimp.js', array('jquery'), '1.0', true ); wp_enqueue_script('ajaxchimp-config', get_template_directory_uri() .'/assets/js/ajaxchimp-config.js', array('jquery'), '1.0', true ); wp_enqueue_script('neuron-script', get_template_directory_uri() .'/assets/js/script.js', array('jquery'), '1.0', true ); } add_action('wp_enqueue_scripts', 'neuron_theme_files');
wp_enqueue_style();
wp_enqueue_style(
string $handle,
string $src = ”,
array $deps = array(),
string|bool|null $ver = false,
string $media = ‘all’ )
wp_enqueue_script();
wp_enqueue_script(
string $handle,
string $src = ”,
array $deps = array(),
string|bool|null $ver = false,
bool $in_footer = false )
get_template_directory_uri();
Retrieve theme directory URI on functions.php).
echo get_template_directory_uri();
Retrieve theme directory URI static.
Download Neuron template [link]
Neuron Theme Demo [link]
Here we will show step by step WordPress theme development with Neuron Template.
Initial Setup
Now we can activate the theme (Neuron) in dashboard at Appearance > themes
Neuron Menu
Neuron Slider
Neuron Intro Area Features (Welcome to the Neuron Finance)
Neuron Services (We Provide Huge Range of Services)
Neuron Widgets
In header.php
wp_nav_menu( array( 'theme_location' => 'primary', 'walker' => new Child_Wrap() ) );
Then in functions.php
class Child_Wrap extends Walker_Nav_Menu { function start_lvl(&$output, $depth = 0, $args = array()) { $indent = str_repeat("\t", $depth); $output .= "$indent<ul class=\"my-class\">\n"; } function end_lvl(&$output, $depth = 0, $args = array()) { $indent = str_repeat("\t", $depth); $output .= "$indent</ul>"; } }
This will replace the class “sub-menu” to “my-class”.