C CarpCharacin Well-known member Jun 24, 2020 #1 Is there some CSS which will allow for a specific notice to be hidden on a specific page without hiding the other notices?
Is there some CSS which will allow for a specific notice to be hidden on a specific page without hiding the other notices?
beerForo Well-known member Jun 24, 2020 #2 You can make it dismissible and the others not. Upvote 0 Downvote
C CarpCharacin Well-known member Jun 24, 2020 #3 beerForo said: You can make it dismissible and the others not. Click to expand... I am aware, but I'd like to hide it entirely on a specific page. Upvote 0 Downvote
beerForo said: You can make it dismissible and the others not. Click to expand... I am aware, but I'd like to hide it entirely on a specific page.
C CarpCharacin Well-known member Jun 24, 2020 #5 beerForo said: So remove it? Click to expand... Yeah. Upvote 0 Downvote
beerForo Well-known member Jun 24, 2020 #6 Go to the notice and remove it from that area. Upvote 0 Downvote
C CarpCharacin Well-known member Jun 24, 2020 #7 beerForo said: Go to the notice and remove it from that area. Click to expand... Have you seen the notice criteria? It's not that simple. I'd like to hide it from a specific page, while displaying it on all others. Upvote 0 Downvote
beerForo said: Go to the notice and remove it from that area. Click to expand... Have you seen the notice criteria? It's not that simple. I'd like to hide it from a specific page, while displaying it on all others.
arn Well-known member Jun 24, 2020 #8 CarpCharacin said: Have you seen the notice criteria? It's not that simple. I'd like to hide it from a specific page, while displaying it on all others. Click to expand... won't this do it? Upvote 0 Downvote
CarpCharacin said: Have you seen the notice criteria? It's not that simple. I'd like to hide it from a specific page, while displaying it on all others. Click to expand... won't this do it?
C CarpCharacin Well-known member Jun 24, 2020 #9 arn said: View attachment 228829 won't this do it? Click to expand... Is that option added by an add-on? I don't see it in the notice criteria. Upvote 0 Downvote
arn said: View attachment 228829 won't this do it? Click to expand... Is that option added by an add-on? I don't see it in the notice criteria.
ProCom Well-known member Jun 24, 2020 #10 So, you want to show it on ALL pages of the site except one specific page? I guess this can't be done in the "Page criteria" section? Upvote 0 Downvote
So, you want to show it on ALL pages of the site except one specific page? I guess this can't be done in the "Page criteria" section?
arn Well-known member Jun 24, 2020 #11 CarpCharacin said: Is that option added by an add-on? I don't see it in the notice criteria. Click to expand... Hm.. It's in my Page Criteria tab. I don't remeber it as an add on, but it's possible Upvote 0 Downvote
CarpCharacin said: Is that option added by an add-on? I don't see it in the notice criteria. Click to expand... Hm.. It's in my Page Criteria tab. I don't remeber it as an add on, but it's possible
arn Well-known member Jun 24, 2020 #12 heh. and I don't have an "Advanced Criteria" tab like @ProCom does Upvote 0 Downvote
C CarpCharacin Well-known member Jun 24, 2020 #13 arn said: heh. and I don't have an "Advanced Criteria" tab like @ProCom does Click to expand... I believe the advanced criteria is added by this add-on. Upvote 0 Downvote
arn said: heh. and I don't have an "Advanced Criteria" tab like @ProCom does Click to expand... I believe the advanced criteria is added by this add-on.
C CarpCharacin Well-known member Jun 24, 2020 #14 arn said: Hm.. It's in my Page Criteria tab. I don't remeber it as an add on, but it's possible Click to expand... I just googled the criteria, and it looks like it may be part of an ads manager add-on, which I don't have installed. Upvote 0 Downvote
arn said: Hm.. It's in my Page Criteria tab. I don't remeber it as an add on, but it's possible Click to expand... I just googled the criteria, and it looks like it may be part of an ads manager add-on, which I don't have installed.
ProCom Well-known member Jun 24, 2020 #15 arn said: heh. and I don't have an "Advanced Criteria" tab like @ProCom does Click to expand... Oh, whoops! I thought that was part of XF core. Sorry! Upvote 0 Downvote
arn said: heh. and I don't have an "Advanced Criteria" tab like @ProCom does Click to expand... Oh, whoops! I thought that was part of XF core. Sorry!
TMC Active member Jun 25, 2020 #18 This should be achievable by adding to extra.less Code: [data-container-key="node-X"] [data-notice-id="X"] { display:none; } Replace Xs with the actual node and notice ids. You can find IDs via admin panel or by viewing the page source. i.e. If I wanted to hide notice "test" when viewing info page I would add node-74 and notice-id=11 to the above code. Upvote 1 Downvote
This should be achievable by adding to extra.less Code: [data-container-key="node-X"] [data-notice-id="X"] { display:none; } Replace Xs with the actual node and notice ids. You can find IDs via admin panel or by viewing the page source. i.e. If I wanted to hide notice "test" when viewing info page I would add node-74 and notice-id=11 to the above code.
JohnLogar Active member Nov 6, 2023 #19 This is how I hide a specific notice on specific page. I hide notice only for thread_view page. In css the notice id is "1". CSS: [data-template="thread_view"] .notice.js-notice.notice--primary[data-notice-id="1"] { display: none; } Upvote 0 Downvote
This is how I hide a specific notice on specific page. I hide notice only for thread_view page. In css the notice id is "1". CSS: [data-template="thread_view"] .notice.js-notice.notice--primary[data-notice-id="1"] { display: none; }