Hi Anyone, our website https://amzdis.com (Amazon Discount) wants to hide the ‘Latest’, ‘Top’, ‘Categories’ in the home page. What CSS should be in Customize of Setting?
See Desktop screenshot
See Mobile screenshot
The discussion revolves around hiding the ‘Latest’, ‘Top’, ‘Categories’ and dropdown in the homepage of a Discourse forum. AmzDis initially asked for the CSS to achieve this and provided screenshots of the desired outcome.
They attempted to add CSS code to remove the dropdown list, but it only worked on desktop, not mobile. Jonathan5 suggested using the site setting to determine which items appear in the homepage navigation. After applying this setting, AmzDis was left with only the ‘latest’ option, which they still wanted to hide.
Jonathan5 suggested using CSS, and ondrej provided the CSS code to hide the ‘latest’ option on both desktop and mobile. The provided code is:
For desktop:
.nav-pills>li a.active {
color: var(--secondary);
background-color: var(--quaternary);
display : none;
}
For mobile:
.list-controls .nav-pills .navigation-toggle {
flex: 0 1 auto;
display: none;
}
Hi Anyone, our website https://amzdis.com (Amazon Discount) wants to hide the ‘Latest’, ‘Top’, ‘Categories’ in the home page. What CSS should be in Customize of Setting?
See Desktop screenshot
See Mobile screenshot
I don’t know but guess CSS. Often the CSS for mobile and for desktop is different. Your desktop browser probably has a button to pretend to be a mobile device to find out the CSS class/id.
Desktop
.nav-pills>li a.active {
color: var(--secondary);
background-color: var(--quaternary);
display: none;
}
Mobile
.list-controls .nav-pills .navigation-toggle {
flex: 0 1 auto;
display: none;
}