PDA

View Full Version : how to edit nav-right


sikor
10-11-2008, 02:16 PM
Hey Folks

I was wondering which file do I need to edit so I can trim my top, right hand side menu? I want to remove links which I have now
| Comments (0) | latest | archives | about | contact | darkfocus |

and leave only
latest | archives

Do I need to edit my template files or files from the main pixelpost dir?

http://foto.sikor.net/
pixelpost: 1.7.1
template: focus 3.0.1 ß

Many thanks!
sikor80

dhdesign
10-11-2008, 02:29 PM
You need to edit your template files to remove those links. If you remove the Comments (0) link, however, nobody will be able to leave a comment on your images, as they won't be able to reach the comment form. If you are eliminating comment functionality entirely from your photoblog, then it wouldn't matter.

sikor
10-11-2008, 03:16 PM
Hey

Yes, that the thing I would like to remove comments and other links to make it as simple as possible. I can edit files in my template directory:
about_template.html
browse_template.html
contact_form_template.html
debug_template.html
image_template.html

but the links are still there on a main page, any ideas how can I remove it from there? index.html file seems to be empty file here

thanks

dhdesign
10-11-2008, 04:03 PM
Open image_template.html and replace the code between the <span class="nav-right"> and </span> tags with the following code:


<span class="nav-right">
<a href="index.php"><strong>latest</strong></a>&nbsp;|&nbsp;
<a href="<SITE_BROWSELINK_PAGED>">archives</a>&nbsp;|&nbsp;
<a href='./index.php?x=rss'>RSS 2.0</a>
</span>


That will remove all of the links except for latest and archives. You then need to upload via FTP all of the edited _template.html files into the templates/focus/ folder on your server.

The index.html file you are looking at is a placeholder file to keep the contents of the folder it is in from being publicly displayed if the webserver isn't configured to have Options Indexes turned off.