when i paste the code the widget shows up on the main page of the website. how can i make it show up in one of the site categories/pages not main page?
Hi there, could you send a screenshot or a screen recording of the problem?
Thanks!
2 Likes
If I put the code in the head it shows up in the main page on top. The body lets it show up in the main page at the bottom. How can I make the widget show up in another page away from the main page? Thanks
Hi @Issa_George. I’d recommend working through the tutorial here to get familiar with the concepts and techniques needed for theme development. It covers how to render content in various places throughout the UI:
5 Likes
And you’ll find theme development much easier with the discourse_theme cli.
1 Like
Like what David said, you should follow that tutorial to learn how to build a component that can be rendered in various places, specifically, plugin outlets, which are dotted around the site to provide places where you can render the component.
You can place the code inside the ‘JS’ tab and pair it with api.renderInOutlet()
and a <template>
tag.
1 Like