Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
kmk Posted April 9, 2021 Posted April 9, 2021 There any css way to hide Description and topic or post elements of Forums and Subforums? 🤔 @Ehren
kmk Posted April 10, 2021 Author Posted April 10, 2021 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.Â
kmk Posted April 10, 2021 Author Posted April 10, 2021 .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?
kmk Posted April 10, 2021 Author Posted April 10, 2021 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...
kmk Posted April 10, 2021 Author Posted April 10, 2021 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; } Â
Morrigan Posted April 11, 2021 Posted April 11, 2021 I think you're making this far more complicated than it needs to be. .cForumGrid__description, .cForumGrid__last { display: none; } Â kmk 1
kmk Posted April 11, 2021 Author Posted April 11, 2021 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.
Ehren Posted April 11, 2021 Posted April 11, 2021 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; } Â
kmk Posted April 11, 2021 Author Posted April 11, 2021 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.
Ehren Posted April 11, 2021 Posted April 11, 2021 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; } Â kmk and Insydius 2
Recommended Posts