Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder WAINGRO's Avatar
    Join Date
    Feb 2016
    Posts
    142
    Thanks
    20
    Thanked 5 Times in 5 Posts

    How to include multiple stylesheets in functions.php

    Hi all I cant seem to use more than 1 stylesheet inside my wordpress functions.php file.. Anyone? As you can see I enqueued 2 stylesheets. The first one is working just fine (ex.css), but the second is not working at all... Here is my code:

    Code:
    <?php 
    	function ExTheme1234_script() {
    		wp_enqueue_style ('customstyle', get_template_directory_uri() . '/CSS/ex.css', array(), '1.0.0', 'all' );
    			wp_enqueue_style ('skeleton', get_template_directory_uri() . '/CSS/skeleton.css', array(), '1.0.0', 'all' );
    	}
    	
    	add_action( 'wp_enqueue_scripts', 'ExTheme1234_script');
    	
    	
    	
    	function ExTheme_setupp() {
    		
    	add_theme_support('menus');
    	
    	register_nav_menu('primary', 'Primary Header Navigation');
    	register_nav_menu('secondm', 'Secondary Header Navigation');
    	
    	}
    	add_action('init', 'ExTheme_setupp');
    	
    ?>
    "Webdesign: painting on canvas with the use of mere digits and punctuation." ~ WAINGRO, 2016

  2. #2
    Regular Coder WAINGRO's Avatar
    Join Date
    Feb 2016
    Posts
    142
    Thanks
    20
    Thanked 5 Times in 5 Posts
    Nvm I fixed it myself, must have made some typo as it is working now
    "Webdesign: painting on canvas with the use of mere digits and punctuation." ~ WAINGRO, 2016


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •