Support Forums

remove just the website name from title tag

This is a discussion on remove just the website name from title tag within the Technical Support forums, part of the Technical Support Forums category; Hi there, Is it possible to remove the website name from the title tag, when you click in to the ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 02-15-2009, 03:57 AM   #1
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 15
jason1971 is on a distinguished road
Arrow remove just the website name from title tag

Hi there,

Is it possible to remove the website name from the title tag, when you click in to the categories ?

so that you just have the category name appearing in the title tag.????

Also, once you click on to the sub-category name, is it then possible to have JUST the sub-category name showing without both the website name and category names showing

as it appears now
mywebsitename.com>>category name >> sub-category name

would just like the final result to appear in the title tag

sub-category name

hope somebody can hep me if it is possible to do

Thanks

Jason
jason1971 is offline  
Old 02-15-2009, 09:24 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,416
Rep Power: 139
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Its going to take a long series of smarty logic if you have the designer edition or you will have to modify a function if you want to do it via php at the script level.

Since I have no idea which version your running or designer/developer I cant really be more specific.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline  
Old 02-15-2009, 10:18 AM   #3
Developer & Moderator
 
Mike-N-Tosh's Avatar
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,427
Rep Power: 75
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Jason,

Try this in your layout.tpl file around line 6:
HTML Code:
{* Modification to have custom titles for categories *}
   {if $body=='categories/browse.tpl'}
      <title>{$categoryname}</title>
   {else}
      <title>{$sitetitle}</title
   {/if}
-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Old 02-15-2009, 12:11 PM   #4
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 15
jason1971 is on a distinguished road
Default thanks

Thanks Mike,

Your a star, that worked a treat

Jason
jason1971 is offline  
Old 02-15-2009, 05:01 PM   #5
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 37
bowers01 is on a distinguished road
Default

What i have done is in administration set the site name to one space.
Then from a series of IF statments named each page.
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Old 02-15-2009, 09:25 PM   #6
Developer & Moderator
 
Mike-N-Tosh's Avatar
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,427
Rep Power: 75
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

You're welcome Jason.

-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Old 02-16-2009, 06:04 AM   #7
All Hands On Deck
 
seymourjames's Avatar
 
Join Date: Mar 2008
Posts: 3,529
Rep Power: 89
seymourjames is a jewel in the rough
Default

This question comes up often in many forms as part of a general problem in defining titles, meta descriptions, etc and using those variables on the page as well. Many people may find this post of interest as it should bring most of it together.

http://www.68classifieds.com/forums/...html#post35327
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline  
Old 05-05-2009, 05:41 PM   #8
Junior Member
 
Join Date: Apr 2009
Posts: 20
Rep Power: 12
Offshoreboat is on a distinguished road
Default Question...

First, thanks for the valuable information of this post.

This question is to both Seymourjames & Mike... I was reviewing this post & and the associated sticky post from seymourjames.

In your example Seymour, your logic is based on the .php page while in Mikes example logic is based on the .tpl file being requested.

What are the pro's & con's of each? Which provides more flexibilty, easier management and better scalablity & performance?

Thanks in advance!
__________________
Running Developer 4.1 | SEO mod
Offshoreboat is offline  
Old 05-05-2009, 07:13 PM   #9
Developer & Moderator
 
Mike-N-Tosh's Avatar
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,427
Rep Power: 75
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

I believe it is really more a matter of personal choice. Obviously, my post in this thread was for one specific element, <title>, whereas seymourjames' post covered the plethora of elements.

There are two observations that I would make:
1. The template file is already assigned whereas in Seymourjames' example there is an additional call for the URI.
2. I don't keep my individual items in a separate language file.

Those items could be good or bad from a personal perspective.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Old 05-05-2009, 07:41 PM   #10
All Hands On Deck
 
seymourjames's Avatar
 
Join Date: Mar 2008
Posts: 3,529
Rep Power: 89
seymourjames is a jewel in the rough
Default

It is just personal choice. I prefer testing the .php in general because that is how I think about the system. I also prefer to keep all text if it is text to be displayed or used in a metatag for example within one file (i.e. english.php file).
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C
seymourjames is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
removing website name from <TITLE> tag jason1971 Technical Support 3 02-09-2009 07:52 AM
Remove Site Title from HTML Emails berg Technical Support 2 08-18-2008 08:57 AM
Hacked website? calaf6 Off Topic 2 05-10-2007 09:28 AM


All times are GMT -4. The time now is 06:23 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0