# How to use the _main.js in the /assets folder

**URL:** https://discourse.roots.io/t/how-to-use-the--main-js-in-the-assets-folder/127
**Category:** uncategorized
**Created:** 2013-08-23T11:26:56Z
**Posts:** 2

## Post 1 by @ak_47 — 2013-08-23T11:26:56Z

Hi guys,

So I’ve got the latest Roots theme with bootstrap 3 but I didnt understand where have the app.css and main.js files gone (for me to add in my custom CSS and JS)

Also, when I do a search on the website, which php page is loaded? The output seems a bit oddly formatted so I would need to know the php file that’s called after a search

---

## Post 2 by @anon66789415 — 2013-08-23T12:55:53Z

You’ll need to add these two lines to /libs/scripts.php. I’ve renamed \_main.js to main.js and set Grunt to compile and minify to main.min.js. If you do not do that then make sure you change the name below to \_main.js.

```
wp_register_script('main_scripts', get_template_directory_uri() . '/assets/js/main.min.js', false, null, true);
wp_enqueue_script('main_scripts');
```

To control search create a file in the root of the theme called search.php. You can then choose a template or customise your own.
