Option needed to add custom JS in the theme

  • Posted in : cvCard WP
  • isaumya
    Participant

    Hi, currently in the theme you provide 2 optiontion for CSS.
    1.Entering custom css as internal css
    2. or to insert a custom css file as external css

    But for JS you just have only 1 option, i.e insert custom js files as external js. There is no way to insert js functions as internal js (like the css) and also make sure that the js functions load in wp_footer, because adding them in wp_header will cause serious site load time issue.

    ahmetsali
    Keymaster

    Hi,

    you can also write internal js code in External JS box, as;

    <script type='text/javascript'>
    jQuery(document).ready(function($) {  
       alert('hey');
    });
    </script>
    

    Also we do add custom js codes to the end of the page. Thanks for the feedback.

    isaumya
    Participant

    Hmm. Thanks. This was not mention on the theme that the box support internal js too. Good to know.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register