Tagged: x
-
AuthorPosts
-
July 15, 2016 at 6:33 am #1088355
3b1a2f46-a516-40cf-beba-b611930e4819ParticipantHi, I have added the following css to my revolution slider global css.
.rev_slider .slotholder:after {
width: 100%;
height: 100%;
content: “”;
position: absolute;
left: 0;
top: 0;
pointer-events: none;/* black overlay with 40% transparency */
background: rgba(0, 0, 0, 0.4);
}I’m happy with how it looks but I need to take it off for one slider. I will post the link to the slider in question on the next reply.
July 15, 2016 at 6:34 am #1088357
3b1a2f46-a516-40cf-beba-b611930e4819ParticipantThis reply has been marked as private.July 15, 2016 at 9:30 am #1088546
John EzraMemberHi there,
Thanks for writing in! You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.
div#x-section-5 .rev_slider .slotholder:after { display:none; }Hope this helps – thanks!
July 19, 2016 at 11:29 am #1093796
3b1a2f46-a516-40cf-beba-b611930e4819ParticipantHi John,
This works initially but I need to copy that slider across the different pages that don’t appear on x-section5.
Could the below code be added to the Custom > CSS in the Customizer to the sliders I want the overlay on instead? I’ve added all my header sliders using the below masthead setting.. How can I target that area on all pages?
.rev_slider .slotholder:after {
width: 100%;
height: 100%;
content: “”;
position: absolute;
left: 0;
top: 0;
pointer-events: none;/* black overlay with 40% transparency */
background: rgba(0, 0, 0, 0.4);
}Thanks
July 19, 2016 at 11:50 am #1093830
RupokMemberHi there,
You can just use an additional custom class (say slider-overlay) to the section that will contain the overlay and update your code to following :
.slider-overlay .rev_slider .slotholder:after { width: 100%; height: 100%; content: “”; position: absolute; left: 0; top: 0; pointer-events: none; /* black overlay with 40% transparency */ background: rgba(0, 0, 0, 0.4); } .rev_slider .slotholder:after { display:none; }It would be a better approach.
Cheers!
July 20, 2016 at 3:48 am #1094985
3b1a2f46-a516-40cf-beba-b611930e4819ParticipantThanks Rupok, but can I add a custom class when using the below masthead setting outside of cornerstone?
July 20, 2016 at 5:23 am #1095076
ChristopherModeratorHi there,
I’m sorry, it’s not possible. You can target page ID, please update your code to :
.page-id-32 .slider-overlay .rev_slider .slotholder:after { width: 100%; height: 100%; content: “”; position: absolute; left: 0; top: 0; pointer-events: none; /* black overlay with 40% transparency */ background: rgba(0, 0, 0, 0.4); } .page-id-32 .rev_slider .slotholder:after { display:none; }Replace 32 with your page ID.
Hope it helps.
July 20, 2016 at 5:54 am #1095103
3b1a2f46-a516-40cf-beba-b611930e4819ParticipantHi Christopher,
I needed to enable the black overlay on the below masthead container only on all pages, so using the page id wouldn’t have worked as I would have to add a new page id to the custom css every time I added a new page.
I have now rectified the issue using the code below.
.x-slider-container .rev_slider .slotholder:after {
width: 100%;
height: 100%;
content: “”;
position: absolute;
left: 0;
top: 0;
pointer-events: none;/* black overlay with 40% transparency */
background: rgba(0, 0, 0, 0.4);
}Hopefully the above will help others in the same predicament.
July 20, 2016 at 6:51 am #1095155
Paul RModeratorHi,
You can change your code to this.
.x-slider-container.below .rev_slider .slotholder:after { width: 100%; height: 100%; content:""; position: absolute; left: 0; top: 0; pointer-events: none; /* black overlay with 40% transparency */ background: rgba(0, 0, 0, 0.4); }Hope that helps
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1088355 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
