Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Feb 2009
    Posts
    895
    Plugin Contributions
    0

    Default Different headers for different pages? Is it possible?

    I am in the testing stage and i am not sure what is feasible or not (or how). I am looking at an animated header that will display some product previews and their use but i would like it ONLY on the main page header while i feel it then becomes a distraction for other pages while the customer is already looking at a product, a review or going through checkout.

    Is it something feasible?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Different headers for different pages? Is it possible?

    Sure. There are various ways you could do it, depending on exactly what and where you want it. One of the easiest would be to add your code to tpl_header.php, wrapped in a test like
    PHP Code:
    if{$this_is_home_page){
    //your animated code

    If you don't know how to get animated content, I'm sure you can find some flash or javascript solutions by googling.

  3. #3
    Join Date
    Feb 2009
    Posts
    895
    Plugin Contributions
    0

    Default Re: Different headers for different pages? Is it possible?

    As i was reading on this topic, searching in this forum, i read somewhere that flash was not accepted (or useable) in headers. Probably misread or misunderstood.

    Here is a sample of what i would like to have on the MAIN page: http:/creationcassel.com/storetest (the animation is only a gif here). Can i use a code that IF it is the main page, use the gif image but if not, use a jpg one?

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Different headers for different pages? Is it possible?

    It is a common opinion that flash is not good to use because it is slow to load, but people use it in headers all the time. What you read may have been that it cannot be used in the <head> section of an HTML page's code (not sure).

    The if() test I posted above would be what you wrap around your gif output.
    PHP Code:
    if{$this_is_home_page){
      
    //your animated gif code
    }else{
      
    //your static jpeg code


  5. #5
    Join Date
    Feb 2009
    Posts
    895
    Plugin Contributions
    0

    Default Re: Different headers for different pages? Is it possible?

    That is possibly what it was. Since i am not very knowledgeable in animation (except for gif files), i will look into it. Thank you for pointing me in the right direction.

  6. #6
    Join Date
    Sep 2010
    Location
    Leamington Spa, UK
    Posts
    31
    Plugin Contributions
    0

    Default Re: Different headers for different pages? Is it possible?

    Sorry to hijack, but on a similar theme...is it possible to display a different banner in the content area for different category pages? So for example, a category for shoes would have a shoes banner for that category and all its subcategories?

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Different headers for different pages? Is it possible?

    That is something that Smart Backgrounds in Free Addons would be good for. If the banner is a background for an area, it will work directly; if you want to switch foreground images, there is a simple coding method described in the readme.

  8. #8
    Join Date
    Feb 2009
    Posts
    895
    Plugin Contributions
    0

    Default Re: Different headers for different pages? Is it possible?

    Someone saw my currently draft animated header and liked it. One thing she asked is whether it was possible to have those animated images clickable in case a customer would see one product displayed and wanted to go to that particular product. I think that would be great if it is feasible but i am not setting my hopes too high on that one. But still, i am curious to know whether it can be done, in any way.

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Different headers for different pages? Is it possible?

    My guess would be that an animated gif cannot have multiple links for different frames, but I don't know for sure. Dynamic Drive's Ultimate Fade-in Slideshow (javascript) does have that ability, and others likely do as well.

  10. #10
    Join Date
    Feb 2009
    Posts
    895
    Plugin Contributions
    0

    Default Re: Different headers for different pages? Is it possible?

    Wow.... this is promising!!!

    Now, since i am still going really step by step, i would need your help in figuring out a few (probably) simple things:

    - which file should i edit to wrap around the gif code? the css file? or another one?
    - what file formats can be used for the background-image in the logowrapper? That Dynamic Slideshow looks exactly like what i would dream of, but does it take that output file in there?
    - finally, is it possible to have two separate "images" in the header so i can animate and link only one part while keeping the other static and unlinked?

    If i can get this to work, it would be soooooooooooooo great, but as i said, i need your guidance, step by step probably.
    Thanks.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. different headers for different categories or pages
    By vazvi in forum General Questions
    Replies: 6
    Last Post: 22 Dec 2012, 10:47 PM
  2. How do I use different headers on different pages?
    By cmplx in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 28 May 2008, 10:34 AM
  3. I this Possible? different shiping costs for different catagories
    By lestere1 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 7 Jan 2008, 09:32 PM
  4. Different header for different product categories possible?
    By Rotkale in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 14 Dec 2006, 12:10 PM
  5. Different Headers for Different Categories.
    By marcus32 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Aug 2006, 11:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg