Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    May 2010
    Posts
    222
    Plugin Contributions
    0

    Default Change color of required text stars in "How Did You Hear About Us?" add on

    I am trying to change the color of the little stars or asterisks that appears next to the referral fields from the "How Did You Hear About Us?" add on. Zen Cart's are red, but these appear to be black.

    Any help would be greatly appreciated

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Change color of required text stars in "How Did You Hear About Us?" add on

    I believe that the stars are images
    You need to locate them and replace with images o the color you want
    Use the same image type and names
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2010
    Posts
    222
    Plugin Contributions
    0

    Default Re: Change color of required text stars in "How Did You Hear About Us?" add on

    I do not believe they are images. I could not right-click on them. Just for clarification purposes, here is an image with two of the asterisks circled:

    Name:  Screen shot 2010-12-03 at 12.08.48 AM.jpg
Views: 123
Size:  38.0 KB

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Change color of required text stars in "How Did You Hear About Us?" add on

    Those are text "asterisk's" and are not designitated seperately from all the rest of the text
    Zen-Venom Get Bitten

  5. #5
    Join Date
    May 2010
    Posts
    222
    Plugin Contributions
    0

    Default Re: Change color of required text stars in "How Did You Hear About Us?" add on

    Quote Originally Posted by kobra View Post
    Those are text "asterisk's" and are not designitated seperately from all the rest of the text
    So they cannot be changed?

  6. #6
    Join Date
    Jun 2007
    Posts
    195
    Plugin Contributions
    0

    Default Re: Change color of required text stars in "How Did You Hear About Us?" add on

    They can be changed using the stylesheet.

    Look for .alert{color:red;margin-left:0.5em;} in stylesheet.css, you can change the colour here.

    Bear in mind though that will also change other text such as 'Required information' and '(at least 7 characters)' etc.

    If you want to change the asterisks only you will have to give them a different class.

  7. #7
    Join Date
    May 2010
    Posts
    222
    Plugin Contributions
    0

    Default Re: Change color of required text stars in "How Did You Hear About Us?" add on

    Quote Originally Posted by PGlad View Post
    They can be changed using the stylesheet.

    Look for .alert{color:red;margin-left:0.5em;} in stylesheet.css, you can change the colour here.

    Bear in mind though that will also change other text such as 'Required information' and '(at least 7 characters)' etc.

    If you want to change the asterisks only you will have to give them a different class.
    That changes the color for the standard ones. I want to change the ones for the add-on. How can I do that?

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Change color of required text stars in "How Did You Hear About Us?" add on

    I want to change the ones for the add-on. How can I do that?
    f you review your posts....You have not stated what addons you have
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Jun 2007
    Posts
    195
    Plugin Contributions
    0

    Default Re: Change color of required text stars in "How Did You Hear About Us?" add on

    If you're using the 'How did you hear about us' mod, this also uses the <span class="alert"> in this file:

    tpl_modules_create_account.php

    This file is supplied with the mod and overwrites the default version supplied with Zencart. This is the location of the file:

    includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php

    If you change the class .alert{color:red;margin-left:0.5em;} in your stylesheet at:

    includes/templates/YOUR_TEMPLATE/css/stylesheet.css then this should also change the asterisks in tpl_modules_create_account.php, if it doesn't then I'm not sure why.

    What you can do however, is to open tpl_modules_create_account.php, and wherever you see <span class="alert"> (18 occurences I think), change this to something like <span class="blueAlert"> - then in -

    includes/templates/YOUR_TEMPLATE/css/stylesheet.css create a new line under

    .alert{color:red;margin-left:0.5em;} and change this to
    .blueAlert{color:blue;margin-left:0.5em;}

    and see if that works for you?

  10. #10
    Join Date
    May 2010
    Posts
    222
    Plugin Contributions
    0

    Default Re: Change color of required text stars in "How Did You Hear About Us?" add on

    Quote Originally Posted by PGlad View Post
    If you're using the 'How did you hear about us' mod, this also uses the <span class="alert"> in this file:

    tpl_modules_create_account.php

    This file is supplied with the mod and overwrites the default version supplied with Zencart. This is the location of the file:

    includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php

    If you change the class .alert{color:red;margin-left:0.5em;} in your stylesheet at:

    includes/templates/YOUR_TEMPLATE/css/stylesheet.css then this should also change the asterisks in tpl_modules_create_account.php, if it doesn't then I'm not sure why.

    What you can do however, is to open tpl_modules_create_account.php, and wherever you see <span class="alert"> (18 occurences I think), change this to something like <span class="blueAlert"> - then in -

    includes/templates/YOUR_TEMPLATE/css/stylesheet.css create a new line under

    .alert{color:red;margin-left:0.5em;} and change this to
    .blueAlert{color:blue;margin-left:0.5em;}

    and see if that works for you?
    I tried that, but it did not work. Changing the span class only affected the default asterisks, not the ones from the module.

    Is there anything else I can do? Thank you for the help so far.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Add a "How did you hear about us?" field?
    By sports guy in forum General Questions
    Replies: 4
    Last Post: 12 Jul 2011, 10:19 PM
  2. Looking to add "How did you hear about us?" drop down to create account
    By nicole1204 in forum Customization from the Admin
    Replies: 1
    Last Post: 12 Jul 2010, 06:42 PM
  3. which add on "how did you hear about"
    By Renz in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Jun 2009, 02:51 AM
  4. Add area to ask "How did you hear about us?"
    By prissypups in forum Managing Customers and Orders
    Replies: 2
    Last Post: 29 Mar 2009, 10:30 PM
  5. How to Add "How Did You Hear About Us?" Box to Login?
    By greenharmony in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Jan 2009, 06:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR