Solved

Wordpress, default template and widgets

Posted on 2013-11-21
3
359 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
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.
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now