Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1275037
    Jan Hoogland
    Participant

    Hi

    I’m developing a website and the site is currently running on localhost. I already setup a childtheme, but now I want to add stylesheets in the <head> section and scripts in the footer section. Can u tell me how I can add these files?

    Thanks!

    Jan

    #1275069
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! Once you setup a child theme, you can find the style.css file on your child theme folder.

    To add Javascript scripts, you can add the following code into your functions.php in your child theme.

    
    function my_javascripts() { 
     <!--Add Your Javascript Below this line-->
     <script type="text/javascript" src="path.to/your/javascript.js"></script>
     <!--Do not modify anything below this line-->
     <?php
    }
    add_action('wp_footer','my_javascripts');
    

    Hope that helps.

  • <script> jQuery(function($){ $("#no-reply-1275037 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>