whats wrong with my code?#

songoku
New Member
8 0 0

I found this code online to attempt to fix an issue i was having. essentially  i wanted to upload my own background to a specific page, is this a possibility because I'm having great difficulty in doing so, I've tried two guides here's the first code which works but unfortunately doesn't specify it to one page

 

background: url({{ 'Women_1.png' | asset_url }}); background-color: $color-body; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; background-position:center; background-attachment: fixed; 

 

here's the second code i attempted to follow but that didn't work either 

 

body.background-class { background-image: url({{'Women_1.png' | asset_url }});
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover; background-size: cover;

<body class="..... {% if page.handle == 'about-us' %}background-class{% endif %} ">
}


}]

 

thanks in advance!

 

0 Likes
songoku
New Member
8 0 0

Can anyone help please? 

0 Likes
songoku
New Member
8 0 0

bump

0 Likes