Hello!
I have a background image that looks awesome for the desktop viewing but no good on mobile.
Is there a way to change the background image for the mobile view only?
Thank you,
Duncan
Hey Duncan,
Please edit the Color Section which has the background image you would like to replace and give it a unique ID – http://kriesi.at/documentation/enfold/wp-content/uploads/sites/2/2013/12/color-section-ID.png then add following code to Quick CSS in Enfold theme options under General Styling tab
@media only screen and (max-width: 768px) {
#your-unique-id { background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png)!important; }}
Best regards,
Yigit
Thank you so much for the quick reply!
I did as you suggested. Maybe I’m not following you completely.
I went to the Color Section and gave it an arbitrary unique ID, the word “bird”
I then entered the code in the Quick CSS.
Nothing happened. Could you assist me further?
BTW Iam aiming for the background to be the color #ebebeb
Thank you!
Duncan
Hi Duncan,
Please change the code to following one
@media only screen and (max-width: 768px) {
#bird { background: #ebebeb!important; }}
Best regards,
Yigit
Amazing!!! Thank you so much, Yigit. I’ll apply this kind of coding throughout my site now.
Thank you so much for helping me.
Duncan
Hi Duncan,
We’re glad that Yigit was able to help you. We’ll close this thread now. For any other questions or issues, feel free to post them here on the forum.
Thank you for using Enfold!
Sarah