-
AuthorPosts
-
February 19, 2015 at 3:23 pm #398946
Hi, I changed the functions.php file (on the Child theme… is that right?) and managed to add the custom css fields to my text blocks, with the aim of changing the background colour on one text block element on my page.
I added this to the Quick CSS box in ‘general styling’
.vjw-colouredtextblock { background-color: #ead467; padding: 10px; }
and added this to the Custom CSS Class of my text block
vjw-colouredtextblock
but there’s sill no background colour. Can anyone help?
Many thanks
Victoria
February 19, 2015 at 3:38 pm #398953Hi Victoria!
Can you please try changing the code to following one
.avia_textblock.vjw-colouredtextblock { background-color: #ead467; padding: 10px; }
If that does not help, please post the link to your page where you have the element and point it out
Best regards,
YigitFebruary 19, 2015 at 3:43 pm #398961Thank you for getting back to me. That did not help, sadly.
Here is my page.There’s a section near the bottom, below a yellow page-wide banner that says “HYPNOTHERAPY LONDON – ANXIETY TREATMENT AT 1 HARLEY STREET”
and then a little further this bit:
Interested in hypnotherapy for anxiety (London) – call me.
I am a specialist in anxiety hypnosis. If you’d like a free, no-obligation telephone consultation to discuss how I could help you to be free from your anxiety using hypnotherapy, get in touch here, call 07813 251152, or email (Email address hidden if logged out) .which I want to be in a coloured background box with a border eventually…
many thanks!
February 19, 2015 at 3:54 pm #398967Hey!
Well there is no problem with the selector. Please try adding !important rule as following
.avia_textblock.vjw-colouredtextblock { background-color: #ead467 !important; padding: 10px !important; margin-bottom: 10px !important; }
Cheers!
YigitFebruary 19, 2015 at 3:57 pm #398969Thank you so much for your help, but this still doesn’t work.
Was I right to change the functions.php file on the child theme, not the main theme? (I am guessing so, as the custom style boxes appeared on the elements)
I can give you private access to my wordpress account if that would help?
February 19, 2015 at 3:59 pm #398972Hey!
Yes, i can see that you have successfully applied a custom CSS class to the element. And yes, please post temporary admin login credentials here privately so we can look into it :)
Regards,
YigitFebruary 19, 2015 at 4:01 pm #398974This reply has been marked as private.February 19, 2015 at 4:08 pm #398980Hi!
I removed
<link href='http://fonts.googleapis.com/css?family=Oswald:400,700' rel='stylesheet' type='text/css'>
from Quick CSS field and now it is working fine. Please review your website now :)
Cheers!
YigitFebruary 19, 2015 at 4:12 pm #398984Oh, thanks! That’s great. I can style it up nicely now. I must have added that code not realising the font I wanted was in the list… I can’t even remember why I added that!
All great. Thank you so much for your help
Victoria :)
February 19, 2015 at 4:16 pm #398988Hi!
You are welcome, glad we could help :)
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)Best regards,
Yigit -
AuthorPosts
- The topic ‘Changing background colour in text block – followed guide but still not working’ is closed to new replies.