Background image for header
February 2014 WordPress Theme
- GK User
- Sat Apr 12, 2014 11:23 am
Good day
I have set up a standard site using your quickstart files.
Please can you point me to how I can add a background image to the widget header area.
Thanks in advance
I have set up a standard site using your quickstart files.
Please can you point me to how I can add a background image to the widget header area.
Thanks in advance
-
- Fresh Boarder
- GK User
- Sat Apr 12, 2014 12:41 pm
Could You please post an url to your site?
-
- Moderator
- GK User
- Sat Apr 12, 2014 5:01 pm
Please edit: wp-content/themes/Mo/css/override.css
It assumes that mybackground.png is placed inside /wp-content/themes/Mo/images folder
Remember to enable "Use the override.css file" in theme settings (item in admin menu, under comments section, advanced tab).
- Code: Select all
#gk-header {
background: transparent url('../images/mybackground.png') 0 0 no-repeat;
}
It assumes that mybackground.png is placed inside /wp-content/themes/Mo/images folder
Remember to enable "Use the override.css file" in theme settings (item in admin menu, under comments section, advanced tab).
-
- Moderator
- GK User
- Sat Apr 12, 2014 6:01 pm
Thank you Cyberek.
That worked by adding the full url of the image in the code. Much appreciated.
One more question if I may. What is the size of the #gk-header header area please, so I can insert an image that fits perfectly.
Thank you
That worked by adding the full url of the image in the code. Much appreciated.
One more question if I may. What is the size of the #gk-header header area please, so I can insert an image that fits perfectly.
Thank you
-
- Fresh Boarder
- GK User
- Sun Apr 13, 2014 10:02 am
Max width is 1260px and height is 728px.
If you would like to center image, then use:
Then for reduced screen size you will see center of image (instead of first code that will stick image to top left corner.
If you would like to center image, then use:
- Code: Select all
#gk-header {
background: transparent url('../images/mybackground.png') 0 50% no-repeat;
}
Then for reduced screen size you will see center of image (instead of first code that will stick image to top left corner.
-
- Moderator
- GK User
- Sun Apr 13, 2014 2:38 pm
Thank you for your help
Very much appreciated.
Very much appreciated.
-
- Fresh Boarder
- GK User
- Sun Apr 13, 2014 2:54 pm
I'm glad I could help.
If You will have any other questions, feel free to post new forum threads - it helps us answer you faster.
If You will have any other questions, feel free to post new forum threads - it helps us answer you faster.
-
- Moderator
8 posts
• Page 1 of 1