Adding custom background image to page-template(s) through php?
-
Hi,
I am tweaking the theme JQ quite a bit for a website with mainly “static” pages. It is working fairly well but I have a question concerning background images:I need to have separate background images for several sections of the site. I will be using templates to customize the sections since there are a lot of other differences too. If I could call a specific background image in these templates by making a condition saying something like:
if (h2.page_headline == “thisTitle”) {
background-img = “thisPage’s-background-image.jpg”;
};
(I would know how to write this in Flash but not in PHP..)If that is possible I could actually use only one template for most of these pages. If not, I have to make a custom template for each of the individual sections/submenu-pages which will make it much more difficult to update for the customer.
Because of several reasons the background images actually reside in a separate div in the pages. Which means I can’t put them in the CSS-file.
Is there anyone that can help out there? ??
- The topic ‘Adding custom background image to page-template(s) through php?’ is closed to new replies.