• Hi! For Velux theme…

    Is there a way to provide CSS code to remove the background image on posts only? Not home page?

    Secondly… is there any way to remove it from pages too? But not home page?

    Thank you!!!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @kimmi721, how are you? I hope you like our Velux theme

    Here is the CSS code that should help you out. If your theme is not customized, then it should work.

    To hide it only on posts, simply add this code:

    
    body.custom-background.single-post {
        background-image: initial;
    }
    

    To hide it on pages as well, without home page included, you can use this code:

    
    body.custom-background.single-post {
        background-image: initial;
    }
    
    body.custom-background.page {
        background-image: initial;
    }
    
    body.custom-background.home {
        background-image: url(https://arielleschwerdcounseling.com/wp-content/uploads/2020/07/photo-1470755008296-2939845775eb.jpeg) !important;
    }
    

    Note that if you want to change the background image, you would need to change the image link here as well.

    Let me know if this helped.

    Have a nice day,
    Andrija

    Thread Starter kimmi721

    (@kimmi721)

    Wow thank you so much! I will try and get right back to you in a couple days when I work on it next! Thank you so so much!

    You are welcome @kimmi721, I hope this works out for you.

    If not, feel free to reply, we are here to help you out.

    Have a nice day,
    Andrija

    Thread Starter kimmi721

    (@kimmi721)

    Hi Andrija!

    So the code worked for pages, but did not work for posts – do you mind helping? Basically I want the post pages to be blank/white.

    Hi @kimmi721,

    I hope you are doing great,

    It appears that you changed your theme to Creativeily, as this is the case none of the codes will work.

    Is there any way you can get us the page so I could create a code for you(like temporarily changing your theme or creating a staging version on which I could test my code in browser tools.

    Alternatively, you may try this code instead for posts but I cannot test it out so it may not work.

    
    body.custom-background.single {
        background-image: initial;
    }
    

    The reason why the initial code may not work could be customization or a plugin overriding the code, but without a page to test I have no way to find out.

    Still, I hope this helps.
    Andrija

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Background Image on Posts/Pages’ is closed to new replies.