Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2011
    Posts
    26
    Plugin Contributions
    0

    help question Fixing CSS for text color

    I just upgraded my ZenCart from version 1.38 to 1.50 and in the process some modifications and settings got backed out. I was able to get almost all of the settings and modifications reinstalled/corrected but I am having problems locating the remaining setting. I have looked through the code in the ZenCart folder as well as the settings in the Admin Screens but can not find the constant I want to change.

    Here is what I need to fix so the Cart is back to the display it had prior to the update.

    I need to find the CSS that is controlling the color of Category Name that appears above the Products List. It is showing as Gray not its old Black.

    Old Version (Black Text)
    Click image for larger version. 

Name:	Picture 6.png 
Views:	74 
Size:	9.5 KB 
ID:	11295

    New Version (Gray Text)
    Click image for larger version. 

Name:	Picture 5.png 
Views:	73 
Size:	12.0 KB 
ID:	11296

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,908
    Plugin Contributions
    96

    Default Re: Fixing CSS for text color

    That would be
    Code:
    <h1 id="productListHeading">Lunacon Memberships</h1>
    ... so you'll either need to look for h1 or #productListHeading styling in your stylesheet.css file.

  3. #3
    Join Date
    Feb 2011
    Posts
    26
    Plugin Contributions
    0

    Default Re: Fixing CSS for text color

    Thank You. I had looked in there already but did not find any color settings for either tag. I went back to the page and found that there was another style sheet that was being called first and IT had a H1 with c9c9c9 color setting. I updated my stylesheet.css (which was 2nd in the sequence) and added a color:#000000 to it which fixed the problem. When doing my prior research I never noticed the extra stylesheet being included and thus missed where the color was coming from.

    I am now a back to my original display and I'm happy. Due to my ISP shutting down my account every time I use 1.38 (it had some virus code in the Zencart folder), I have to be careful of restoring the old 1.38 Zencart folder and using it to look at my backup database (which I created before running the 1.51 Database update). Since they only seem to do the scan early in the morning I might be able to sneak in during the day, use the 1.38 folder and the backup database, and see if I am missing any formatting that I forgot.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,908
    Plugin Contributions
    96

    Default Re: Fixing CSS for text color

    You could also make a copy of your database and file-system and use a local installation of XAMPP to do your 1.3.8a checking ...

  5. #5
    Join Date
    Feb 2011
    Posts
    26
    Plugin Contributions
    0

    Default Re: Fixing CSS for text color

    I'll probably go that route. The problem with that is what encrypted password to put into the config.php file. If I just define the database and restore a .sql dump there is no way of knowing how to allow access.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Fixing CSS for text color

    When you import a sql dump into your db in XAMPP, you can go into its phpMyAdmin and explicitly set the username and password. Then you can set the same for your local ZC installation.

  7. #7
    Join Date
    Feb 2011
    Posts
    26
    Plugin Contributions
    0

    Default Re: Fixing CSS for text color

    Quote Originally Posted by gjh42 View Post
    When you import a sql dump into your db in XAMPP, you can go into its phpMyAdmin and explicitly set the username and password. Then you can set the same for your local ZC installation.
    I was referring to the following two entries:

    define('DB_SERVER_USERNAME', '*******');
    define('DB_SERVER_PASSWORD', '*******');

    The first I know. It is the encoded value for the second. Or do you mean that I do an new install of Zencart creating a new empty database and get the encrypted PW from it and then do the .sql restore which will delete the empty DB and restore my good copy?

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Fixing CSS for text color

    Correct. You need to create the database yourself, and you can set the username and password at the same time in phpMyAdmin. Then you install ZC, import your old db and run zc_install again to "upgrade" the db. The tutorials have full information.

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,908
    Plugin Contributions
    96

    Default Re: Fixing CSS for text color

    Another trick for the local/debug version of your store is to create the files /includes/local/configure.php and /YOUR_ADMIN/includes/local/configure.php that contain the locally-hosted values for the controls -- e.g. define('HTTP_SERVER', 'localhost'); That way, for your local version you could just use the root user with no password for your database accesses.

    The local configure.php files override the hosted versions present in the includes directory, so you can use the file structure from your hosted version directly. Just be careful that you don't mistakenly upload the local versions ... that's a server 500 error for sure!

 

 

Similar Threads

  1. Changes to css for type color
    By LeoJ in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 4 Jun 2013, 04:06 PM
  2. Define Pages Text Color CSS
    By azimpact in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Nov 2010, 06:36 PM
  3. Color of Product Description text... where in the css?
    By trucurrent in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 15 Feb 2010, 04:49 AM
  4. CSS - Text Box Font Color
    By AlexRoss in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Jan 2008, 03:15 AM

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