X
Tap here to go to the mobile version of the site.

Support Forum

CSS Code to remove "recommanded" box from themes menu?

Posted

Hello,

What is the CSS code to remove the "Recommended" box from the themes menu inside the cuztomize preferences?

Please see attached image for reference.


Thanks in advance.

Hello, What is the CSS code to remove the "Recommended" box from the themes menu inside the cuztomize preferences? Please see attached image for reference. Thanks in advance.

Chosen solution

There is no easy way to remove items in the list. The Recommneded label and the footer have an id/ To hide specific items in the list you need to provide their label name or at least the first letters.

#customization-lwtheme-menu-recommended,
#customization-lwtheme-menu-footer,
.customization-lwtheme-menu-theme[label^="<label name>"]{
 display:none!important;
}

https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/CustomizeMode.jsm https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/content/customizeMode.inc.xul

Read this answer in context 0
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; rv:67.0) Gecko/20100101 Firefox/67.0

More Information

cor-el
  • Top 10 Contributor
  • Moderator
17344 solutions 156777 answers

Is this about the Recommendations tab on the about:addons page?

You can create a new Boolean pref on the about:config page and set its value to false.

  • extensions.getAddons.showPane = false

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

Is this about the Recommendations tab on the about:addons page? You can create a new Boolean pref on the <b>about:config</b> page and set its value to false. * extensions.getAddons.showPane = false You can open the <b>about:config</b> page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue. *https://support.mozilla.org/en-US/kb/about-config-editor-firefox
Was this helpful to you?
Quote

Question owner

cor-el said

Is this about the Recommendations tab on the about:addons page? You can create a new Boolean pref on the about:config page and set its value to false.
  • extensions.getAddons.showPane = false
You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

No, that's not the one. As the image shows:

Hamburger menu -> customize -> themes button (bottom left corner)

There's a box labelled "Recommanded" that I would like to remove.

Normally there is a list of 3-4 themes under it but I have already removed the list since it's just a simple hot link in the "about:config" menu.

''cor-el [[#answer-1238400|said]]'' <blockquote> Is this about the Recommendations tab on the about:addons page? You can create a new Boolean pref on the <b>about:config</b> page and set its value to false. * extensions.getAddons.showPane = false You can open the <b>about:config</b> page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue. *https://support.mozilla.org/en-US/kb/about-config-editor-firefox </blockquote> No, that's not the one. As the image shows: Hamburger menu -> customize -> themes button (bottom left corner) There's a box labelled "Recommanded" that I would like to remove. Normally there is a list of 3-4 themes under it but I have already removed the list since it's just a simple hot link in the "about:config" menu.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17344 solutions 156777 answers

Chosen Solution

There is no easy way to remove items in the list. The Recommneded label and the footer have an id/ To hide specific items in the list you need to provide their label name or at least the first letters.

#customization-lwtheme-menu-recommended,
#customization-lwtheme-menu-footer,
.customization-lwtheme-menu-theme[label^="<label name>"]{
 display:none!important;
}

https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/CustomizeMode.jsm https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/content/customizeMode.inc.xul

There is no easy way to remove items in the list. The Recommneded label and the footer have an id/ To hide specific items in the list you need to provide their label name or at least the first letters. <pre><nowiki>#customization-lwtheme-menu-recommended, #customization-lwtheme-menu-footer, .customization-lwtheme-menu-theme[label^="<label name>"]{ display:none!important; }</nowiki></pre> ----- https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/CustomizeMode.jsm https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/content/customizeMode.inc.xul

Modified by cor-el

Was this helpful to you?
Quote
McCoy
  • Top 10 Contributor
493 solutions 4525 answers

Avengement said

Normally there is a list of 3-4 themes under it but I have already removed the list since it's just a simple hot link in the "about:config" menu.

Hello Avengement,

I don't know what "simple hot link" you are referring to, but it should be these :

extensions.htmlaboutaddons.discover.enabled and extensions.htmlaboutaddons.recommendations.enabled

(and of course set both values to false)

Not only will that remove the "Recommended" from "about:addons", but you won't see it on the Customize page anymore either.

''Avengement [[#answer-1238412|said]]'' <blockquote> Normally there is a list of 3-4 themes under it but I have already removed the list since it's just a simple hot link in the "about:config" menu. </blockquote> Hello Avengement, I don't know what "simple hot link" you are referring to, but it should be these : '''extensions.htmlaboutaddons.discover.enabled''' and '''extensions.htmlaboutaddons.recommendations.enabled''' (and of course set both values to '''false''') Not only will that remove the "Recommended" from "about:addons", but you won't see it on the Customize page anymore either.
Was this helpful to you?
Quote

Question owner

McCoy said

Avengement said
Normally there is a list of 3-4 themes under it but I have already removed the list since it's just a simple hot link in the "about:config" menu.

Hello Avengement,

I don't know what "simple hot link" you are referring to, but it should be these :

extensions.htmlaboutaddons.discover.enabled and extensions.htmlaboutaddons.recommendations.enabled

(and of course set both values to false)

Not only will that remove the "Recommended" from "about:addons", but you won't see it on the Customize page anymore either.

Both of those booleans do not exist but when I manually added them with the false flag there was no change regarding what I was looking for.

Regarding the list of recommended themes they are easily removed once the following is cleared:

lightweightThemes.recommendedThemes,

However that still leaves the "Recommended" text box that I was trying to get rid of.

''McCoy [[#answer-1238422|said]]'' <blockquote> ''Avengement [[#answer-1238412|said]]'' <blockquote> Normally there is a list of 3-4 themes under it but I have already removed the list since it's just a simple hot link in the "about:config" menu. </blockquote> Hello Avengement, I don't know what "simple hot link" you are referring to, but it should be these : '''extensions.htmlaboutaddons.discover.enabled''' and '''extensions.htmlaboutaddons.recommendations.enabled''' (and of course set both values to '''false''') Not only will that remove the "Recommended" from "about:addons", but you won't see it on the Customize page anymore either. </blockquote> Both of those booleans do not exist but when I manually added them with the false flag there was no change regarding what I was looking for. Regarding the list of recommended themes they are easily removed once the following is cleared: <blockquote>lightweightThemes.recommendedThemes,</blockquote> However that still leaves the "Recommended" text box that I was trying to get rid of.

Modified by Avengement

Was this helpful to you?
Quote

Question owner

cor-el said

There is no easy way to remove items in the list. The Recommneded label and the footer have an id/ To hide specific items in the list you need to provide their label name or at least the first letters.
#customization-lwtheme-menu-recommended,
#customization-lwtheme-menu-footer,
.customization-lwtheme-menu-theme[label^="<label name>"]{
 display:none!important;
}

https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/CustomizeMode.jsm https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/content/customizeMode.inc.xul

The top line solved the problem.

Thanks again cor-el.

''cor-el [[#answer-1238415|said]]'' <blockquote> There is no easy way to remove items in the list. The Recommneded label and the footer have an id/ To hide specific items in the list you need to provide their label name or at least the first letters. <pre><nowiki>#customization-lwtheme-menu-recommended, #customization-lwtheme-menu-footer, .customization-lwtheme-menu-theme[label^="<label name>"]{ display:none!important; }</nowiki></pre> ----- https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/CustomizeMode.jsm https://dxr.mozilla.org/mozilla-release/source/browser/components/customizableui/content/customizeMode.inc.xul </blockquote> The top line solved the problem. Thanks again cor-el.
Was this helpful to you?
Quote
McCoy
  • Top 10 Contributor
493 solutions 4525 answers

Avengement said

Both of those booleans do not exist but when I manually added them with the false flag there was no change regarding what I was looking for.

That's because you're using Firefox version 67.0 - any particular reason why you haven't updated ?

''Avengement [[#answer-1238465|said]]'' <blockquote> Both of those booleans do not exist but when I manually added them with the false flag there was no change regarding what I was looking for. </blockquote> That's because you're using Firefox version 67.0 - any particular reason why you haven't updated ?
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17344 solutions 156777 answers

Note that this thread is about the Customize palette window and not about the about:addons page.

Note that this thread is about the Customize palette window and not about the about:addons page.
Was this helpful to you?
Quote
McCoy
  • Top 10 Contributor
493 solutions 4525 answers

cor-el said

Note that this thread is about the Customize palette window and not about the about:addons page.

Noted. Like I said in my first post : changing those two prefs will also remove the "Recommended" from the Customize palette. But only with Firefox 68+ ....

''cor-el [[#answer-1238715|said]]'' <blockquote> Note that this thread is about the Customize palette window and not about the about:addons page. </blockquote> Noted. Like I said in my first post : changing those two prefs will also remove the "Recommended" from the Customize palette. But only with Firefox 68+ ....
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.