Tagged: x
-
AuthorPosts
-
May 19, 2016 at 11:02 pm #1000863
kirk74ParticipantHi there,
I am doing some subtle changes to the spacing in Accordions. This is the CSS as tested in the Firefox developer panel, and it works fine, but when it is entered into customiser it is ignored, so my selector must need to be slightly different??..
thanks
.x-accordion-inner ul li { line-height: 1.5em !important; margin-bottom: 1.2em !important; } .x-accordion-inner p { margin: 0 0 1.2em !important; line-height: 1.5em !important; }May 19, 2016 at 11:32 pm #1000897
DarshanaModeratorHi there,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
Thanks!
May 20, 2016 at 12:06 am #1000934
kirk74Participanthi again, there is actually a lot of other CSS for the accordions that is also being ignore .. strangely too, when I am in the customiser, the CSS changes DO work, but outside of there they are ignored?? It’s strange.
If you look at screengrab, the one on the left is within the customiser, and the changes are being applied . then on the right is same page in browser, changes are ignored.
Thanks
May 20, 2016 at 12:16 am #1000947
kirk74ParticipantOh sorry I just saw your reply. thanks for that!
Here it is: http://synergy4success.org/getting-started-2/
May 20, 2016 at 12:17 am #1000948
kirk74ParticipantThis reply has been marked as private.May 20, 2016 at 12:20 am #1000949
kirk74ParticipantThis reply has been marked as private.May 20, 2016 at 12:48 am #1000983
Rue NelModeratorHello There,
Thanks for the updates. Please edit your page in Cornerstone and insert the following custom css in the settings tab, Settings > Custom CSS
.site .x-accordion-inner ul li { line-height: 1.5em !important; margin-bottom: 1.2em !important; } .site .x-accordion-inner p { margin: 0 0 1.2em !important; line-height: 1.5em !important; }Hope this helps.
May 20, 2016 at 2:32 am #1001119
kirk74ParticipantOh thanks!!
OOPS, I have been putting CSS in the other place, because this is the first time I have used the customiser .. I didn’t even know about the other CSS location.
I notice you are adding .site to the selector .. so is this the case with all CSS when using the customiser, I need to add .site ???
Thx so much you guys are the best
🙂
May 20, 2016 at 2:45 am #1001133
kirk74ParticipantOK I have added the CS to Cornerstone instead of Customiser, and instead just noticed that it only applies to that specific page ..EG.. this page has the customisations on the accordions:
http://synergy4success.org/getting-started-2/
and this page does not.
http://synergy4success.org/set-up-shop/
Surely this has to be a way to still use global CSS while using Cornerstone?
Thx,
May 20, 2016 at 3:20 am #1001175
Paul RModeratorHi,
In that case, please add your css back in Appearance > Customize > Custom > Edit Global CSS
.site .x-accordion-inner ul li { line-height: 1.5em !important; margin-bottom: 1.2em !important; } .site .x-accordion-inner p { margin: 0 0 1.2em !important; line-height: 1.5em !important; }Thanks
May 20, 2016 at 5:57 pm #1002209
kirk74ParticipantWorked perfectly now globally, and I haven’t added the .site to the selector yet, and it still works … (strangely this is exactly hoe I had the code before and it didn’t work, I am thinking now may have been a caching issue)
So I am curious, what is the point of .site , as in this case doesn’t seem needed at all?
Thank you so much.
May 21, 2016 at 1:13 am #1002642
RadModeratorHi there,
Yes, not needed at all since it’s a common selector. You can ignore that 🙂
It’s only useful when selecting direct child element such us
.site > .x-containerCheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1000863 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
