![]() |
|
SEO options I'd like to see - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: SEO options I'd like to see (/thread-3525.html) |
SEO options I'd like to see - spidersilk - 22-08-2008 I recently converted a client's photo gallery that was originally done in static HTML to ZenPhoto. It looks great and the client, a professional photographer, is very happy with how easy it is for him to upload and organize images now. But... I'm finding it challenging to figure out how on earth I'm going to keep the old gallery's fairly respectable search engine rankings. The one good thing about a static HTML gallery was that, even though it was a pain to update, it was easy to customize things like page titles, meta tags, etc. Now I know that in ZenPhoto I can add a reasonably optimized description to an album, and I can probably tweak the theme files to insert the album description as the meta description tag. And it's nice that the album title appears as h1 (at least in the theme I'm using), so it's clear to a search engine that it's the main title of the page. But... There are a few other things that would be really nice to see from an SEO perspective. And I don't mean a "let's over-optimize the site by packing in an insane number of keywords" type of SEO perspective, but more of a genuinely useful "Let's identify this gallery as clearly as possible so that both search engines and people using them know exactly who it belongs to, what it's about, etc." perspective. [list=1] [*]Similarly, it would be nice to be able to have the option of specifying a different HTML page title from the album title used internally. On your gallery's main page, to continue the above example, it might look best to give the albums concise names like "squirrels", "raccoons", "pigeons", etc., but for the page name that shows up in search results (and strongly influences rankings), you might want "Squirrel Photographs by squirrel photographer John Doe" or something like that. [*]I think I had a third point in mind when I started this message but it seems to have slipped away from me... (I should perhaps add: no, the client I created this site for does not actually photograph squirrels. Just in case anyone was wondering... :-) ) SEO options I'd like to see - spidersilk - 22-08-2008 Just an additional note for anyone wanting to do these same things - I just set up a workaround for #2 by including a bit of PHP near the top of the album.php file in my theme that checks the album URL and then uses a switch statement to assign a different optimized title to a variable I've called $page_title, depending on which album we're in. Further down when it's time to print the title tag, it checks for that variable, uses that title if it's there, and the default title setup if it's not. Kind of kludgy, I know, and it would be a pain on a site with a lot of albums, but for a site with a relatively small number of albums (six in this case), it wasn't hard. I could probably also add a couple of lines to each case in the switch statement to assign a meta description and maybe an intermediate length version of the title to use in the h1 album title... Anyway, that's a workaround that anyone with a bit of PHP knowledge and a desire for better search-optimized albums could use in the meantime. SEO options I'd like to see - acrylian - 22-08-2008 Nothing wrong with photographing squirrells..:-) I think the points you mentioned can all be done theme wise.
Please take a look at our functions documentation and maybe the theming tutorial on our site's user guide section. SEO options I'd like to see - spidersilk - 22-08-2008 Thanks - I'll check that out. This gallery was the first time I'd used ZenPhoto, so I just adapted one of the downloadable themes rather than creating one from scratch, but I liked it enough that I have several more in the works now, and ZP has thoroughly supplanted Gallery 2 in my affections. :-) SEO options I'd like to see - kjtooke - 31-08-2008 another SEO feature I'd like: automated sitemap.xml SEO options I'd like to see - acrylian - 31-08-2008 http://www.zenphoto.org/2008/01/hacks/#google-sitemap SEO options I'd like to see - gwmbox - 10-02-2009 Not sure if this is something anyone is still wanting but just thought I'd pipe in here. The addition of meta-tags can be easily added on each of your template pages, such as index.php, album.php, images.php news.php and pages.php etc. What I did was set up the default tags being I then added new functions in the zenpage-template-functions.php, being; / added a bare news content for meta tags / function getBareNewsContent() { / added a bare page content for meta tags / function getBarePageContent() { The 200 is a character count - any more than 200 here is pointless really. Used the same php code for the DC.Title as used in Then added the or into the meta tags of Description and DC.Description The Keywords and Subject however I am still trying to work out. I am trying to work out a way to weight all words in the content and list them comma separated from most common to least common but remove common words such as it, that, and and so on. For the Images and Albums files you will need to define your functions or use existing functions found in the main zenphoto template functions file similar to what is above - using getBareImageTitle etc or whatever you would like. Anyway I hope that helps a little and if someone has some code they can share to do the keywords that would be a great addition - maybe then I can pull it all together and do an SEO metadata plugin or the Core Devs can look at adding this in the next release SEO options I'd like to see - gwmbox - 10-02-2009 Sorry an edit to my previous post - for pages you will need a function like function getBarePageContent() { and then insert in the appropriate meta tags Cheers SEO options I'd like to see - sbillard - 10-02-2009 gwmbox: Your functions might be of interest to other Zenphoto users. I suggest you collect them in a plugin (rather than modify the Zenphoto core.) If you create such a plugin we can add it to the Website. |