Solved

Wordpress, default template and widgets

Posted on 2013-11-21
3
362 Views
Last Modified: 2013-12-03
Hi Guys,

On my site i would like to add a different image to each page on the therapies tab here on http://soul.greatlocks.ie the thing is if i add an image widget to the pages sidebar the same image will show on every page.

Is there a way to get round this? will i have to create a different template for every page?
0
Comment
Question by:jonathanduane2010
3 Comments
 
LVL 25

Assisted Solution

by:James Rodgers
James Rodgers earned 167 total points
ID: 39665707
in the page edit/add screen in to top right there is screen option, click to ope and check custom fields


create a field called page-background (or similar) and as a value use the image path

then just heck to see if the field exists,   and add something like this to the header

if(is_page() &&  get_post_meta( get_the_ID(), 'page-background',true) ) {
code to set page background goes here
}
0
 
LVL 15

Assisted Solution

by:eemit
eemit earned 166 total points
ID: 39665908
Try the Plugin Widget Logic.
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 167 total points
ID: 39665928
You can add multiple image widgets and then use Jetpack's Widget Visibility module or the Dynmaic Widgets plugin to control the visibility if the image widgets.  

Otherwise, you can use Jester's custom fields solution (which also works and can be used for more than just backgrounds).
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question