Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Changing fonts in define_main_page

Changing fonts in define_main_page

Locked

Views: 1,660

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
16 May 2008, 2:54 PM
#1
dwessell avatar

dwessell

Zen Follower

Join Date:
Mar 2005
Posts:
143
Plugin Contributions:
0

Changing fonts in define_main_page

Hi,

I'm using the admin editor to change this file, and I can't get the font to change. It accepts the color change, but not the font. Can someone point me in the right direction?

Here's the actualy HTML output:

<div id="indexDefaultMainContent" class="content">Welcome to Straight Razor Designs!

<p>Our goal is to offer you only the finest in men's wet shaving and grooming products - products that we personally have used and endorse.<p><br>

<div style="color:#95602c; font-weight:bolder; font-family:'Lucida Sans Unicode';">

<center>
Check out our beautiful in stock Maestro Livi Customs.<br><br>
<a href="http://straightrazordesigns.com/index.php?main_page=index&cPath=7_39"><img src="/images/frontpage/1.gif" /></a><br><br>

Wow Look at these American Craftsmen Beauties.<br><br>
<a href="http://straightrazordesigns.com/index.php?main_page=product_info&products_id=78"><img src="/images/frontpage/3.gif" /></a><br><br>

Check out the complete line of Truffit & Hill Toiletries.<br><br>
<a href="http://straightrazordesigns.com/index.php?main_page=index&manufacturers_id=3"><img src="/images/frontpage/2.gif" /></a><br><br>

Kent Handmade Hair Brushes and Toothbrushes will be arriving soon!<br><br>
<img src="/images/frontpage/5.gif" /><br><br>

We will be adding soon Dovo Straight Razors and Grooming Tools.<br><br>
<img src="/images/frontpage/6.gif" /><br><br>

Also coming soon is a great selection of Merkur Double Edge Razors.<br><br>
<img src="/images/frontpage/7.gif" /><br><br><br>
</center>

</div></div>

Thanks
David

16 May 2008, 5:06 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changing fonts in define_main_page

font-family:'Lucida Sans Unicode'
You can not actually control the font that is seen by a users browser...
This is fully dependant upon what fonts they have available.

16 May 2008, 5:12 PM
#3
dwessell avatar

dwessell

Zen Follower

Join Date:
Mar 2005
Posts:
143
Plugin Contributions:
0

Re: Changing fonts in define_main_page

But none of the websafe fonts that I put in there seem to make a difference Lucidia Sans, Arial, etc... Is there something that could be overriding this?

Thanks
David

16 May 2008, 5:16 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changing fonts in define_main_page

Are you using the html editor?

16 May 2008, 8:09 PM
#5
dwessell avatar

dwessell

Zen Follower

Join Date:
Mar 2005
Posts:
143
Plugin Contributions:
0

Re: Changing fonts in define_main_page

kobra:

Are you using the html editor?

No.. I'm using the plain text editor.. <confused>

Thanks
David

16 May 2008, 10:12 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changing fonts in define_main_page

No.. I'm using the plain text editor.. <confused>
You can either set it to always use it
Admin > config > my store > HTML Editor > set to html area

Or for one session - admin > tools > Define Pages Editor > select htmlarea from drop box
Now until you log out - it will be used over the plain text editor...

FYI - You can toggle between them in the html area nav bar by selecting the <> icon

17 May 2008, 1:00 PM
#7
dwessell avatar

dwessell

Zen Follower

Join Date:
Mar 2005
Posts:
143
Plugin Contributions:
0

Re: Changing fonts in define_main_page

But that still leaves me with why a perfectly valid div style would be ignored? I can load the code into a seperate html file, and it processed correctly..

Thanks
David

17 May 2008, 6:29 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Changing fonts in define_main_page

You need to provide more detail about what it is you are seeing and a link and description of what you expected and what is there helps

22 May 2008, 8:28 AM
#9
xzeth avatar

xzeth

New Zenner

Join Date:
May 2008
Posts:
2
Plugin Contributions:
0

Re: Changing fonts in define_main_page

i have the same problem i want to change the font size .. but i it is not found somewhere in the css file.. i tried to investigate it with firefox... and i saw this line of code.. but I can't locate it in any file

<span lang="en-US" style="font-size: 11pt; font-weight: bold;">HERE IS YOUR DEFINE MAIN PAGE TEXT</span>

and this

element.style {
  font-size:11pt;
  font-weight:bold;
}

i need help on where to find or put this

22 May 2008, 1:30 PM
#10
dwessell avatar

dwessell

Zen Follower

Join Date:
Mar 2005
Posts:
143
Plugin Contributions:
0

Re: Changing fonts in define_main_page

I finally switched over to the HTML editor, as I didn't have time to work through this. Once I install a test site I'll try again..

I can't see why my code didn't work.. An inline div should overide any css styles, but this time it didn't..

I'll post back once I can get to it.

dw

22 May 2008, 3:00 PM
#11
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Changing fonts in define_main_page

When you are working on developing a website it is essential that your Browser must be set to always look for the latest version of any page you visit - otherwise it will serve up the page from the PCs cache - and you won't see any changes.

Vger