Blank content for description in head code

DocMartin

Joined: 2005-07-13
Posts: 55
Posted: Sun, 2009-07-26 04:00

I've just had quick try at making meta description, in head code, same as description for album or photo being viewed.
Editing themes/default/views/page.html.php

Blank so far.

Looking at a bit of other code, such as for the <title> tag, I've tried:

<meta name="description" content="<?= $description ?>" />
and
<meta name="description" content="<?= $item>description ?>" />

- but content just blank.

At least, though, I didn't stop my site working, as I've done at times when messing w php code!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sun, 2009-07-26 05:37

That's because those variables are blank, see this thread:
http://gallery.menalto.com/node/89326
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
DocMartin

Joined: 2005-07-13
Posts: 55
Posted: Sun, 2009-07-26 07:25

Thanks for the thread link; code there works

Dave had suggested would be a simple change to the file; to me, I think nigh on impossible to figure just what to do!