Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

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

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 07-19-2010, 06:46 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default 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!!!!
__________________
xcart 5.1.2
Reply With Quote
  #12  
Old 07-19-2010, 07:15 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,195
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #13  
Old 07-28-2010, 01:27 AM
 
jvannghi jvannghi is offline
 

Member
  
Join Date: Mar 2008
Posts: 23
 

Default 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!
__________________
4.7.9
Reply With Quote
  #14  
Old 07-28-2010, 12:40 PM
  Vacman's Avatar 
Vacman Vacman is offline
 

X-Adept
  
Join Date: Sep 2005
Location: Torrance, CA
Posts: 792
 

Default 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.
__________________
Carl Tice

X-Cart 4.6.6
X-Payments 3.0
ReBOOT 3.4.1

PHP 5.6.30
MySQL 5.6.35
Linux 2.6.32-042stab120.18
ionCube PHP Loader v4.7.3
Perl 5.10.1
Reply With Quote
  #15  
Old 08-10-2010, 11:06 PM
  gallaghersean's Avatar 
gallaghersean gallaghersean is offline
 

Advanced Member
  
Join Date: Aug 2008
Location: Clearwater, FL
Posts: 52
 

Default 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))); 
__________________
.

Contact me about modifying x-cart for your needs.

Xcart Gold versions:
4.5.x, 4.4.3, 4.4.1, 4.4.0, 4.3.1
4.1.10, 4.1.9, 4.1.8

Add-on modules:

Featured Product Carousel
and other various mods I've built
Reply With Quote
  #16  
Old 08-10-2010, 11:20 PM
  ADDISON's Avatar 
ADDISON ADDISON is offline
 

X-Man
  
Join Date: Jan 2008
Posts: 2,613
 

Default 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?
__________________
X-Cart Next: Business 5.2 (learning and testing)
X-Cart Classic: Gold and Gold Plus 4.7
Lots of Modules and Customizations
OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux
Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions)

You can catch my ideas here: http://ideas.x-cart.com
Reply With Quote
  #17  
Old 08-10-2010, 11:26 PM
  gallaghersean's Avatar 
gallaghersean gallaghersean is offline
 

Advanced Member
  
Join Date: Aug 2008
Location: Clearwater, FL
Posts: 52
 

Default 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).
__________________
.

Contact me about modifying x-cart for your needs.

Xcart Gold versions:
4.5.x, 4.4.3, 4.4.1, 4.4.0, 4.3.1
4.1.10, 4.1.9, 4.1.8

Add-on modules:

Featured Product Carousel
and other various mods I've built
Reply With Quote
  #18  
Old 08-11-2010, 08:51 PM
 
cosy cosy is offline
 

Advanced Member
  
Join Date: Mar 2009
Posts: 79
 

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

Can we add our own title?
__________________
Version 4.2.0
Testing v 4.4
Reply With Quote
  #19  
Old 08-12-2010, 03:10 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,195
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #20  
Old 08-12-2010, 07:00 AM
  gallaghersean's Avatar 
gallaghersean gallaghersean is offline
 

Advanced Member
  
Join Date: Aug 2008
Location: Clearwater, FL
Posts: 52
 

Default 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.
__________________
.

Contact me about modifying x-cart for your needs.

Xcart Gold versions:
4.5.x, 4.4.3, 4.4.1, 4.4.0, 4.3.1
4.1.10, 4.1.9, 4.1.8

Add-on modules:

Featured Product Carousel
and other various mods I've built
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:21 PM.

   

 
X-Cart forums © 2001-2020