Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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

    #398953

    Hi 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,
    Yigit

    #398961

    Thank 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!

    #398967

    Hey!

    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!
    Yigit

    #398969

    Thank 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?

    #398972

    Hey!

    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,
    Yigit

    #398974
    This reply has been marked as private.
    #398980

    Hi!

    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!
    Yigit

    #398984

    Oh, 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 :)

    #398988

    Hi!

    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Changing background colour in text block – followed guide but still not working’ is closed to new replies.