-
AuthorPosts
-
January 14, 2014 at 2:07 pm #5744
Hi,
is there an easy way to put an image, or at least a gradient, in the header area, obviously behind the logo and menu?
I can see how I could do a workaround by using a slider with only one slide and moving the other items downward, but that seems a bit long-winded for what I want to achieve, and might even slow my site down unneccessarily.Thanks in advance,
Philip.January 14, 2014 at 4:20 pm #5776Philip,
If you are trying to add a background image to the navbar, you can achieve this like so:
.x-navbar { background-image: url(http://yourdomain.com/path/to/your/image.jpg); background-repeat: repeat; }
This will allow you to put a repeating background image on your navbar.
Thanks!
January 15, 2014 at 8:36 am #5951Hi,
that worked perfect.
Thanks a lot,
Philip.January 15, 2014 at 8:56 am #5953You’re welcome!
January 27, 2014 at 7:52 am #8641Sry, but where do you put this code? 🙂
I’ve tried to paste it in the customizer and in my childthemes css with no luck. I guess I muste be doint something wrong.
This is what my chidltheme look like:
/* Theme Name: X - Child Theme: Renew Theme URI: http://theme.co/x/ Author: Themeco Author URI: http://theme.co/ Description: Make all of your modifications to Renew in this child theme. Version: 1.0.0 Template: x */ @import url( '../x/framework/css/site/stacks/renew.css' ); .x-navbar { background-image: url(http://xxxxxxxxxxxxxxxxxxxxxx.png); background-repeat: repeat; }
January 27, 2014 at 9:41 am #8652Hey Johann,
place the custom CSS above the @import statement, then everything will work just fine.
February 28, 2014 at 7:45 pm #18982Hi there,
On this note I was wondering how I could change the colour of the header (instead of white)?
Thanks!
March 1, 2014 at 4:32 am #19071Hey Sam,
try:
.x-navbar { background-color: #222; }
March 2, 2014 at 9:56 pm #19568How do I determine the proper size to make my image? It is a repeating pattern that is a stripe. The repeating image has 4 stripes, but when I upload it, I only see 1 stripe, leading me to believe the file is too large. I tried shrinking it down to 400×400, but I’m still only seeing one stripe. Thanks!
March 3, 2014 at 2:53 am #19602Hey Ashley,
check out the background repeat property: http://www.w3schools.com/cssref/pr_background-repeat.asp
May 6, 2014 at 1:32 pm #41188This worked well for me inside the .x-navbar { }
May 7, 2014 at 7:41 am #41476Thanks for sharing Ryan.
-
AuthorPosts