Solved

Wordpress, default template and widgets

Posted on 2013-11-21
3
369 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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…

752 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