Solved

add custom background to shopify theme

Posted on 2014-04-08
2
2,705 Views
Last Modified: 2014-04-08
Hi,
We would like to add a custom background to our site - http://www-helpinghandz-com.myshopify.com/
In an effort to resolve this I found the below code within the style.css for Launchpad. After many attempts to set the background url we can’t get bg.png to show. The question:
What is the syntax or what do we need to change to get the background to work properly?

Image url: http://cdn.shopify.com/s/files/1/0353/6305/files/bg.png?677 
___________________________________________

html,body { margin: 0; padding: 0; border: 0; background-color: {{ settings.shop_bg_color }}; }
html { font-size: 62.5%; -webkit-touch-callout:none; -webkit-text-size-adjust:none; -ms-text-size-adjust:100%; }
body { line-height: 1.45em; font-size: 14px; color: {{ settings.body_font_color }}; font-family: {{ settings.base_font | remove: 'Google+' | replace: '+', ' ' }}; }

{% comment %}

Commented out CSS for background for easy background image uploading in case customers ask. Simply upload a file called 'bg.png' and delete lines as necessary.

html{
  background: url({{ 'bg.png' | asset_url }}) 0 0 repeat scroll;
  background: url({{ 'bg.png' | asset_url }}) 0 0 no-repeat scroll;
  background: url({{ 'bg.png' | asset_url }}) 0 0 repeat fixed;
  background: url({{ 'bg.png' | asset_url }}) 0 0 no-repeat fixed;

  /***dat fullscreen background***/
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
{% endcomment %}
0
Comment
Question by:sio2y
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Author Comment

by:sio2y
ID: 39986056
This is what we have now:

background: url({{ 'bg.png' | asset_url }}) 0 0 no-repeat fixed;

Still not showing.
0
 

Accepted Solution

by:
sio2y earned 0 total points
ID: 39986157
Resolution:

We were uploading the image bg.png to files not assets. once we uploaded to assets it showed perfectly.
0

Featured Post

Percona Monitoring and Management and Grafana

Proactive monitoring is vital to a highly-available environment. We have a quick start guide on Experts Exchange for Grafana users.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Businesses who process credit card payments have to adhere to PCI Compliance standards. Here’s why that’s important.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question