Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted April 9, 20213 yr There any css way to hide Description and topic or post elements of Forums and Subforums? 🤔 @Ehren
April 10, 20213 yr Author 3 hours ago, kmk said: There any css way to hide Description and topic or post elements of Forums and Subforums? 🤔 @Ehren Hi, just update my idea: 1. For Forums page and Subforums pages, hide last topic or post element. 2. For Forums and Subforums pages, hide Description area if they haven't contain descriptions.Â
April 10, 20213 yr Author .cForumGrid__last.ipsBorder_top.ipsPadding_vertical\:half.ipsPadding_horizontal { display: none; } I use above code to hide the last post element, by now I see it work, the last post item is already hide, anyone can correct me if I did something correct?
April 10, 20213 yr Author html[dir="ltr"] .ipsList_inline > li:last-child, html[dir="ltr"] .ipsList_inline.ipsList_noSpacing > li { margin-right: 0; display: none; } .ipsApp .ipsSpacer_top, .ipsApp .ipsSpacer_both { margin-top: var(--sp-5); display: none; } .ipsType_minorHeading { color: rgb( var(--theme-text_light) ); text-transform: uppercase; font-size: 12px; margin: 0; display: none; } html[dir="ltr"] .ipsList_inline > li { margin-right: 15px; display: none; } I use above to hide elements of subforums of the forums index page, it work, subforums information are hidden. But the problem is the topic content disapeared too...
April 10, 20213 yr Author 16 minutes ago, kmk said: html[dir="ltr"] .ipsList_inline > li:last-child, html[dir="ltr"] .ipsList_inline.ipsList_noSpacing > li { margin-right: 0; display: none; } .ipsApp .ipsSpacer_top, .ipsApp .ipsSpacer_both { margin-top: var(--sp-5); display: none; } .ipsType_minorHeading { color: rgb( var(--theme-text_light) ); text-transform: uppercase; font-size: 12px; margin: 0; display: none; } html[dir="ltr"] .ipsList_inline > li { margin-right: 15px; display: none; } I use above to hide elements of subforums of the forums index page, it work, subforums information are hidden. But the problem is the topic content disapeared too... After so many times, I have this to achieve what I want...please if anyone can correct something... html[dir="ltr"] .ipsList_inline > li:last-child, html[dir="ltr"] .ipsList_inline.ipsList_noSpacing > li { margin-right: 0; display: none; } .ipsType_minorHeading { color: rgb( var(--theme-text_light) ); text-transform: uppercase; font-size: 12px; margin: 0; display: none; } html[dir="ltr"] .ipsList_inline > li { margin-right: 15px; display: none; } Â
April 11, 20213 yr I think you're making this far more complicated than it needs to be. .cForumGrid__description, .cForumGrid__last { display: none; } Â
April 11, 20213 yr Author 1 hour ago, Morrigan said: I think you're making this far more complicated than it needs to be. .cForumGrid__description, .cForumGrid__last { display: none; } Â Thanks, you saved me... Is possible only hide description area when the grid card without description? or say, if the forum contain description show description, if not hide it.
April 11, 20213 yr 2 hours ago, kmk said: Is possible only hide description area when the grid card without description? or say, if the forum contain description show description, if not hide it. Technically that area is meant to be hidden if there's no description, but it's not exactly working as intended. I'll look into this for a future update. You can remove it manually using the following (change the ID to the correct one): /* Hide description area on grid view for certain forums */ [data-forumid="3"] .cForumGrid__description{ display: none; } Â
April 11, 20213 yr Author 1 hour ago, Ehren said: Technically that area is meant to be hidden if there's no description, but it's not exactly working as intended. I'll look into this for a future update. You can remove it manually using the following (change the ID to the correct one): /* Hide description area on grid view for certain forums */ [data-forumid="3"] .cForumGrid__description{ display: none; } Â Thanks so much... I forget ask for in case of forum with subforums? I want to leave the description, but without subforums enlist.
April 11, 20213 yr 3 hours ago, kmk said: Thanks so much... I forget ask for in case of forum with subforums? I want to leave the description, but without subforums enlist. This will remove subforums in grid view: .cForumGrid .ipsType_minorHeading, .cForumGrid .ipsType_minorHeading + .ipsList_inline{ display: none; } Â