If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Customization from the Admin / Changing font color in product title

Changing font color in product title

Started by lordzoabar on 10 Mar 2019, 5:02 PM · Views: 4,227

Results 1 to 6 of 6
10 Mar 2019, 5:02 PM
#1
lordzoabar avatar

lordzoabar

New Zenner

Join Date:
Nov 2017
Location:
Athens, Georgia, USA
Posts:
104
Plugin Contributions:
0

Post #1 by lordzoabar

So we've got some old frames that are being discontinued, and I am uploading the new ones we are making to replace them (the manufacturer is discontinuing the particular wood that we use, so not OUR decision). We want to have some sort of "catch" so that customers know that this is the replacement we are offering, and aside from simply putting "new" in front of the product name, I was wanting to make "new" both red and bold. I've tried using both php and html font coding, and I can get the size to adjust properly, but it isn't doing anything for the color. I do know that I am typing the codes correctly, as I've done this in the item description section before, and it has worked perfectly fine. What, if anything, am I doing wrong?

11 Mar 2019, 2:02 AM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Post #2 by twitchtoo

If you are changing an ***existing ***property that is shared in another .css file it may have !important causing all other possible colour changes to be overwritten by the !important one.

or

The location of the new changes you are making need to be in the hard code (preferred) or in the soft language file code - matching to the appropriate .css stylesheet or mobile stylesheet.

An example of your site would help clarify what needs to be changed...

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

11 Mar 2019, 2:16 PM
#3
lordzoabar avatar

lordzoabar

New Zenner

Join Date:
Nov 2017
Location:
Athens, Georgia, USA
Posts:
104
Plugin Contributions:
0

Post #3 by lordzoabar

This is what I am referring to. It's only on a few products, and it's only on a single word in the title. I know it SHOULD read "<font color="red">NEW</font>", but every-time I put the equal sign in, then the entire code line shows up, without actually changing the color. as I said, it works perfectly fine in the description box.

[Attachment no longer available]

11 Mar 2019, 4:04 PM
#4
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Post #4 by twitchtoo

It's best to put HTML in the HTML/PHP files NOT the database titles. ** These inputs tend to have hard coded filters to remove or prevent code where text should be.**

Simple page filter...
You can add an if statement that tracks product ID values in the product display and product listing or any other location you'd like as a simple fix. This would need a CSS rule to be red and bold if you like.

or

Twitch Mark as New...
You could add ^ or build your own 'Mark as New' module. This would put a little checkbox on the product page in admin to display anything you want related to the switch being checked. This too would run off CSS rules to function flawlessly through desktop/responsive/mobile templates.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

11 Mar 2019, 4:18 PM
#5
lordzoabar avatar

lordzoabar

New Zenner

Join Date:
Nov 2017
Location:
Athens, Georgia, USA
Posts:
104
Plugin Contributions:
0

Post #5 by lordzoabar

That actually makes a lot of sense. The Mark as New module sounds like the better direction for me, as I don't know the first thing about CSS. Is there a link for that? I looked under both the plugins section, and directly on google, and haven't found anything.

11 Mar 2019, 5:01 PM
#6
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Post #6 by twitchtoo

Lordzoabar:

That actually makes a lot of sense. The Mark as New module sounds like the better direction for me, as I don't know the first thing about CSS. Is there a link for that? I looked under both the plugins section, and directly on google, and haven't found anything.

It's one of my unreleased Twitch modules. You're welcome to PM or email me directly and we can get it setup for your needs.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian