| Author |
Message |
|
Stf
|
Post subject: Adding a picture on top right of site map page Posted: Mon Aug 08, 2011 2:23 pm |
|
Joined: Wed Jul 27, 2011 10:12 am Posts: 330 Location: Hong-Kong
|
|
Hi,
I would like to add a small photo on the top right of the page content of the site map, just below the end of the horizontal orange line.
Like the newspapers here ***/en/left/news/
Should I modify sitemap.php? I know I will have to modify it again if I upgrade IP.
Thanks
Last edited by Stf on Sat Dec 31, 2011 4:45 am, edited 1 time in total.
|
|
 |
|
 |
|
Audrius
|
Post subject: Re: Adding a picture on top right of site map page Posted: Mon Aug 08, 2011 3:30 pm |
|
 |
| Project Manager |
Joined: Wed Nov 25, 2009 9:40 am Posts: 421
|
|
sitemap.php is a file that provides XML information for search engines about all pages of your website. It works for SEO purposes. It has nothing to do with content representation for website visitors.
To add or modify the "look" of your website you need to work with your theme only. In the default theme you need to change main.php.
|
|
 |
|
 |
|
maskas
|
Post subject: Re: Adding a picture on top right of site map page Posted: Mon Aug 08, 2011 4:26 pm |
|
 |
| Project Developer |
Joined: Tue Apr 28, 2009 9:43 am Posts: 1720
|
|
Just want to add one line:
<?php
if ($site->getCurrentZone()->getName() == 'sitemap') { //add css class to some existing HTML element. }
// in CSS add required image as a background.
?>
This will help you detect if current page is sitemap.
|
|
 |
|
 |
|