Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

[SOLVED] Repeating Background Image for entire site


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Sep 22, 2012, 10:54 AM
jtsharp
 
23 posts · Mar 2010
I'm admittedly not great with CSS selectors and such, but I'm trying to set a repeating image as the background of my whole site.

I've been editing the content.css file, here:
Quote:
/************************************************** ******************
<BODY> for TEXT
************************************************** ******************/

body {
margin: 0;
padding: 0;
font-family: "Segoe UI", "Lucida Grande", "Helvetica Neue", sans-serif;
font-size: 15px;
opacity: 0; /* <--- will be turned on ( = set to '1' ) with jQuery
after google fonts, if any, have loaded and masonry layout,
if any, was applied */
background: ("http://www.drjeremysharp.com/test/wp-content/themes/montezuma/images/grid.png");
}
In the red section, I've tried all sorts of things to put the image there, but all of them produce a white background, like nothing's changed. I've tried
- background-image: url('wp-content/themes/montezuma/images/grid.png');
- background: url('wp-content/themes/montezuma/images/grid.png');
- background-image: ('http://www.drjeremysharp.com/test/wp-content/themes/montezuma/images/grid.png');

The image itself is 200 x 200 and grey.

Anything jumping out as obviously wrong? I was able to edit the color no problem, but when I try the image it doesn't work.
  #2  
Old Sep 22, 2012, 11:52 AM
jtsharp
 
23 posts · Mar 2010
Figured it out.

For some reason, this works:

background: url( %tpldir%/images/grid.png );
  #3  
Old Sep 22, 2012, 02:03 PM
lmilesw's Avatar
lmilesw
 
10,097 posts · Jul 2009
Central New York State USA
Your were just missing "url" before the link to the image in your original code.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop my background image from repeating keeping as a set size feverproject Header configuration & styling 2 Aug 27, 2012 02:48 PM
Need a repeating background image in POST container not PAGE. gr870sfunk Center area post/pages 10 Apr 27, 2012 01:49 PM
repeating background image not showing up in 3.4.2 sirabi Header configuration & styling 1 Sep 13, 2009 11:12 AM
Stretch Background Image To Fill Entire Page tim5046 Header configuration & styling 3 Jun 9, 2009 10:35 AM
Sidebar repeating background image JCCrgb Sidebars & Widgets 4 May 17, 2009 08:31 PM


All times are GMT -6. The time now is 09:07 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.