# Need to create custom static page as home page

**URL:** https://meta.discourse.org/t/need-to-create-custom-static-page-as-home-page/200821
**Category:** Development
**Created:** [August 18, 2021, 10:19am UTC](https://meta.discourse.org/t/need-to-create-custom-static-page-as-home-page/200821 "2021-08-18T10:19:26Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Rajeev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rajeev/32/231379_2.png) [@Rajeev](https://meta.discourse.org/u/Rajeev)
#### Post date: [August 18, 2021, 10:19am UTC](https://meta.discourse.org/t/need-to-create-custom-static-page-as-home-page/200821/1 "2021-08-18T10:19:26Z")

</div>

Hi,  
I need a way by which I can create a **custom static page, use jquery over it for calling third-party API** and use it as a home page for my site. I have already used two plugins which are as follows:

1. **procourse-static-pages**
2. **discpage with discourse-home-page plugin**

But none of above fulfill my requirement. If I use the first one then, I am not able to use any js code or jquery on the page. If I go for the second one then, It creates a category for the static page and further use topic under this created category as static page which is not so reliable. Is there any other way to do this?

Feedback appreciated  
Thanks

---

<div class="post-metadata">

### Author: ![4ong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/4ong/32/186618_2.png) [@4ong](https://meta.discourse.org/u/4ong)
#### Post date: [August 19, 2021, 2:54pm UTC](https://meta.discourse.org/t/need-to-create-custom-static-page-as-home-page/200821/2 "2021-08-19T14:54:09Z")

</div>

Hi @Rajeev  
You can try [Landing Pages Plugin 🛩](https://meta.discourse.org/t/landing-pages-plugin/180967) - link to code  
[GitHub - paviliondev/discourse-landing-pages: Adds landing pages to Discourse · GitHub](https://github.com/paviliondev/discourse-landing-pages.git)

There is a way to add jquery there

---

<div class="post-metadata">

### Author: ![Rajeev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rajeev/32/231379_2.png) [@Rajeev](https://meta.discourse.org/u/Rajeev)
#### Post date: [August 26, 2021, 11:17am UTC](https://meta.discourse.org/t/need-to-create-custom-static-page-as-home-page/200821/3 "2021-08-26T11:17:59Z")

</div>

Thanks for feedback @4ong .

I have tried this plugin but getting challenges with it. Please have a look at the screenshots.

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/5/45788c785f2bc8251f61a9f6bde68cb07d4e9aae.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/1/21951908c86d5a57d5ac736181d4a2feaca8d3de.png)

---

<div class="post-metadata">

### Author: ![4ong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/4ong/32/186618_2.png) [@4ong](https://meta.discourse.org/u/4ong)
#### Post date: [August 26, 2021, 11:29am UTC](https://meta.discourse.org/t/need-to-create-custom-static-page-as-home-page/200821/4 "2021-08-26T11:29:07Z")

</div>

Hi @Rajeev  
I may be not the best one to help with localhost as I’ve never used this combination.  
And don’t have time to check just now. It works well with my production domain on server.

@angus Maybe you know a quick solution in this case? Thank you!

---

<div class="post-metadata">

### Author: ![4ong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/4ong/32/186618_2.png) [@4ong](https://meta.discourse.org/u/4ong)
#### Post date: [August 27, 2021, 9:13pm UTC](https://meta.discourse.org/t/need-to-create-custom-static-page-as-home-page/200821/5 "2021-08-27T21:13:58Z")

</div>

Hi @Rajeev I will be able to check it tomorrow - I’m back to my additional localhost development 🙂

---

<div class="post-metadata">

### Author: ![4ong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/4ong/32/186618_2.png) [@4ong](https://meta.discourse.org/u/4ong)
#### Post date: [August 28, 2021, 8:07pm UTC](https://meta.discourse.org/t/need-to-create-custom-static-page-as-home-page/200821/6 "2021-08-28T20:07:29Z")

</div>

Hi @Rajeev  
I’ve tested on localhost and the plugin works correctly

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/7/97da593e2725364e38cb9ba1d08fda64d1faa611.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/2/f26f81329896cb059dc6be19c6f689b894b4dbf9.png)

So can you describe more about the problem that you have - maybe we will find a solution together.

---

<div class="post-metadata">

### Author: ![Rajeev](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rajeev/32/231379_2.png) [@Rajeev](https://meta.discourse.org/u/Rajeev)
#### Post date: [August 31, 2021, 4:36am UTC](https://meta.discourse.org/t/need-to-create-custom-static-page-as-home-page/200821/7 "2021-08-31T04:36:23Z")

</div>

@4ong I appreciate that you are concerning about my issue. I want to know how you setup your local host. Are you running it as docker image or standalone application by ruby server ?. Because I am running it as standalone by ember and ruby server.

Thanks

---

<div class="post-metadata">

### Author: ![4ong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/4ong/32/186618_2.png) [@4ong](https://meta.discourse.org/u/4ong)
#### Post date: [August 31, 2021, 7:45am UTC](https://meta.discourse.org/t/need-to-create-custom-static-page-as-home-page/200821/8 "2021-08-31T07:45:03Z")

</div>

Standalone in Ubuntu (WSL2). You can also try Docker way like described here:

> [@Install Discourse for development using Docker](https://meta.discourse.org/t/beginners-guide-to-install-discourse-for-development-using-docker/102009):
>
> Developing using Docker Since Discourse runs in Docker, you should be able to run Discourse directly from your source directory using a Discourse development container. white_check_mark Pros: No need to install any system dependencies, no configuration needed at all for setting up a development environment quickly. x Cons: Will be slightly slower than the native dev environment on Ubuntu, and much slower than a native install on MacOS. See also [Developing Discourse using a Dev Container](https://meta.discourse.org/t/developing-discourse-using-a-dev-container/336366) …

---

<div class="post-metadata">

### Author: ![yhh9xdq7dc](https://avatars.discourse-cdn.com/v4/letter/y/f17d59/32.png) [@yhh9xdq7dc](https://meta.discourse.org/u/yhh9xdq7dc)
#### Post date: [March 11, 2023, 8:59am UTC](https://meta.discourse.org/t/need-to-create-custom-static-page-as-home-page/200821/9 "2023-03-11T08:59:07Z")

</div>

I know it’s late to reply, but did you merge the database? Perhaps this can serve as a solution for others
