Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

add custom background to shopify theme

Posted on 2014-04-08
2
Medium Priority
?
2,800 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

721 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