Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Add Bullet to Information List

Add Bullet to Information List

Locked

Views: 2,323

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
25 Dec 2006, 9:06 PM
#1
zeta1600 avatar

zeta1600

New Zenner

Join Date:
Dec 2006
Posts:
4
Plugin Contributions:
0

Add Bullet to Information List

I wanted to add bullets to the Infomation box links. I tried to find it on the css but could not figure it out. Thought I could use "list-style-type: square;" command. Any help?

Also, where do i change the Word from "Information" to "Something"

25 Dec 2006, 9:42 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Add Bullet to Information List

You need to read about creating a template first so that the customizations that you make are tracked for you and not lost in a upgrade...

Most of the definitions are contained in the file /includes/languages/english.php file. make a copy for your template override folder and edit the corresponding descriptions and they appear as:

// information box text in sideboxes/information.php
  define('BOX_HEADING_INFORMATION', 'Information');
  define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');
  define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');
  define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');
  define('BOX_INFORMATION_CONTACT', 'Contact Us');
  define('BOX_BBINDEX', 'Forum');
  define('BOX_INFORMATION_UNSUBSCRIBE', 'Newsletter Unsubscribe'); 
```to insert a bullet you can use the ascii code for a bullet -   - and you probably want a space also and this would become

// information box text in sideboxes/information.php
define('BOX_HEADING_INFORMATION', 'Information');
define('BOX_INFORMATION_PRIVACY', '• Privacy Notice');
define('BOX_INFORMATION_CONDITIONS', '• Conditions of Use');
define('BOX_INFORMATION_SHIPPING', '• Shipping & Returns');
define('BOX_INFORMATION_CONTACT', '• Contact Us');
define('BOX_BBINDEX', '• Forum');
define('BOX_INFORMATION_UNSUBSCRIBE', '• Newsletter Unsubscribe');


& # 1 4 9 ;

That is better,  so in the posted code where you see a bullet, replace with the code above with the spaces removed.

The term Information is also here, and you can change it to another term. (Insure that you retain the single quotes that surround the term)


25 Dec 2006, 10:10 PM
#3
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: Add Bullet to Information List

#informationContent.sideBoxContent ul li {list-style-type: disc;margin-left: 12px;}

The margin is in there cause on mine the bullets where outside the border, so I needed to push them over so they where back in the box

25 Dec 2006, 10:14 PM
#4
zeta1600 avatar

zeta1600

New Zenner

Join Date:
Dec 2006
Posts:
4
Plugin Contributions:
0

Re: Add Bullet to Information List

Thanks for the quick reply... Is there a way to do this with an image? I see a lot of site that have squares or arrow images instead of bullets.

25 Dec 2006, 10:16 PM
#5
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: Add Bullet to Information List

list-style-image: url(../images/whatever.gif)

create your own bullet and place it in your templates image folder

26 Dec 2006, 12:21 AM
#6
zeta1600 avatar

zeta1600

New Zenner

Join Date:
Dec 2006
Posts:
4
Plugin Contributions:
0

Re: Add Bullet to Information List

barco57:

#informationContent.sideBoxContent ul li {list-style-type: disc;margin-left: 12px;}



I'm sorry... just to clarify.... where would I do this? english.php or somewhere else?
26 Dec 2006, 12:29 AM
#7
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: Add Bullet to Information List

oh sorry in the stylesheet, you'll need to add it

26 Dec 2006, 12:35 AM
#8
zeta1600 avatar

zeta1600

New Zenner

Join Date:
Dec 2006
Posts:
4
Plugin Contributions:
0

Re: Add Bullet to Information List

Found it... Thanks Barco57