Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Where to store and include .js files?
#4
Hi johnywhy,

You put it (or better said: you call it) between the <head> and </head> tags in the header.inc.php

Replace your-css.css with the css you need in your website
Replace your-javascript.js with the javascript you need in your website

Example:

Code:
<head>
 <title>your-title</title>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <link rel="stylesheet" type="text/css" href="<?php get_theme_url(); ?>/assets/css/your-css.css">
 <script src="<?php get_theme_url(); ?>/assets/js/jquery-1.7.min.js"></script>
 <script src="<?php get_theme_url(); ?>/assets/js/your-javascript.js"></script>
</head>

F.
Reply


Messages In This Thread
RE: Where to store and include .js files? - by Felix - 2020-04-17, 23:03:53



Users browsing this thread: 1 Guest(s)