Menu

Customising with favicon and crest

Help
2009-11-22
2013-05-30
  • Paul McGrath

    Paul McGrath - 2009-11-22

    Hi,
      would someone mind suggesting how I go about having different favicons and crests for each gedcom i have created.
      Is it better to create blocks or modifying the config.php file?
    I want to have a gedcom specific favicon and a family specific crest to appear above the menu where the PGV logo currently is.
    Thanks
    Paul

     
  • Anonymous

    Anonymous - 2009-11-22

    Paul

    Favicon image and location are set in each theme (theme.php), but cannot be set for individual gedcoms, It is a site specific feature (on any web site, not just PGV).

    The area above the menu is also site specific, so again, cannot be changed on a per-gedcom basis. In this case the best alternative would be a block - the HTML or advanced_html blocks can both have images included. Unfortunately blocks only appear on the Welcome and My Portal pages, so once you get further into the data they will not be visible.

    Your only other option would be to wrap PGV in something such as an iframe, with an independent  front-end to select the gedcom.

     
  • Paul McGrath

    Paul McGrath - 2009-11-22

    Kiwi,
      thanks you I think I'll leave it.  I'll probably end up registering each tree to a separate domain.
    Paul

     
  • Laie Techie

    Laie Techie - 2009-11-23

    There are 2 ways of specifying a favicon. The first is to have a *favicon.ico* file at the root of your webserver (http://www.yoursite.com/favicon.ico). The second is to include a special *link* element in your HTML's head section. Using this second method, it could be possible to specify a different favicon per GEDCOM.

     
  • Paul McGrath

    Paul McGrath - 2009-11-23

    Techie,
      thank you.  That is what had prompted me because I had seen it somewhere else. 

    I might make it a feature request for the next version ;-)

    Thanks
    Paul

     
  • Anonymous

    Anonymous - 2009-11-23

    LT, you are right - and the link in the HTML head section is what PGV currently uses. That works to give a different favicon per THEME - but how would you go about making it per GEDCOM?

     
  • Greg Roach

    Greg Roach - 2009-11-23

    Whilst you could probably change the header programmatically to reflect the current gedcom, you might find that browsers have a habit of caching the favicon, so you may have difficulty getting it updated when a user switches gedcom.

     
  • Paul McGrath

    Paul McGrath - 2009-11-23

    Yes I've seen that IE updates the favicon on a fresh but Firefox doesn't even do it on a restart!

    It would probably be pointless unless everyone is using IE, what a scarey thought.

     

Log in to post a comment.