# Development

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

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

**Page:** 30

---

## [Using Discourse Connect with a mobile app](https://meta.discourse.org/t/using-discourse-connect-with-a-mobile-app/303825)

<div class="topic-metadata">

**Author:** [@prasun](https://meta.discourse.org/u/prasun)\
**Replies:** 0\
**Last updated:** [April 15, 2024, 8:24am UTC](https://meta.discourse.org/t/using-discourse-connect-with-a-mobile-app/303825 "2024-04-15T08:24:55Z")

</div>

Hi All. We have a mobile app wherein we want to integrate discourse as a community. We plan on using the discourse API to achieve this. However, there are a few question regarding the login mechanism. We do not want the …

---

## [What's the issue with my cURL request?](https://meta.discourse.org/t/whats-the-issue-with-my-curl-request/303708)

<div class="topic-metadata">

**Author:** [@Ben\_Sutton](https://meta.discourse.org/u/Ben_Sutton)\
**Replies:** 10\
**Last updated:** [April 14, 2024, 3:34pm UTC](https://meta.discourse.org/t/whats-the-issue-with-my-curl-request/303708 "2024-04-14T15:34:43Z")

</div>

Hello! I’m trying to write a cURL request for my Wordpress site to integrate Discourse with woo subscriptions. Here’s my function, which doesn’t seem to work. Am I missing something? function execute\_discourse\_curl\_requ…

---

## [How can I remove tags just from the combined categories & latest view?](https://meta.discourse.org/t/how-can-i-remove-tags-just-from-the-combined-categories-latest-view/303668)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 3\
**Last updated:** [April 14, 2024, 12:17pm UTC](https://meta.discourse.org/t/how-can-i-remove-tags-just-from-the-combined-categories-latest-view/303668 "2024-04-14T12:17:08Z")

</div>

Hi everyone, me again :slight\_smile: I use these codes, but this code removes all tags from the site. Is there any other code? .discourse-tag { display: none; }

---

## [Why am I finding Discourse so difficult to customize?](https://meta.discourse.org/t/why-am-i-finding-discourse-so-difficult-to-customize/303671)

<div class="topic-metadata">

**Author:** [@P\_O](https://meta.discourse.org/u/P_O)\
**Replies:** 7\
**Last updated:** [April 14, 2024, 7:01am UTC](https://meta.discourse.org/t/why-am-i-finding-discourse-so-difficult-to-customize/303671 "2024-04-14T07:01:11Z")

</div>

If I want to edit the css I have to create a component, create a css file and fine it works. Now if I add another component for example ‘Discourse Topic Cards’ and then go back to the custom css file, apply the changes,…

---

## [Did anything change that would effect Back Button code?](https://meta.discourse.org/t/did-anything-change-that-would-effect-back-button-code/303638)

<div class="topic-metadata">

**Author:** [@45thj5ej](https://meta.discourse.org/u/45thj5ej)\
**Replies:** 0\
**Last updated:** [April 13, 2024, 2:36am UTC](https://meta.discourse.org/t/did-anything-change-that-would-effect-back-button-code/303638 "2024-04-13T02:36:25Z")

</div>

On one page, I have \<a class="btn btn-primary" style="margin:5px;" onclick="history.back()"\>Go Back\</a\> and when pressed, it simply goes back to the previous page you were on. Well, I’ve changed literally nothing the …

---

## [How can I turn off new topic alert?](https://meta.discourse.org/t/how-can-i-turn-off-new-topic-alert/303570)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 10\
**Last updated:** [April 12, 2024, 5:27pm UTC](https://meta.discourse.org/t/how-can-i-turn-off-new-topic-alert/303570 "2024-04-12T17:27:35Z")

</div>

Hi how can i do that ? With CSS or in admin settings ? #list-area .show-more .alert { display: none; } Is that true ?

---

## [High memory use during assets precompilation](https://meta.discourse.org/t/high-memory-use-during-assets-precompilation/56526)

<div class="topic-metadata">

**Author:** [@Rotonen](https://meta.discourse.org/u/Rotonen)\
**Replies:** 5\
**Last updated:** [April 12, 2024, 4:58pm UTC](https://meta.discourse.org/t/high-memory-use-during-assets-precompilation/56526 "2024-04-12T16:58:59Z")

</div>

During upgrades Bundler uses a lot of memory in relation to the rest of the installation during the assets precompilation. This would hint at some VM object refcount thing not releasing the touched objects (files having …

---

## [How to use Component Uploads](https://meta.discourse.org/t/how-to-use-component-uploads/303539)

<div class="topic-metadata">

**Author:** [@nstoecki42](https://meta.discourse.org/u/nstoecki42)\
**Replies:** 2\
**Last updated:** [April 12, 2024, 11:17am UTC](https://meta.discourse.org/t/how-to-use-component-uploads/303539 "2024-04-12T11:17:40Z")

</div>

Hi there! I wonder how I can use the Upload in a Component. I added an image and now want to display it Thanks! This is related to Category specific Disclaimer - #5 but I changed the entire Code

---

## [Is there any way to make Youtube embeds smaller?](https://meta.discourse.org/t/is-there-any-way-to-make-youtube-embeds-smaller/303174)

<div class="topic-metadata">

**Author:** [@DonkeyKongEnjoyer](https://meta.discourse.org/u/DonkeyKongEnjoyer)\
**Replies:** 2\
**Last updated:** [April 10, 2024, 4:32am UTC](https://meta.discourse.org/t/is-there-any-way-to-make-youtube-embeds-smaller/303174 "2024-04-10T04:32:42Z")

</div>

As you can see,the Youtube embed takes up the entire topic body. I believe this is happening, because I’ve widened the topic body width and d-max width using CSS. I’m using the Default discourse theme. Ideally, I’d l…

---

## [Discourse refuses to load if you are a bad theme debugger](https://meta.discourse.org/t/discourse-refuses-to-load-if-you-are-a-bad-theme-debugger/303103)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 0\
**Last updated:** [April 9, 2024, 6:41pm UTC](https://meta.discourse.org/t/discourse-refuses-to-load-if-you-are-a-bad-theme-debugger/303103 "2024-04-09T18:41:08Z")

</div>

A bunch of times lately on more than one at-least-mostly-standard-installs, when using discourse\_theme to work on a theme, the site has refused to load, with something like this: So a whole bunch of scripts just wait…

---

## [How can I change the main CSS codes?](https://meta.discourse.org/t/how-can-i-change-the-main-css-codes/303034)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 2\
**Last updated:** [April 9, 2024, 1:45pm UTC](https://meta.discourse.org/t/how-can-i-change-the-main-css-codes/303034 "2024-04-09T13:45:12Z")

</div>

Hi, I made many CSS changes by adding CSS codes to the theme settings. Do these codes slow down the website? Can I change these codes directly from within the main theme? Thank you in advance for your help.

---

## [Multiple custom fields for topics similar to custom userfields](https://meta.discourse.org/t/multiple-custom-fields-for-topics-similar-to-custom-userfields/302869)

<div class="topic-metadata">

**Author:** [@lossmann](https://meta.discourse.org/u/lossmann)\
**Replies:** 1\
**Last updated:** [April 8, 2024, 4:14pm UTC](https://meta.discourse.org/t/multiple-custom-fields-for-topics-similar-to-custom-userfields/302869 "2024-04-08T16:14:30Z")

</div>

Hey, I am fairly new to Discourse and would like to use it for multiple projects. In the last weeks I have setup a couple of instances to play around with it and would like to add some custom functionality which is crui…

---

## [Tag Custom Fields?](https://meta.discourse.org/t/tag-custom-fields/297798)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 9\
**Last updated:** [April 8, 2024, 9:37am UTC](https://meta.discourse.org/t/tag-custom-fields/297798 "2024-04-08T09:37:01Z")

</div>

I’m planning out how best to add ActivityPub support to Tags, i.e. allow Tags to be ActivityPub actors. A model with ActivityPub support needs record-specific custom storage. One way to do this is with custom fields, e.g…

---

## [Duplicate key violation in recent upgrade](https://meta.discourse.org/t/duplicate-key-violation-in-recent-upgrade/302817)

<div class="topic-metadata">

**Author:** [@simon](https://meta.discourse.org/u/simon)\
**Replies:** 0\
**Last updated:** [April 8, 2024, 2:00am UTC](https://meta.discourse.org/t/duplicate-key-violation-in-recent-upgrade/302817 "2024-04-08T02:00:22Z")

</div>

Upgrading my production site just now via the UI returned the following error: Failed to migrate default #\<StandardError:"An error has occurred, this and all later migrations canceled:\\n\\nERROR: duplicate key value vio…

---

## [Can you change the color of customizable text?](https://meta.discourse.org/t/can-you-change-the-color-of-customizable-text/302666)

<div class="topic-metadata">

**Author:** [@BugsyB](https://meta.discourse.org/u/BugsyB)\
**Replies:** 8\
**Last updated:** [April 7, 2024, 4:25am UTC](https://meta.discourse.org/t/can-you-change-the-color-of-customizable-text/302666 "2024-04-07T04:25:50Z")

</div>

For instance. %{count} unread can be changed to say whatever I want but can I make unread another color? Or can I add a background color like the box that surrounds tags? Thanks.

---

## [Can I simply add directories to my Discourse install?](https://meta.discourse.org/t/can-i-simply-add-directories-to-my-discourse-install/302708)

<div class="topic-metadata">

**Author:** [@45thj5ej](https://meta.discourse.org/u/45thj5ej)\
**Replies:** 6\
**Last updated:** [April 6, 2024, 10:00pm UTC](https://meta.discourse.org/t/can-i-simply-add-directories-to-my-discourse-install/302708 "2024-04-06T22:00:59Z")

</div>

So, I was adding a local font to my site. In a theme’s CSS file, I put: @font-face { font-display: swap; /\* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. \*/ font-f…

---

## [Optimizing Site For Speed - How To Improve?](https://meta.discourse.org/t/optimizing-site-for-speed-how-to-improve/302671)

<div class="topic-metadata">

**Author:** [@45thj5ej](https://meta.discourse.org/u/45thj5ej)\
**Replies:** 13\
**Last updated:** [April 6, 2024, 4:39pm UTC](https://meta.discourse.org/t/optimizing-site-for-speed-how-to-improve/302671 "2024-04-06T16:39:29Z")

</div>

What’re your guys’ thoughts on these performance test websites? I just did 3 tests: GTmetrix, PageSpeed, and WebpageTest. Some variants, of course, but some similarities. Yesterday, I was a grade C on GTmetrix, so a B i…

---

## [500 Error when trying to install theme](https://meta.discourse.org/t/500-error-when-trying-to-install-theme/302627)

<div class="topic-metadata">

**Author:** [@45thj5ej](https://meta.discourse.org/u/45thj5ej)\
**Replies:** 16\
**Last updated:** [April 6, 2024, 11:07am UTC](https://meta.discourse.org/t/500-error-when-trying-to-install-theme/302627 "2024-04-06T11:07:26Z")

</div>

Any idea what causes this? Never had it happen before. Happens when trying to install from any source.

---

## [Do you guys mini-fy your SCSS/Code?](https://meta.discourse.org/t/do-you-guys-mini-fy-your-scss-code/302652)

<div class="topic-metadata">

**Author:** [@45thj5ej](https://meta.discourse.org/u/45thj5ej)\
**Replies:** 0\
**Last updated:** [April 5, 2024, 11:21pm UTC](https://meta.discourse.org/t/do-you-guys-mini-fy-your-scss-code/302652 "2024-04-05T23:21:44Z")

</div>

Been doing a lot of reading about optimizing your site for speed and whatnot lately. So, as the title asks, do you guys mini-fy your code? I am personally unsure if I want to do it or not because once mini-fied, it’s rea…

---

## [How can I make the category icon color single color?](https://meta.discourse.org/t/how-can-i-make-the-category-icon-color-single-color/302560)

<div class="topic-metadata">

**Author:** [@Ahmed26](https://meta.discourse.org/u/Ahmed26)\
**Replies:** 6\
**Last updated:** [April 5, 2024, 2:45pm UTC](https://meta.discourse.org/t/how-can-i-make-the-category-icon-color-single-color/302560 "2024-04-05T14:45:38Z")

</div>

I want only the icon color of the subcategory to be visible. Main category should not have an icon color I don’t want it to look two-tone. how can i do this? \[image\]

---

## [How to hide a button (SVG icon) if user is logged in?](https://meta.discourse.org/t/how-to-hide-a-button-svg-icon-if-user-is-logged-in/302514)

<div class="topic-metadata">

**Author:** [@45thj5ej](https://meta.discourse.org/u/45thj5ej)\
**Replies:** 16\
**Last updated:** [April 5, 2024, 12:20am UTC](https://meta.discourse.org/t/how-to-hide-a-button-svg-icon-if-user-is-logged-in/302514 "2024-04-05T00:20:36Z")

</div>

Hi. How can I hide a button (it’s really a SVG icon that links to something), only when someone is logged into an account, though?

---

## [Automation to close Solved topics and post a template response](https://meta.discourse.org/t/automation-to-close-solved-topics-and-post-a-template-response/302370)

<div class="topic-metadata">

**Author:** [@45thj5ej](https://meta.discourse.org/u/45thj5ej)\
**Replies:** 1\
**Last updated:** [April 4, 2024, 9:25am UTC](https://meta.discourse.org/t/automation-to-close-solved-topics-and-post-a-template-response/302370 "2024-04-04T09:25:17Z")

</div>

Can this be made/edited to automatically close a topic instantly and leave a message once a topic is marked as Solved/gets solved tag? Please! Please see: Instantly close topic when marked as Solved and leave a custom m…

---

## [Embed Discourse in a native app?](https://meta.discourse.org/t/embed-discourse-in-a-native-app/110475)

<div class="topic-metadata">

**Author:** [@dfabulich](https://meta.discourse.org/u/dfabulich)\
**Replies:** 36\
**Last updated:** [April 3, 2024, 9:50pm UTC](https://meta.discourse.org/t/embed-discourse-in-a-native-app/110475 "2024-04-03T21:50:46Z")

</div>

Our company has native apps for iOS and Android. One of our goals is to bring people back to our apps frequently, and to spend a lot of time in our apps. (The app stores seem to prioritize apps that get a lot of usage.) …

---

## [iFrame removes content if first item in post](https://meta.discourse.org/t/iframe-removes-content-if-first-item-in-post/302121)

<div class="topic-metadata">

**Author:** [@jimkleiber](https://meta.discourse.org/u/jimkleiber)\
**Replies:** 3\
**Last updated:** [April 3, 2024, 4:24am UTC](https://meta.discourse.org/t/iframe-removes-content-if-first-item-in-post/302121 "2024-04-03T04:24:43Z")

</div>

If in a post I put an iframe below some text content, the iframe shows below it, but if I put the iframe above the text content, the iframe shows but the text disappears. I’m baffled, I imagine it’s something to do with…

---

## [iPhone not properly showing image area on site. Why?](https://meta.discourse.org/t/iphone-not-properly-showing-image-area-on-site-why/301963)

<div class="topic-metadata">

**Author:** [@45thj5ej](https://meta.discourse.org/u/45thj5ej)\
**Replies:** 5\
**Last updated:** [April 2, 2024, 5:02am UTC](https://meta.discourse.org/t/iphone-not-properly-showing-image-area-on-site-why/301963 "2024-04-02T05:02:37Z")

</div>

So, on 3 of my Android phones (different brands, etc.), one of my web pages looks like this (how it’s supposed to): On my partner’s iPhone, a family member’s iPhone, and a friend’s iPhone, it looks like this: My …

---

## [Trying to change font color](https://meta.discourse.org/t/trying-to-change-font-color/301856)

<div class="topic-metadata">

**Author:** [@45thj5ej](https://meta.discourse.org/u/45thj5ej)\
**Replies:** 3\
**Last updated:** [April 1, 2024, 9:05pm UTC](https://meta.discourse.org/t/trying-to-change-font-color/301856 "2024-04-01T21:05:27Z")

</div>

Seems so simple, right? Everything I’ve tried just won’t work. I found the exact area in Inspect Element where the text color is. I’ve tried all the classes listed there at the end of the video, I’ve tried adding !impor…

---

## [How to extend the Discourse sidebar?](https://meta.discourse.org/t/how-to-extend-the-discourse-sidebar/301694)

<div class="topic-metadata">

**Author:** [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Replies:** 7\
**Last updated:** [April 1, 2024, 2:41am UTC](https://meta.discourse.org/t/how-to-extend-the-discourse-sidebar/301694 "2024-04-01T02:41:59Z")

</div>

Are there any guides or how-tos here that show you how to extend the built-in sidebar? For instance, to widen it slightly then show the latest 5 topics out of our news section? Or maybe show upcoming events? It’s great…

---

## [Search section like on Reddit?](https://meta.discourse.org/t/search-section-like-on-reddit/301331)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 15\
**Last updated:** [March 31, 2024, 12:08pm UTC](https://meta.discourse.org/t/search-section-like-on-reddit/301331 "2024-03-31T12:08:59Z")

</div>

Hi everyone, Can I add a search field like this to my site? And I want to remove the search button from the right side Thank you :slight\_smile:

---

## [Plugin API documentations?](https://meta.discourse.org/t/plugin-api-documentations/67988)

<div class="topic-metadata">

**Author:** [@a9udn9u](https://meta.discourse.org/u/a9udn9u)\
**Replies:** 8\
**Last updated:** [March 31, 2024, 12:47am UTC](https://meta.discourse.org/t/plugin-api-documentations/67988 "2024-03-31T00:47:40Z")

</div>

Sorry if this has been asked, I tried searching for documentations but all I can find is the Get Started post, it helped me create a plugin but it didn’t cover topics such as what APIs are available. So, are there docume…

---

## [Body size / What code is required?](https://meta.discourse.org/t/body-size-what-code-is-required/301642)

<div class="topic-metadata">

**Author:** [@ogulcan1787](https://meta.discourse.org/u/ogulcan1787)\
**Replies:** 4\
**Last updated:** [March 30, 2024, 6:56pm UTC](https://meta.discourse.org/t/body-size-what-code-is-required/301642 "2024-03-30T18:56:40Z")

</div>

Hi everyone. I added border radius to this code and made the bottom part as I wanted. But I can’t fix the top part. What codes should I add to make the upper part look just like the lower part? like : top-height-size…

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

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