A couple of questions about changing the title bar structure.

I've been trying to clean up my site a little and sort out any title bar inconsistencies.

I changed the image.php file to show...

'<?php zenJavascript(); ?>
<title>PHAUXSHOW GALLERY | <?php echo strip_tags(getAlbumTitle());?></title>
<link rel="stylesheet" href="<?php echo $zenCSS ?>" type="text/css" />
<?php printRSSHeaderLink('Album',getAlbumTitle()); ?>'

Now I have two questions...

1. Is there any way to add 'text-transform: capitalize;' to the '<?php echo strip_tags(getAlbumTitle());?>' as all of my album folder aren't capitalized.

2. Is this where Google draws it's result structure from? In the past Google seemed unable to distinguish between the two links below...

http://phauxshow.com/gallery/chester-elmore/
http://phauxshow.com/artists/chester-elmore/

In the end it was indexed like this...

PHAUXSHOW | ARTISTS | Chester Elmore
http://phauxshow.com/gallery/chester-elmore/

Which is weird because as you can see it captured the title bar structure of my blog artist pages but with the gallery URL.

I have just removed the artists part of the permalinks in the hopes that Google will not confuse them as the two types of pages are very distinct.

If I use '<title>PHAUXSHOW GALLERY | <?php echo strip_tags(getAlbumTitle());?></title>' for both album.php and image.php will I run into trouble being indexed?

Comments

  • acrylian Administrator, Developer
    Sadly I am not a seo expert, so I can't really help with that special questions.

    But to 1. http://www.php.net/manual/en/function.strtoupper.php
  • Thanks acrylian,

    I have the code for capitalization...

    '$ucTitleString = ucwords($titleString);'

    I'm not sure how to incorporate it into...

    '<?php zenJavascript(); ?>
    <title>PHAUXSHOW GALLERY | <?php echo strip_tags(getAlbumTitle());?></title>
    <link rel="stylesheet" href="<?php echo $zenCSS ?>" type="text/css" />
    <?php printRSSHeaderLink('Album',getAlbumTitle()); ?>'

    Also, is there any way to get the title to pull from the primary album in all cases instead of the sub-album in some cases?

    getAlbumTitle gets the current album.
  • acrylian Administrator, Developer
    What about `$ucTitleString = ucwords(getAlbumTitle()); echo strip_tags($ucTitleString);?>`?

    You get the parent album of the current album with `$_zp_current_album->getParent()` (The folder name actually).
  • acrylian,

    I'm having a hard time getting the code to work. If I were to take the code from the image.php file...

    '<?php zenJavascript(); ?>
    <title>PHAUXSHOW GALLERY | <?php echo strip_tags(getAlbumTitle());?></title>
    <link rel="stylesheet" href="<?php echo $zenCSS ?>" type="text/css" />
    <?php printRSSHeaderLink('Album',getAlbumTitle()); ?>'

    and incorporate...

    $_zp_current_album->getParent()

    &

    $ucTitleString = ucwords($titleString);

    What would my final outcome look like?
Sign In or Register to comment.