• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

MitchA
#1 Posted : Tuesday, June 12, 2007 8:20:38 AM(UTC)
MitchA

Rank: Member

Joined: 3/3/2006(UTC)
Posts: 1,737

A few months ago there was a post that showed how to get rid of "Home - " in the title bar. Unfortunately, applying that change (below) affected home, category and product pages so nothing changed in the title bar as other pages loaded.





<SPAN style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana">Modify the "BaseStorePage.vb" file in your App_Code folder.

Change <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

<SPAN style="FONT-SIZE: 8pt; COLOR: #000099; FONT-FAMILY: 'Lucida Console'">Me.Page.Title = Me.PageTitle + " - " + WebAppSettings.SiteName<o:p></o:p>

<SPAN style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana">to <o:p></o:p>

<SPAN style="FONT-SIZE: 8pt; COLOR: #000099; FONT-FAMILY: 'Lucida Console'">Me.Page.Title = WebAppSettings.SiteName<o:p></o:p>

<SPAN style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana">or whatever you want... <o:p></o:p>
<SPAN style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Verdana">

<HR align=left width="50%" SIZE=1>




(I'm really glad I keep a log of my mods... and old files)





[2]I don't know vb well enough... anyone know a better change to this code, or, a better way to remove "Home - "?[/2]

[2][/2]

[2]Thanks.[/2]
Optimists invent airplanes,
Pessimists buy parachutes.
bvuser
#2 Posted : Tuesday, June 12, 2007 3:29:31 PM(UTC)
bvuser

Rank: Member

Joined: 4/10/2006(UTC)
Posts: 462

If you are asking what I think you asking, which is that you want to remove the Title "prefix" only on the home page but keep it there for the category and product pages...

Just modify that line of code with:

If Not Page.IsPostBack Then
If Me.Page.Title="Home" Then
Me.Page.Title=WebAppSettings.SiteName
Else
Me.Page.Title = Me.PageTitle + " - " + WebAppSettings.SiteName
End If
End If

Keep in mind for this to work, you need to be sure that your Home.master file has the Title specified as "Home". The reason just deleting the title "Home" from the home.master is not the recommended way I'd do it is because by doing that you'd be left with "- Mission Furnishings".
Netriplex Corporation<br />
MitchA
#3 Posted : Saturday, June 16, 2007 9:30:19 AM(UTC)
MitchA

Rank: Member

Joined: 3/3/2006(UTC)
Posts: 1,737

That seems to be doing it:

Home page = Home page title (from admin feild)
Category page = Category text (plus) Home page title
Product page = Product page text (plus) Home page title

Thank you!
Optimists invent airplanes,
Pessimists buy parachutes.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2025 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012