# Development

**URL:** https://meta.discourse.org/c/dev/7.md?page=47

[Latest](https://meta.discourse.org/latest.md) · [Categories](https://meta.discourse.org/categories.md) · [Tags](https://meta.discourse.org/tags.md)

**Page:** 48

---

## [How to apply CSS code only in the discourse home page?](https://meta.discourse.org/t/how-to-apply-css-code-only-in-the-discourse-home-page/265234)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**Replies:** 5\
**Last updated:** [May 16, 2023, 9:57pm UTC](https://meta.discourse.org/t/how-to-apply-css-code-only-in-the-discourse-home-page/265234 "2023-05-16T21:57:35Z")

</div>

I put color and background on a banner the banner on other pages (like topics) does not appear but the background keeps appearing on all pages how to apply this coming only in the home of the discourse?

---

## [New Custom Field class SearchLocation](https://meta.discourse.org/t/new-custom-field-class-searchlocation/265235)

<div class="topic-metadata">

**Author:** [@philipp96](https://meta.discourse.org/u/philipp96)\
**Replies:** 0\
**Last updated:** [May 16, 2023, 8:30pm UTC](https://meta.discourse.org/t/new-custom-field-class-searchlocation/265235 "2023-05-16T20:30:07Z")

</div>

Hello everyone, today I have been researching the topic of creating an additional class for a custom field. Here’s a brief summary of my goal: Goal Create a new custom field class, alongside existing ones like Dropdown,…

---

## [Formatting text on home page for logged out users](https://meta.discourse.org/t/formatting-text-on-home-page-for-logged-out-users/262826)

<div class="topic-metadata">

**Author:** [@Wall-E](https://meta.discourse.org/u/Wall-E)\
**Replies:** 3\
**Last updated:** [May 16, 2023, 4:27pm UTC](https://meta.discourse.org/t/formatting-text-on-home-page-for-logged-out-users/262826 "2023-05-16T16:27:40Z")

</div>

My front/home page when logged out used to look very different than now, using Grey Amber theme. The text overshoots past the gray background (see below). I haven’t changed anything in my HTML/CSS edits within a year so …

---

## [Restrict the users to post in the groups who haven't uploaded their profile picture](https://meta.discourse.org/t/restrict-the-users-to-post-in-the-groups-who-havent-uploaded-their-profile-picture/265000)

<div class="topic-metadata">

**Author:** [@Kushalghosh9899](https://meta.discourse.org/u/Kushalghosh9899)\
**Replies:** 4\
**Last updated:** [May 16, 2023, 2:27pm UTC](https://meta.discourse.org/t/restrict-the-users-to-post-in-the-groups-who-havent-uploaded-their-profile-picture/265000 "2023-05-16T14:27:08Z")

</div>

I wanted to implement a way that users should not be allowed to post if they have not uploaded a profile picture. They should get the message: “Please upload a profile picture and complete your profile before you can st…

---

## [How do we get "reactions" information from the API?](https://meta.discourse.org/t/how-do-we-get-reactions-information-from-the-api/265168)

<div class="topic-metadata">

**Author:** [@simon\_tomes](https://meta.discourse.org/u/simon_tomes)\
**Replies:** 2\
**Last updated:** [May 16, 2023, 10:53am UTC](https://meta.discourse.org/t/how-do-we-get-reactions-information-from-the-api/265168 "2023-05-16T10:53:34Z")

</div>

Hi, We’d like to pull out “reactions” count information as we do for “likes”. We don’t need granular information such as the type of reaction and its count, just a total count of reactions per topic. Is it possible to…

---

## [I want to learn how to program for Discourse](https://meta.discourse.org/t/i-want-to-learn-how-to-program-for-discourse/264925)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**Replies:** 3\
**Last updated:** [May 14, 2023, 4:17pm UTC](https://meta.discourse.org/t/i-want-to-learn-how-to-program-for-discourse/264925 "2023-05-14T16:17:08Z")

</div>

where do I start? what types of programming should i learn? it is difficult?

---

## [Make Chat Tab the default view on Mobile](https://meta.discourse.org/t/make-chat-tab-the-default-view-on-mobile/263722)

<div class="topic-metadata">

**Author:** [@lisandro\_iaffar](https://meta.discourse.org/u/lisandro_iaffar)\
**Replies:** 3\
**Last updated:** [May 14, 2023, 4:46am UTC](https://meta.discourse.org/t/make-chat-tab-the-default-view-on-mobile/263722 "2023-05-14T04:46:04Z")

</div>

Hello! :slight\_smile: I’m ecstatic at how awesome Discourse is becoming. There is one last configuration on the path of making Discourse awesome for mobile, which is to be able to make the Chat Tab the default view on m…

---

## [Bulk action help: replace hotlinked images with local image files](https://meta.discourse.org/t/bulk-action-help-replace-hotlinked-images-with-local-image-files/264912)

<div class="topic-metadata">

**Author:** [@shyguy](https://meta.discourse.org/u/shyguy)\
**Replies:** 1\
**Last updated:** [May 14, 2023, 2:08am UTC](https://meta.discourse.org/t/bulk-action-help-replace-hotlinked-images-with-local-image-files/264912 "2023-05-14T02:08:44Z")

</div>

scenario: a free image hoster (foo-host in this example) has gone defunct, and a discourse forum currently has a bunch of hotlinked images in its posts images were backed up manually before they rotted and exist on the…

---

## [Help on redirect user on gated content](https://meta.discourse.org/t/help-on-redirect-user-on-gated-content/264351)

<div class="topic-metadata">

**Author:** [@th21](https://meta.discourse.org/u/th21)\
**Replies:** 2\
**Last updated:** [May 13, 2023, 5:33pm UTC](https://meta.discourse.org/t/help-on-redirect-user-on-gated-content/264351 "2023-05-13T17:33:34Z")

</div>

Continuing the discussion from Gated Topics in Category: I was trying to modify the gated component to redirect the user to a specific page instead of showing a gate 1 I tried DiscourseURL.routeTo('/t/table-builder-te…

---

## [Can we add the navigation bar on the topic page?](https://meta.discourse.org/t/can-we-add-the-navigation-bar-on-the-topic-page/264547)

<div class="topic-metadata">

**Author:** [@Joart](https://meta.discourse.org/u/Joart)\
**Replies:** 2\
**Last updated:** [May 12, 2023, 1:23pm UTC](https://meta.discourse.org/t/can-we-add-the-navigation-bar-on-the-topic-page/264547 "2023-05-12T13:23:24Z")

</div>

Hello, I would like to add the Discourse navigation on all the topics pages. Is it possible?

---

## [I am looking for a webhook or event api](https://meta.discourse.org/t/i-am-looking-for-a-webhook-or-event-api/264744)

<div class="topic-metadata">

**Author:** [@Ankit\_Kumar\_Jha](https://meta.discourse.org/u/Ankit_Kumar_Jha)\
**Replies:** 1\
**Last updated:** [May 12, 2023, 6:51am UTC](https://meta.discourse.org/t/i-am-looking-for-a-webhook-or-event-api/264744 "2023-05-12T06:51:37Z")

</div>

Is there a webhook or API through which I can fetch all the events created by an Admin or Moderator and then update the same in the inbuilt calendar feature on our website? I went through the api documentation but there …

---

## [Can't update a topic's body by API](https://meta.discourse.org/t/cant-update-a-topics-body-by-api/264640)

<div class="topic-metadata">

**Author:** [@Dotila\_Li](https://meta.discourse.org/u/Dotila_Li)\
**Replies:** 3\
**Last updated:** [May 11, 2023, 4:11pm UTC](https://meta.discourse.org/t/cant-update-a-topics-body-by-api/264640 "2023-05-11T16:11:39Z")

</div>

I did follow the docs and， however, it only update the topic’s title, without updating the body. My code (Javascript): async function updateDiscourseTopic(topic\_id) { const Discourse\_API\_Key = "Discourse\_API\_Key"; …

---

## [API Retrieve Post relative URLs](https://meta.discourse.org/t/api-retrieve-post-relative-urls/264633)

<div class="topic-metadata">

**Author:** [@bobpies](https://meta.discourse.org/u/bobpies)\
**Replies:** 1\
**Last updated:** [May 11, 2023, 10:50am UTC](https://meta.discourse.org/t/api-retrieve-post-relative-urls/264633 "2023-05-11T10:50:47Z")

</div>

Hi all I’m using the discourse API to retrieve a Topic / all its posts and then each post and and its content My forums are hosted on forums.xxx.com I use the API to retrieve the posts and place them on my www.xxx.com …

---

## [We can't have the mobile view](https://meta.discourse.org/t/we-cant-have-the-mobile-view/264642)

<div class="topic-metadata">

**Author:** [@Joart](https://meta.discourse.org/u/Joart)\
**Replies:** 3\
**Last updated:** [May 11, 2023, 12:19pm UTC](https://meta.discourse.org/t/we-cant-have-the-mobile-view/264642 "2023-05-11T12:19:29Z")

</div>

Hello, I would like to adapt my theme on mobile but when I inspect my page, I can’t have access to the real mobile view… How can we do? Mobile view with inpector : View on mobile :

---

## [Showing a 0 click counter next to links that haven't been clicked yet](https://meta.discourse.org/t/showing-a-0-click-counter-next-to-links-that-havent-been-clicked-yet/264614)

<div class="topic-metadata">

**Author:** [@kwinz](https://meta.discourse.org/u/kwinz)\
**Replies:** 0\
**Last updated:** [May 11, 2023, 5:16am UTC](https://meta.discourse.org/t/showing-a-0-click-counter-next-to-links-that-havent-been-clicked-yet/264614 "2023-05-11T05:16:12Z")

</div>

Is it possible to show a 0 click counter next to links in user generated content that haven’t been clicked yet? Maybe a setting or with some custom CSS? Right now it starts to show the count, but only as soon as the fi…

---

## [Opening search page with "advanced filters" activated](https://meta.discourse.org/t/opening-search-page-with-advanced-filters-activated/264498)

<div class="topic-metadata">

**Author:** [@sterretje](https://meta.discourse.org/u/sterretje)\
**Replies:** 5\
**Last updated:** [May 10, 2023, 8:24am UTC](https://meta.discourse.org/t/opening-search-page-with-advanced-filters-activated/264498 "2023-05-10T08:24:51Z")

</div>

Hello again I just found out that I can add a custime section to the sidebar. Great feature. I would like to use it to provide a shortcut to open the search page (\`/search’) with the advanced filters open by default. I…

---

## [Re-evaluate widgets in header upon route change without error](https://meta.discourse.org/t/re-evaluate-widgets-in-header-upon-route-change-without-error/262697)

<div class="topic-metadata">

**Author:** [@merefield](https://meta.discourse.org/u/merefield)\
**Replies:** 8\
**Last updated:** [May 10, 2023, 8:03am UTC](https://meta.discourse.org/t/re-evaluate-widgets-in-header-upon-route-change-without-error/262697 "2023-05-10T08:03:01Z")

</div>

I’m trying to override this widget template: api.reopenWidget("header-contents", { template: hbs\` {{#if this.site.desktopView}} {{#if attrs.sidebarEnabled}} {{sidebar-to…

---

## [How to pass a component setting as a value to an attribute?](https://meta.discourse.org/t/how-to-pass-a-component-setting-as-a-value-to-an-attribute/264463)

<div class="topic-metadata">

**Author:** [@gormus](https://meta.discourse.org/u/gormus)\
**Replies:** 1\
**Last updated:** [May 9, 2023, 9:58pm UTC](https://meta.discourse.org/t/how-to-pass-a-component-setting-as-a-value-to-an-attribute/264463 "2023-05-09T21:58:57Z")

</div>

Hi, I’m simply trying to add an external script library via a \<script src="..."\>\</script\> tag in the head\_tag.html template like this, clearly not the correct syntax. \<script type="text/discourse-plugin" version="1.6.0"\>…

---

## [DButton no longer supports @action as a string. Please refactor to use an closure action instead](https://meta.discourse.org/t/dbutton-no-longer-supports-action-as-a-string-please-refactor-to-use-an-closure-action-instead/264377)

<div class="topic-metadata">

**Author:** [@pw3010](https://meta.discourse.org/u/pw3010)\
**Replies:** 5\
**Last updated:** [May 9, 2023, 9:31pm UTC](https://meta.discourse.org/t/dbutton-no-longer-supports-action-as-a-string-please-refactor-to-use-an-closure-action-instead/264377 "2023-05-09T21:31:18Z")

</div>

I’m using a theme based on the Feverbee theme, which has been in use for a number of years. Users have been in touch as they can no longer create new topics. The error message above is presented in the console. Where …

---

## [Develop a theme](https://meta.discourse.org/t/develop-a-theme/264175)

<div class="topic-metadata">

**Author:** [@Justman10000](https://meta.discourse.org/u/Justman10000)\
**Replies:** 1\
**Last updated:** [May 8, 2023, 12:26am UTC](https://meta.discourse.org/t/develop-a-theme/264175 "2023-05-08T00:26:54Z")

</div>

Hi, I was wondering how to develop a theme without knowing all the classes that Discourse uses

---

## [Center header image](https://meta.discourse.org/t/center-header-image/263996)

<div class="topic-metadata">

**Author:** [@Michele\_Butturini](https://meta.discourse.org/u/Michele_Butturini)\
**Replies:** 2\
**Last updated:** [May 5, 2023, 9:18pm UTC](https://meta.discourse.org/t/center-header-image/263996 "2023-05-05T21:18:40Z")

</div>

Hi, somehow I managed to add a bar on top of the forum I am managing. However, when working on a screen with a different size, the image is shifted and not centered How can I center it? The following is the cod…

---

## [CSS to hide the Posted and Seen columns in the group member page, take 3](https://meta.discourse.org/t/css-to-hide-the-posted-and-seen-columns-in-the-group-member-page-take-3/263887)

<div class="topic-metadata">

**Author:** [@JoelZaslofsky](https://meta.discourse.org/u/JoelZaslofsky)\
**Replies:** 3\
**Last updated:** [May 5, 2023, 2:22pm UTC](https://meta.discourse.org/t/css-to-hide-the-posted-and-seen-columns-in-the-group-member-page-take-3/263887 "2023-05-05T14:22:34Z")

</div>

Following up on this forum thread from February 2023: As of 3.1.0.beta4, the custom CSS solution provided no longer works to hide the “Posted” and “Seen” columns from the group detail member lists. It’s possible the …

---

## [Is it possible to retry all failed webhook requests?](https://meta.discourse.org/t/is-it-possible-to-retry-all-failed-webhook-requests/263701)

<div class="topic-metadata">

**Author:** [@Lucas\_Alves](https://meta.discourse.org/u/Lucas_Alves)\
**Replies:** 4\
**Last updated:** [May 4, 2023, 7:26pm UTC](https://meta.discourse.org/t/is-it-possible-to-retry-all-failed-webhook-requests/263701 "2023-05-04T19:26:14Z")

</div>

I had an issue on my side receiving the webhook requests and processing what I need. It was fixed but would be great If I could re-trigger all failed requests, instead of clicking one by one. Is it possible for someway? …

---

## [Get the url from theme asset SCSS](https://meta.discourse.org/t/get-the-url-from-theme-asset-scss/263856)

<div class="topic-metadata">

**Author:** [@exo-consulting](https://meta.discourse.org/u/exo-consulting)\
**Replies:** 1\
**Last updated:** [May 4, 2023, 4:56pm UTC](https://meta.discourse.org/t/get-the-url-from-theme-asset-scss/263856 "2023-05-04T16:56:38Z")

</div>

Hello! How can I get the url from my uploaded asset? If I want to use this image inside my css or html? for example inside my \<img src=" what will the link be "/\> .logo { background-image: url( what will the li…

---

## [Remove Personal Chat items](https://meta.discourse.org/t/remove-personal-chat-items/263676)

<div class="topic-metadata">

**Author:** [@JBM](https://meta.discourse.org/u/JBM)\
**Replies:** 3\
**Last updated:** [May 3, 2023, 5:10pm UTC](https://meta.discourse.org/t/remove-personal-chat-items/263676 "2023-05-03T17:10:19Z")

</div>

Hi, I am trying to figure out how to build a very minimal sidebar experience for a client, using only a few lines filled with Custom Hidebar Section Topic; and do not show anything else. Thanks to @Lilly: i could do t…

---

## [Can you override the locale via theme files?](https://meta.discourse.org/t/can-you-override-the-locale-via-theme-files/263355)

<div class="topic-metadata">

**Author:** [@sevadev-ramchandra](https://meta.discourse.org/u/sevadev-ramchandra)\
**Replies:** 5\
**Last updated:** [May 2, 2023, 2:58pm UTC](https://meta.discourse.org/t/can-you-override-the-locale-via-theme-files/263355 "2023-05-02T14:58:47Z")

</div>

I want to change some placeholder text, and I want it do via locale files, so there any way to do? I have tried using by creating config/locales/client.en.yml, previously there was not those files present in themes, I a…

---

## [Category specific Disclaimer](https://meta.discourse.org/t/category-specific-disclaimer/263168)

<div class="topic-metadata">

**Author:** [@nstoecki42](https://meta.discourse.org/u/nstoecki42)\
**Replies:** 3\
**Last updated:** [May 2, 2023, 8:49am UTC](https://meta.discourse.org/t/category-specific-disclaimer/263168 "2023-05-02T08:49:00Z")

</div>

Hi, I tried to add a Disclaimer on a specific Category. I had the Idea to have a “banner” - like This is User's first post - let's welcome the new member to our community! or It's been a while since we've seen USER -…

---

## [Redirect on click user avatar and username to user profile page /u/username/summary](https://meta.discourse.org/t/redirect-on-click-user-avatar-and-username-to-user-profile-page-u-username-summary/263403)

<div class="topic-metadata">

**Author:** [@Anil\_Tako](https://meta.discourse.org/u/Anil_Tako)\
**Replies:** 2\
**Last updated:** [May 2, 2023, 6:18am UTC](https://meta.discourse.org/t/redirect-on-click-user-avatar-and-username-to-user-profile-page-u-username-summary/263403 "2023-05-02T06:18:28Z")

</div>

How to redirect to user profile page i.e. u/username/summary when click on avatar and username instead of opening popup of user card?

---

## [Does Discourse accept SVG icons with Gradient?](https://meta.discourse.org/t/does-discourse-accept-svg-icons-with-gradient/258062)

<div class="topic-metadata">

**Author:** [@danielabc](https://meta.discourse.org/u/danielabc)\
**Replies:** 6\
**Last updated:** [May 1, 2023, 9:11pm UTC](https://meta.discourse.org/t/does-discourse-accept-svg-icons-with-gradient/258062 "2023-05-01T21:11:04Z")

</div>

I see that any icon with a gradient that I put doesn’t work, does the Discourse not accept it? If he doesn’t accept it, is there a way to put a gradient around the icons via css?

---

## [Get logged in user email adress](https://meta.discourse.org/t/get-logged-in-user-email-adress/259383)

<div class="topic-metadata">

**Author:** [@Rafael\_Melo\_Silva](https://meta.discourse.org/u/Rafael_Melo_Silva)\
**Replies:** 0\
**Last updated:** [March 25, 2023, 11:09am UTC](https://meta.discourse.org/t/get-logged-in-user-email-adress/259383 "2023-03-25T11:09:42Z")

</div>

How can i show to a logged user his email address in static page i’ve been working on? Thanks

[Previous page](https://meta.discourse.org/c/dev/7.md?page=46)

[Next page](https://meta.discourse.org/c/dev/7.md?page=48)
