If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / How can i change the color for text on maiin page?

How can i change the color for text on maiin page?

Started by amebb on 12 Oct 2024, 6:54 PM · Views: 2,910

Results 1 to 17 of 17
12 Oct 2024, 6:54 PM
#1
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Post #1 by amebb

I am using ZC 1.5.8a with the bootstrap 4... v3.6.0

On the home page you have 'Welcome Guest! Would you like to log yourself in'.

Where is the file that i need to change the color of 'log yourself in'..?

Thank you

13 Oct 2024, 10:09 AM
#2
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Post #2 by shop_suey

You have the Developer Tools builtin inside Zen Cart which help you find certain text strings.

roller-aus-blech.de
Selling on eBay? Use the fee calculator: https://webconcept.one/en/ebay-fee-calculator/

13 Oct 2024, 11:10 AM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #3 by swguy

Also, using Google Chrome Inspect is a great way to quickly track down CSS classes.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

13 Oct 2024, 1:15 PM
#4
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Post #4 by amebb

swguy:

Also, using Google Chrome Inspect is a great way to quickly track down CSS classes.

Hi
So, I am using Chrome and using the inspect feature on my website.

From here i can see infrmation regarding the text i want to change, including the colour too.

But, i am not sure where i need to go to change the colour. I have had a look at the Bootstrap CSS file and there is nothig i can do there.

So, what file do i need to look at when it comes t changing the colour on the text?

Thank yoou for your help

13 Oct 2024, 1:29 PM
#5
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Post #5 by amebb

Shop Suey:

You have the Developer Tools builtin inside Zen Cart which help you find certain text strings.

I have tried using the Developers option too. I can find the file where i can edit the text, change it to what i want it to say etc. But, it does not give me the option to change any colours etc.

This is where i am getting stuck.

Thanks

13 Oct 2024, 2:20 PM
#6
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Post #6 by carlwhat

welcome to the nightmare that is configuring the bootstrap template! (no offense to its maintainer who does an awesome job and should be thanked on every post!)

the greeting looks to currently controlled by the config value:

ZCA_BODY_TEXT_COLOR

from your admin, use the developer tools to search for that value and you can then change it and see the color change....

although that will change all of your text!

if you want to change just the greeting, go to this file:

includes/templates/bootstrap/css/site_specific_styles.php

(or whatever the heck you have named your clone of the bootstrap template) and just under style add your css. ie:

<style>
    .greeting {
        color: indianred;
    }
...

hope that helps.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

13 Oct 2024, 2:44 PM
#7
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Post #7 by amebb

carlwhat:

welcome to the nightmare that is configuring the bootstrap template! (no offense to its maintainer who does an awesome job and should be thanked on every post!)

the greeting looks to currently controlled by the config value:

ZCA_BODY_TEXT_COLOR

from your admin, use the developer tools to search for that value and you can then change it and see the color change....

although that will change all of your text!

if you want to change just the greeting, go to this file:

includes/templates/bootstrap/css/site_specific_styles.php

(or whatever the heck you have named your clone of the bootstrap template) and just under style add your css. ie:

