X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Here is How to Change Page Title Tag Format (remove "::") (https://forum.x-cart.com/showthread.php?t=53332)

ARW VISIONS 07-19-2010 06:46 PM

Re: Here is How to Change Page Title Tag Format (remove "::")
 
Ummm, when are they going to stop using thjis for a title?

Every version since I started x-cart has had this. And I have to change it every time?

what gives!!!!

cflsystems 07-19-2010 07:15 PM

Re: Here is How to Change Page Title Tag Format (remove "::")
 
Or they should have added this in the SEO settings - easy to do it

jvannghi 07-28-2010 01:27 AM

Re: Here is How to Change Page Title Tag Format (remove "::")
 
Hey guys,

I can't seem to make this change in 4.1.5.

I found it in the template but would show an error after trying to save. Also nothing in General/SEO.

I'd appreciate any help!

Vacman 07-28-2010 12:40 PM

Re: Here is How to Change Page Title Tag Format (remove "::")
 
Likewise I can't get it to work for 4.3.2. I made the changes, cleared the cache, etc - and no difference.

gallaghersean 08-10-2010 11:06 PM

Re: Here is How to Change Page Title Tag Format (remove "::")
 
Hi guys,

I've been setting up 4.4 beta and thought you might want to know how to change the title tag for that. Yes they did it again - using :: in title tag again. I don't understand why they do that? Maybe we can convince them to add something in to 4.4 since it's beta so we don't have to mod it every time.

Anyways, on with the show...

My previous version instructions work for the 4.4 Beta with the exception that you are looking for the following line on 107 to edit/replace.

PHP Code:

$title str_replace(array("\n""\r"), array(''''), trim(implode(' :: '$tmp))); 


ADDISON 08-10-2010 11:20 PM

Re: Here is How to Change Page Title Tag Format (remove "::")
 
Correct. But you are now able to set up your own breadcrumb in Admin. Just check Appearence settings at the bottom in v4.4.

Also they set a language variable called $lbl_site_path, which is Home by default. I can change the name or leave it empty. This new feature will help you with the location. Home :: Category 1 :: ...

If it is empty, Home will dissapear from path.

Quote:

Originally Posted by gallaghersean
Yes they did it again - using :: in title tag again. I don't understand why they do that?


gallaghersean 08-10-2010 11:26 PM

Re: Here is How to Change Page Title Tag Format (remove "::")
 
Quote:

Originally Posted by am2003
Correct. But you are now able to set up your own breadcrumb in Admin. Just check Appearence settings at the bottom in v4.4.

Also they set a language variable called $lbl_site_path, which is Home by default. I can change the name or leave it empty. This new feature will help you with the location. Home :: Category 1 :: ...

If it is empty, Home will dissapear from path.


Yes, you can change the breadcrumb but that does not change the title tag - you still have to manually get in there and change the function.get_title.php file. Also you can't setup the title tag in this format keyword - keyword | Company Name by changing the $lbl_site_path variable. The best you can get with that is keyword - keyword - | Company Name (notice the dash and pipe before company name & the dashes are only present if you do my mod).

cosy 08-11-2010 08:51 PM

Re: Here is How to Change Page Title Tag Format (remove "::")
 
Can we add our own title?

cflsystems 08-12-2010 03:10 AM

Re: Here is How to Change Page Title Tag Format (remove "::")
 
No, not with this. But you can do it with one of the following
1. Buy 3rd party SEO module like CDSEO OR
2. Use this free mod - http://www.cflsystems.com/custom-page-titles-mod-for-x-cart-shopping-cart.html OR
3. Upgrade to 4.3.2 where the above #2 is already build in

BTW I would recommend you to upgrade to at least 4.2.3 - 4.2.0 was buggy

gallaghersean 08-12-2010 07:00 AM

Re: Here is How to Change Page Title Tag Format (remove "::")
 
Quote:

Originally Posted by cosy
Can we add our own title?


Yes, you can use this to create your own title. You could of course have to write more PHP in order to do that and let X-Cart know which pages you want with what title tag. Thus that's why cflsystems suggested the SEO mods as it might be easier to just add one of those mods (depending on your PHP skills) than try to write a custom title tag insertion that goes by page type.


All times are GMT -8. The time now is 07:34 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.