Doug Fir
Doug Fir

Reputation: 21282

Identifying which files to edit when using php based CMS

I'm trying to make some edits to a website. The website is based on a CMS and runs on PHP.

I have some html/css experience and have a thick guide to PHP into book to help me.

Among the many edits I'd like to make to the site which are out of the control from the CMS admin area, I'd like to add a Facebook link in the main nav.

Now, I would normally, if inheriting someone else's simpe HTMl/CSS site just use the inspect element feature in Chrome of FF and then see whereabout to edit the code.

Probably a classic rookie question but how does one do that with PHP? If I right click the nav on my site, how do I know which PHP file to edit? Is there a "best way" here?

Here's the site incidentally if it helps at all. I'd like to add (among many other things) a Facebook icon next to the RSS icon in the main nav. I just don't know which file to edit.

http://tinyurl.com/byal33m

Upvotes: 1

Views: 96

Answers (1)

simbolo
simbolo

Reputation: 7514

This all depends on which CMS you are using. It's like asking - I have a 'word processor', how do I add an image...

You should read the documentation that comes with the CMS that you are using. It will likely explain where the files are.

Typically, CMSs usually have a core directory with contain the files that make the CMS work itself, which you wont need to edit.

Then there is a themes directory which contains the files that make up the HTML that is actually rendered and supplemented with data from the CMS. In the admin area, it usually tells you which theme you are using and where it is located.

Wordpress is a popular CMS, and their documentation explains the basics: http://codex.wordpress.org/Using_Themes

-- Updated

Question relates to Ushahidi CMS which has documentation indicating theme HTML located in the 'themes' subdirectory.

https://wiki.ushahidi.com/display/WIKI/Themes+-+Developers+Guide#Themes-DevelopersGuide-HowdoIinstallatheme%3F

Upvotes: 2

Related Questions