Solved

add custom background to shopify theme

Posted on 2014-04-08
2
2,362 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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 …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now