- This topic has 5 replies, 3 voices, and was last updated 11 years, 6 months ago by
Tom.
-
AuthorPosts
-
August 25, 2014 at 6:55 am #18604
Pam
I would like to have different images appear at the top of my sidebars on each page of my website. Is this possible using the Background image add-on?
August 25, 2014 at 8:50 am #18689Dee Broughton
In my experience the background image spreads over all the widgets in the sidebar as if one image is behind several windows. It looks really nice. But if I understand what you are describing, I’d put the image I wanted in a widget at the top of the sidebar and then style that widget to have a transparent background and no margins or padding. For example:
#right-sidebar #text-5 {
background: transparent !important;
margin: 0,0,20px,0 !important;
padding: 0 !important;
}If you don’t really want it in the sidebar widgets but in the container, I’m sure Tom will have great advice.
August 25, 2014 at 9:11 am #18716Tom
Lead DeveloperLead DeveloperHi Pam,
Would these be background images, or just images inside widgets?
To make a widget appear on specific pages, I like to use this plugin: https://wordpress.org/plugins/display-widgets/
Dee’s code above would work to remove the spacing around the specific widget, minus the #right-sidebar.
So it would look like:
#text-5 { padding: 0; }Of course, #text-5 would have to match that specific widget (they all get different numbers generated).
Let me know if this helps at all 🙂
August 25, 2014 at 10:21 am #18739Pam
They would be images inside of the widgets, positioned at the top, over the copy. Thanks!
August 25, 2014 at 8:10 pm #19156Dee Broughton
Pam, that’s what is happening here http://www.dbepub.com. All of the book covers are widgets that are styled the way I said above. Of course, as Tom points out my code is overkill. Can you tell I’m not a coder? 🙂
It also works to just put an image link in GP Hooks, Before [Right or Left] Sidebar Content, which might be easier if you are only doing one or two. I did that with the social media icons here. http://www.elt.international
In addition to the plugin Tom recommended, I use Widget Context to put widgets where I want them. Works great with GeneratePress, too.
Best of luck!
August 28, 2014 at 10:03 am #20576Tom
Lead DeveloperLead DeveloperHi Pam,
Were you able to figure this out? 🙂
Thanks for the help, Dee! It’s appreciated 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.