<style> .greeting { color: indianred; } ... ``` > > hope that helps. I have had a look and i dont have that file that you have mentioned. The file that i have is > dist-site_specific_styles.php and cntains this :- <?php /* * BOOTSTRAP 3.3.0 * * Create a file called "site_specific_styles.php" to contain any changes * to base css provided by this template. Place site-specific content * between the opening and closing style tags. * * Refer to <https://github.com/lat9/ZCA-Bootstrap-Template/blob/v300/pages/faqs.md> for * additional information. */ ?> <style> /* Your content here ... */ </style>
13 Oct 2024, 3:01 PM
#8
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #8 by swguy

You need to create site_specific_styles.php from dist-site_specific_styles.php. The latter is a template (just like what is provided for the configure files).

See

https://github.com/lat9/ZCA-Bootstrap-Template/wiki/Frequently-Asked-Questions

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

13 Oct 2024, 3:35 PM
#9
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Post #9 by amebb

swguy:

You need to create site_specific_styles.php from dist-site_specific_styles.php. The latter is a template (just like what is provided for the configure files).

See

https://github.com/lat9/ZCA-Bootstrap-Template/wiki/Frequently-Asked-Questions

Wow . that sounds complicated. I was thinking that it may be something simple... dam

13 Oct 2024, 3:51 PM
#10
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #10 by swguy

It's not so bad - give it a whirl.

  • cd to /includes/templates/bootstrap/css/
  • copy dist-site_specific_styles.php to site_specific_styles.php
  • make the changes described above in @carlwhat's post
  • refresh your page to see the changes.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

13 Oct 2024, 3:55 PM
#11
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Post #11 by amebb

lol you sound so assuring at my skills.... lol If the internet crashes and stops... then you know i have messed up big time lol

OK, let me give it a go... pray to all the internet gods that i dont mess up .... lol

13 Oct 2024, 6:01 PM
#12
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #12 by swguy

Just wear your lucky socks and hold your mouth right - you'll be fine.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

13 Oct 2024, 8:02 PM
#13
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,908
Plugin Contributions:
23

Post #13 by dbltoe

I don't want to make it more confusing for you but you also need to consider that this is a link. As such it is controlled by more than just the .greeting class. And is also important when it comes to accessibility standards. Standards require that a link use some form of identification to let it be known without a doubt that it *is *a link.

A link can have several "events" attached to it. It can just be sitting there waiting to be used, be hovered over, already visited, let you know where you are in the site, etc. Each oof theswe events can have a different style attached to it. It can also have text decoration such as underline to show that it is a link. You can even change the mouse image which you often see on a site. And, more than likely, there is a class in your stylesheet specifically for links and link events that may override any settings you add to the site specific stylesheet.

A very concise explanation of all this can be found at https://www.w3schools.com/css/css_link.asp.

Again, I don't want to make it seem like an unsurmountable task, but you have hit one of the more important and involved areas of website compatibility.

If you will let us know the URL of your site and the color you are wanting, we can be very specific about what to put in the site specific stylesheet.:yes:

Let's get it right in one shot versus possibly unknowingly creating problems down the road.

Use something like yoursitedDOTcom if you don't want the entire world on your doorstep just yet.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

13 Oct 2024, 8:21 PM
#14
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Post #14 by amebb

dbltoe:

I don't want to make it more confusing for you but you also need to consider that this is a link. As such it is controlled by more than just the .greeting class. And is also important when it comes to accessibility standards. Standards require that a link use some form of identification to let it be known without a doubt that it *is *a link.

A link can have several "events" attached to it. It can just be sitting there waiting to be used, be hovered over, already visited, let you know where you are in the site, etc. Each oof theswe events can have a different style attached to it. It can also have text decoration such as underline to show that it is a link. You can even change the mouse image which you often see on a site. And, more than likely, there is a class in your stylesheet specifically for links and link events that may override any settings you add to the site specific stylesheet.

A very concise explanation of all this can be found at https://www.w3schools.com/css/css_link.asp.

Again, I don't want to make it seem like an unsurmountable task, but you have hit one of the more important and involved areas of website compatibility.

If you will let us know the URL of your site and the color you are wanting, we can be very specific about what to put in the site specific stylesheet.:yes:

Let's get it right in one shot versus possibly unknowingly creating problems down the road.

Use something like yoursitedDOTcom if you don't want the entire world on your doorstep just yet.

Thank you so much for yur explanation regarding what i am trying to achieve.

For me before i started this thread i thought the task of changing colour of the text on the main page was a straight forward process. My understanding of this has changed and i do understand the complexities of what is involved, so i truly appreciate everyones help here.

Okay, so.... I have a website that is selling goods that are aimed for the Adult market. Not p0rn or anything sleazy, just silicone toys. If anything like this causes offense to anyone, i do apologise in advance.

The URL is.... https://www.kinkyx.com

Thank you for your assistance.

13 Oct 2024, 9:20 PM
#15
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,908
Plugin Contributions:
23

Post #15 by dbltoe

Okay, you have three examples of a link that should be discussed.

  1. the log yourself in?

  2. the "up to 30% off" image

  3. the Shop by Brand [more] sidebox heading.

  4. The existing color (#007bff) can be controlled in several places BUT you must keep in mind that you cannot hover on a mobile phone or tablet. If you were to make the text match the body color of #000000 (black), visitors would have no way of knowing it is a link. Currently, the color hints at a link and hovering over the text not only changes the cursor to a finger point but the link text is "decorated" by being underlined. It appears that you tried to change the color to #0000a0 in the ZCA Bootstrap Colors under Tools but there may be an extra character there as it is showing:```
    a { color: #0000a[B].[/B];
    }


