You must be logged in to post
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Different images on different pages in the top side bar. Possible? How?

UserPost

10:41 am
August 25, 2009


bizmobi

Member

posts 13

1

What's goin down Ryan,

Using flexibility2…

Is it possible to have a different background image appear in the top sidebar for each page I create?

I've put a background image in without a problem but I would like to change it on each page to something relevant to each pages topic.

So far I've created another div for the new top side bars but after thinking a bit that's just going to add another top side bar.

SO, I want to make sure what I'm about to try is going to work before I do it so I'm calling on your expertise for guidence (it'll save me time and headache if I'm wrong…highly likley).

1. Creating a new page template for each page, with a new 'div id' for each top bar.

2. Duplicate the original 'div style' in style.php once for every new 'div id' changing the bg image each time. 

3. Save changes and upload the new page templates to my server. 

If this is correct…

1. How do I create a .php file? Do I just save my text doc with a .php extension like I would .html or .css? (I'm using notepad)

2. What folder do I upload the new page templates to?

If this is incorrect…&%$@!

What do you suggest?

Thanks in advance Ryan, Flexibilty rocks!

Mark

P.S.

After doing this would it still be easy to upgrade to flexsqueeze without any issues?

8:45 am
August 26, 2009


Ryan

Admin

posts 1523

2

What kind of image are you inserting?  A background image?  A product image?  You could use a page template to do it.  All you would need to do is open your page.php file and add the php code with the template name like this:

<?php
/*
Template Name: Whatever you want
*/
?>

Then save it as a unique file in the theme folder (flexibility2). Then you would have access to that template for any pages.  You could use notepad, just save it out as a .php file.

You could upgrade to flexsqueeze, but you'd need to copy your templates and images over into the new theme folder.