Solved

Wordpress, default template and widgets

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to dynamically set the form action using jQuery.

762 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

20 Experts available now in Live!

Get 1:1 Help Now