remove the ::home from the title
Permalink 2 users found helpful
when i search my site in google it showhttp://www.mysite.com::home how do i remove the ::home from the site title or is it not possible since the home page is the front page. can somebody please help me or explain. All search providers show the same as well as when you like with facebook.
yes on the tab, what do i change the meta title to to make the name just my site name. as of now the meta title is blank. like i said it shows that when i search the site with google or yahoo. i want that to change as well.
What you are seeing is the default behavior of the title attribute. If it has not been manually changed, it will display like so:
Site Name :: Page Name
If you change the meta title attribute in properties, you can put anything you want and have it appear without the :: Home.
In other words, just enter your site's name in there and you'll be good.
Site Name :: Page Name
If you change the meta title attribute in properties, you can put anything you want and have it appear without the :: Home.
In other words, just enter your site's name in there and you'll be good.
thank you
I have been wondering about this too.
What if I want something like this instead:
Site Name :: some other text
or
Site Name - some other text
I guess I'm asking, is there a variable to change the "::" to "-" on a sitewide basis? Also, is it possible to show
Site Name - Top Page Name - Sub Page Name - Sub Page Name
etc instead of
Site Name - Current Page Name
What if I want something like this instead:
Site Name :: some other text
or
Site Name - some other text
I guess I'm asking, is there a variable to change the "::" to "-" on a sitewide basis? Also, is it possible to show
Site Name - Top Page Name - Sub Page Name - Sub Page Name
etc instead of
Site Name - Current Page Name
just enter it how you want it to appear into the meta title atribute box
wouldn't that mean I'd have to type it in explicitly for each and every page?
I dont know any other way. if you had alot of pages that would take some time. I'm sure there is another way but i can't figure it out either.
Something around line 24 of header_required.php in the /concrete/elements folder would probably be a good place to look. If you override it, be sure to copy and paste that file into your [root]/elements folder.
this is what's creating my title, as I have no meta info
[code<?php } else {
$pageTitle = htmlspecialchars($c->getCollectionName(), ENT_COMPAT, APP_CHARSET);
?><title><?php echo sprintf(PAGE_TITLE_FORMAT, SITE, $pageTitle)?></title>
<?php }[/code]
so, is the "::" part of the CollectionName? What's the output of "PAGE_TITLE_FORMAT" and "SITE"?
[code<?php } else {
$pageTitle = htmlspecialchars($c->getCollectionName(), ENT_COMPAT, APP_CHARSET);
?><title><?php echo sprintf(PAGE_TITLE_FORMAT, SITE, $pageTitle)?></title>
<?php }[/code]
so, is the "::" part of the CollectionName? What's the output of "PAGE_TITLE_FORMAT" and "SITE"?
Just ran across this code, to be put in config/site.php:
via:http://www.mesuva.com.au/blog/technical-notes/useful-concrete5-codi...
// Modify the separator in page titles. define('PAGE_TITLE_FORMAT', '%1$s - %2$s');
via:http://www.mesuva.com.au/blog/technical-notes/useful-concrete5-codi...
Fantastic, thanks for the link!
Now to just someday figure out how to get all the page titles in there ... not essential, just a nice to have
Now to just someday figure out how to get all the page titles in there ... not essential, just a nice to have
Without seeing the site you are asking about, I am guessing that the Meta Page Title has been titled ::Home and is showing up on the browser tab
If that's the case, log in to your site - edit page - select "properties" from the tool bar - select "custom attributes" and change your Meta Title.