Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom index page <title> tag
#9
Carlos Wrote:So you're doing like Chris, but exchanging fields: the <title>... tag will always show the Page title field, but the body heading (<h1>...) your custom title (if defined).
Interesting, a different approach.
Oh, I actually apply this to the page title as well, but with yet another custom field. I just found it limiting to have a page called, say, "Search" with the same title and a H1 callled the same short string.

Here's my titel tag v00d00, a little compressed:

Code:
<title><?php if (return_custom_field('titel')) {get_custom_field('titel'); echo ' – '; get_site_name();} else {get_page_clean_title(); echo ' – ';  get_site_name();}    ?></title>

From a SEO point-of-view it's better to have the desired keywords in both the title and the H1 element, but with this approach, I'm more flexible text-wise.
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: 2 Guest(s)