# Issue installing plugin

**URL:** https://meta.discourse.org/t/issue-installing-plugin/278514
**Category:** Development
**Created:** [September 11, 2023, 5:50am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514 "2023-09-11T05:50:03Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Shatabdi\_Dash](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shatabdi_dash/32/317462_2.png) [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)
#### Post date: [September 11, 2023, 5:50am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/1 "2023-09-11T05:50:03Z")

</div>

I am facing an issue. my plugin is installed and enabled perfectly. but not working.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 11, 2023, 6:26am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/2 "2023-09-11T06:26:48Z")

</div>

Can you go into a little more detail? What plugin are you trying to install, and what steps have you taken so far?

---

<div class="post-metadata">

### Author: ![Shatabdi\_Dash](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shatabdi_dash/32/317462_2.png) [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)
#### Post date: [September 11, 2023, 6:39am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/4 "2023-09-11T06:39:18Z")

</div>

I am creating a custom header plugin. But its not working  
My installation javascript coding is done.

How can I enable my plug in. I didnt get where is the issue.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [September 11, 2023, 7:32am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/5 "2023-09-11T07:32:12Z")

</div>

If you’re creating a custom one then you may want to go into even more detail about what you’re attempting to do. Is this on a dev install, or a live site? Do you know the plugin works?

---

<div class="post-metadata">

### Author: ![Shatabdi\_Dash](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shatabdi_dash/32/317462_2.png) [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)
#### Post date: [September 11, 2023, 7:36am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/7 "2023-09-11T07:36:02Z")

</div>

this is a dev install

 ![Screenshot from 2023-09-11 13-03-41](https://global.discourse-cdn.com/meta/original/4X/c/f/2/cf23670b7ac78f991f73cb9b3992bd06b52f1ade.png)  
This is my plugin

[header-plugin.zip](https://meta.discourse.org/uploads/short-url/eS1LmALRNbbGsKiJw7fZJJOmTcH.zip) (3.5 KB)  
this is my plugin

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [September 11, 2023, 9:45am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/9 "2023-09-11T09:45:05Z")

</div>

Can you explain what you want to achieve with your plugin?  
Did you consider creating a theme component, unless you need to have access to or do things for which a plugin is mandatory?

---

<div class="post-metadata">

### Author: ![Shatabdi\_Dash](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shatabdi_dash/32/317462_2.png) [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)
#### Post date: [September 11, 2023, 9:46am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/10 "2023-09-11T09:46:02Z")

</div>

Ya I want a plugin that will create a custom header for me.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [September 11, 2023, 9:47am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/11 "2023-09-11T09:47:47Z")

</div>

What features do you need? How will the header be customized? Can you be more detailed in your explanations so we can help better?

---

<div class="post-metadata">

### Author: ![Shatabdi\_Dash](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shatabdi_dash/32/317462_2.png) [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)
#### Post date: [September 11, 2023, 9:49am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/13 "2023-09-11T09:49:31Z")

</div>

I cant make changes in the theme component I want a custom plugin for perform this.

![Screenshot from 2023-09-11 15-18-45](https://global.discourse-cdn.com/meta/optimized/4X/7/2/5/7250e2faec67d24417298d147391d9a6f6f56f83_2_690x42.png)  
I want a header like this.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [September 11, 2023, 9:52am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/14 "2023-09-11T09:52:37Z")

</div>

You should only need a plugin if you are changing the API.

What here requires changes to the API?

If there are no changes to the API, a Theme Component should suffice.

---

<div class="post-metadata">

### Author: ![Shatabdi\_Dash](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shatabdi_dash/32/317462_2.png) [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)
#### Post date: [September 11, 2023, 9:54am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/15 "2023-09-11T09:54:17Z")

</div>

But I want a plugin for this task. My plugin is not working. its installed and loaded successfully. but still its not working.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [September 11, 2023, 9:55am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/16 "2023-09-11T09:55:16Z")

</div>

> [@Shatabdi\_Dash](#):
>
> But I want a plugin for this task.

Why? There are no advantages to using a plugin for this task (as far as I’m aware). Theme Components are quicker and easier to install and update.

---

<div class="post-metadata">

### Author: ![Shatabdi\_Dash](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shatabdi_dash/32/317462_2.png) [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)
#### Post date: [September 11, 2023, 9:56am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/17 "2023-09-11T09:56:16Z")

</div>

Ya I know. But is it not possible to create a plugin for this.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [September 11, 2023, 9:58am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/18 "2023-09-11T09:58:57Z")

</div>

It is, but it’s not the best approach, that’s all.

---

<div class="post-metadata">

### Author: ![Shatabdi\_Dash](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shatabdi_dash/32/317462_2.png) [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)
#### Post date: [September 11, 2023, 9:59am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/19 "2023-09-11T09:59:53Z")

</div>

Ya I know this is not the best approach. But I want to create a plugin.  
kindly help me to debug it.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [September 11, 2023, 10:00am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/20 "2023-09-11T10:00:04Z")

</div>

You’re trying to use a sledgehammer to crack a nut.

There is no need for a plugin, you can execute Javascript from a theme component, which is more easy.

There is no need for Javascript if you’re just writing out HTML to your header, you can just add it in Common - Header in your theme component.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [September 11, 2023, 10:00am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/21 "2023-09-11T10:00:29Z")

</div>

Please share this code on GitHub or equivalent if at all possible, so we don’t have to download a file or collection of files from the internet in order to inspect and comment.

---

<div class="post-metadata">

### Author: ![Shatabdi\_Dash](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shatabdi_dash/32/317462_2.png) [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)
#### Post date: [September 11, 2023, 10:09am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/23 "2023-09-11T10:09:49Z")

</div>

Ya sure I am adding the code in github.  
[https://github.com/shatabdidash/Plug-in](https://github.com/shatabdidash/Plug-in)  
this is the link

Is this code having any issue ??

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [September 11, 2023, 10:21am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/24 "2023-09-11T10:21:46Z")

</div>

- `register_asset` must not include the `assets` directory, just do `register_asset "stylesheets/..."`

- the css file name starts with a space so it is not found

- no need to register js files

---

<div class="post-metadata">

### Author: ![Shatabdi\_Dash](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shatabdi_dash/32/317462_2.png) [@Shatabdi\_Dash](https://meta.discourse.org/u/Shatabdi_Dash)
#### Post date: [September 11, 2023, 10:28am UTC](https://meta.discourse.org/t/issue-installing-plugin/278514/25 "2023-09-11T10:28:45Z")

</div>

![Screenshot from 2023-09-11 15-58-16](https://global.discourse-cdn.com/meta/original/4X/a/7/5/a7565c954a50f8a4a432bb2f9282029a237a760a.png)  
this is the issue

[Next page](https://meta.discourse.org/t/issue-installing-plugin/278514.md?page=2)
