Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

[SOLVED] Problem using an image as a menu bar background


  #1  
Old Feb 26, 2011, 05:57 AM
Tim F
 
66 posts · Jul 2009
Hi all,

I am trying to use an image as a background for the category menu but having trouble. I can get a color to work just fine but when I try to replace the color with the path to my image, it doesn't display.

This is working to show the color:

div#menu2 {
background: blue;
}

But this isn't displaying my image:

div#menu2 {
background: url('<?php bloginfo('url'); ?>/wp-content/uploads/2011/02/gradblu.jpg') repeat-x;
}

Any ideas?
  #2  
Old Feb 26, 2011, 01:23 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Just for the heck of it try using the full path to the image or try the following.
HTML Code:
div#menu2 { 
background: url('/wp-content/uploads/2011/02/gradblu.jpg') repeat-x; 
}
__________________
~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.
  #3  
Old Feb 26, 2011, 01:35 PM
rickheck
 
139 posts · Oct 2009
I put this in the HTML/CSS Inserts page:

/* for background of menu items */

div#menu1 ul.rMenu li a:link,
div#menu1 ul.rMenu li a:hover,
div#menu1 ul.rMenu li a:visited,
div#menu1 ul.rMenu li a:active {
background: url(/wp-content/images/grey-bar-02.png) repeat-x scroll top left;
}

Works just fine (except for the latest problem of no menu items, but that's not related to this, AFAIK)
  #4  
Old Feb 26, 2011, 04:38 PM
Tim F
 
66 posts · Jul 2009
Cheers guys, but no luck yet using the full path to the image. The weird thing is that I have the image showing up properly behind my actual links, but not in the background of the menu bar.

In case it's relevant, this site has a lot of pages and extends to 2 rows of page links in the menu bar with some blank space at the end of the second row. This blank space is what I want to fill with the same image as other parts of the menu bar.

I used Juggledads cheat sheet and the bit that isn't showing up is green - it's described like this in the cheat sheet.

/* ================================================ */
/* Category menu background */
/* ================================================ */
div#menu2 {
height: 40px;
margin-top:0px;
background: green;
}

The exact code above gives me a green background but replacing 'green' with the image URL in the exact same format as in other bits of the menu bar gives me a blank space. I feel like I'm missing something obvious... is the second row of a menu bar given a different name or something like that?
  #5  
Old Feb 26, 2011, 07:46 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Link to the site?
__________________
~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.
  #6  
Old Feb 26, 2011, 08:22 PM
Tim F
 
66 posts · Jul 2009
I PMed it.
  #7  
Old Feb 26, 2011, 08:27 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Try this
HTML Code:
#rmenu {
background: url('/wp-content/uploads/2011/02/gradblu.jpg') !important;
}
__________________
~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.
  #8  
Old Feb 26, 2011, 08:43 PM
Tim F
 
66 posts · Jul 2009
That was it! Thanks very much for the help.
I will be using your donate link when I get paid this week.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I have NO color in page Menu Bar and/or use an image for background? duramatters Page & Category Menu Bars 1 Aug 19, 2010 09:05 PM
[SOLVED] Problem with menu bar background?? Ver. 3.52, 3.53 przemek New Versions, & Updating 3 Jul 25, 2010 03:54 AM
background image for the Page Menu Bar shirley1 Page & Category Menu Bars 2 Jun 23, 2010 07:18 PM
image not showing in background of page menu bar rinoa3108 Page & Category Menu Bars 5 Jul 30, 2009 07:37 AM


All times are GMT -6. The time now is 06:32 PM.


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