2.  Remember that search engines cannot "see" an image.  If there is text embedded in an image, it will not be seen by Google and probably won't be presented to a user visiting your site with a screen reader.  You need to utilize the alt tag to let Google and the screen readers know that this is an offer of 30% off on your first order.  You will probably see an immediate increase in signups and you will clear an accessibility error.  Of course, that brings up the subject that you have an additional image in the Have you seen ... sidebox with the same problem and a lower % off for joining.:huh:

3.  As it stands, the Shop by Brand [more],  Reviews [more] sidebox, New Products [more], and the Specials [more] sidebox headings are letting folks know that there is a wat to get to "more" information.

Extra Credit:  Your images are HUGE!  Just one that I checked is nearly 35M!:shocking:  There is a free product at <https://www.irfanview.com/> that can do the work for you.  Open an image, drop the size to no more than 250px in width or height, change the DPI to 72, and save the image in a new folder to upload later via FTP.  Your current page load for desktop is 1.1 seconds and **5.9 seconds** on mobile.  All do to image size.

Summary:

I would just set the a link color to #570057 in the Bootstrap Colors, fix the alt tags on images, and resize the images.  That will jump your ranking and page scores tremendously.  Your mobile Lighthouse scores are 75, 96, 96, 100.  Guess which score is effected by image size.:P

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

13 Oct 2024, 9:25 PM
#16
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,819
Plugin Contributions:
24

Post #16 by balihr

It's actually easier than you'd expect. Once you copy the file and rename it (as swguy already explained), which is really simple if you use cPanel's File Manager, just edit the file and add the following (you can edit in File Manager using the Edit button):

<style>
    .greeting a {color: #570057;}
</style>

Save the file and you're done, just refresh your site and you'll see the color of the link is now matching the color of your panel headings.

My site - Pro ZC Help
My portfolio | My plugins

15 Oct 2024, 9:09 PM
#17
amebb avatar

amebb

Zen Follower

Join Date:
May 2008
Location:
UK
Posts:
408
Plugin Contributions:
0

Post #17 by amebb

dbltoe:

Okay, you have three examples of a link that should be discussed.

  1. the log yourself in?

  2. the "up to 30% off" image

  3. the Shop by Brand [more] sidebox heading.

  4. The existing color (#007bff) can be controlled in several places BUT you must keep in mind that you cannot hover on a mobile phone or tablet. If you were to make the text match the body color of #000000 (black), visitors would have no way of knowing it is a link. Currently, the color hints at a link and hovering over the text not only changes the cursor to a finger point but the link text is "decorated" by being underlined. It appears that you tried to change the color to #0000a0 in the ZCA Bootstrap Colors under Tools but there may be an extra character there as it is showing:```
    a { color: #0000a[B].[/B];
    }

> 
> 2.  Remember that search engines cannot "see" an image.  If there is text embedded in an image, it will not be seen by Google and probably won't be presented to a user visiting your site with a screen reader.  You need to utilize the alt tag to let Google and the screen readers know that this is an offer of 30% off on your first order.  You will probably see an immediate increase in signups and you will clear an accessibility error.  Of course, that brings up the subject that you have an additional image in the Have you seen ... sidebox with the same problem and a lower % off for joining.:huh:
> 
> 3.  As it stands, the Shop by Brand [more],  Reviews [more] sidebox, New Products [more], and the Specials [more] sidebox headings are letting folks know that there is a wat to get to "more" information.
> 
> Extra Credit:  Your images are HUGE!  Just one that I checked is nearly 35M!:shocking:  There is a free product at <https://www.irfanview.com/> that can do the work for you.  Open an image, drop the size to no more than 250px in width or height, change the DPI to 72, and save the image in a new folder to upload later via FTP.  Your current page load for desktop is 1.1 seconds and **5.9 seconds** on mobile.  All do to image size.
> 
> Summary:
> 
> I would just set the a link color to #570057 in the Bootstrap Colors, fix the alt tags on images, and resize the images.  That will jump your ranking and page scores tremendously.  Your mobile Lighthouse scores are 75, 96, 96, 100.  Guess which score is effected by image size.:P

Thank you so much for your detailed explanation. I will follow the steps and try to complete them correctly.

Thank you