Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom index page <title> tag
#1
If you want your homepage to have a customized title tag different to the default for all pages, you can do this.

1. Create a component 'titletag' with this content (edit 2nd and 4th lines to what you wish):
Code:
<?php if (return_page_slug()=='index') { ?>
This is my homepage's custom title tag...
<?php } else { ?>
<?php get_page_clean_title(); ?> - <?php get_site_name(); ?>
<?php } ?>
2. Edit your theme's template.php file (and/or others...) or header.php (if using Innovation theme), look for the <title>...</title> line and replace it with:
Code:
<title><?php get_component('titletag'); ?></title>

That's it.
Reply


Messages In This Thread
Custom index page <title> tag - by Carlos - 2011-06-05, 00:57:35
Custom index page <title> tag - by Carlos - 2011-06-11, 18:45:09
Custom index page <title> tag - by ccagle8 - 2011-06-12, 00:47:21
Custom index page <title> tag - by sal - 2011-06-12, 10:03:51
Custom index page <title> tag - by Carlos - 2011-06-12, 16:25:00
Custom index page <title> tag - by Carlos - 2011-06-12, 17:01:57
Custom index page <title> tag - by polyfragmented - 2011-06-27, 22:38:58
Custom index page <title> tag - by Carlos - 2011-06-27, 23:41:50
Custom index page <title> tag - by polyfragmented - 2011-06-27, 23:53:24



Users browsing this thread: 3 Guest(s)