Tagged: x
-
AuthorPosts
-
October 27, 2016 at 7:42 am #1233055
agentnightingaleParticipantHi there
I am trying to style the call out box on this page: http://ultimatestrengthtest.nightingalewebsites.co.uk/our-approach/
I want to add a background image, remove the grey border and not have any text appear where it currently states ‘ Don’t forget to enter in your text.’
I added the custom class – ‘my-custom-class’
I tried adding the background image with the following CSS, but it didn’t work:
.my-callout :before {
background-color: transparent;
background-image: url(http://ultimatestrengthtest.nightingalewebsites.co.uk/wp-content/uploads/2016/10/colour.jpg);
background-position: 50% 50%;
background-size: cover;
}I am not sure if the call out box is the best way to create this effect (new to X) so if there is a better way please let me know.
Thanks for your help!
All the best
SamOctober 27, 2016 at 8:15 am #1233102
JoaoModeratorHi Sam,
You need to use this code instead:
.x-callout.my-callout:before { background-color: transparent; background-image: url(http://ultimatestrengthtest.nightingalewebsites.co.uk/wp-content/uploads/2016/10/colour.jpg); background-position: 50% 50%; background-size: cover; }Hope it helps
Joao
October 27, 2016 at 9:58 am #1233249
agentnightingaleParticipantThanks for that – are you able to address the other questions for me?
Remove the grey border around edge
Not have any text appear where it currently states ‘ Don’t forget to enter in your text.’Thank you
SamOctober 27, 2016 at 11:34 am #1233431
JadeModeratorHi Sam,
Please add these code:
.x-callout { background-color: transparent; } .p-callout { visibility: hidden; }Hope this helps.
October 28, 2016 at 6:36 am #1234669
agentnightingaleParticipantHi that’s great.
One last question – what do I need to do to get the text ‘Yoram Sher’ to be in the centre of the the call out box?
Thanks for the help!
SamOctober 28, 2016 at 11:01 am #1234904
JoaoModeratorHi There,
Please add the following code to Appereance > Customizer > Custom > CSS
.x-callout { text-align: center !important; }Hope it helps
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1233055 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
