Post by jcooke » Sat Jul 09, 2011 9:35 am

I want to change the font color to white in the categories, featured items, and information sections. How do I do this? I also want to change the color on all page to green, how do I do this also? I have no knowledge of php, but I can follow examples.

For ex. I found this, but it causes my pages to load slower.

Just apply a bit of "style" to the anchor tag on lines 55 and 57, eg.

Code: Select all
<a style="font-size: smaller; color: #FF0000;">

this is my code in the controller/model/category.tpl

if ($this->category_id == $result['category_id']) {
$output .= '<a href="' . $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $new_path) . '"><b>' . $result['name'] . '</b></a>';
} else {
$output .= '<a href="' . $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $new_path) . '">' . $result['name'] . '</a>';
}

New member

Posts

Joined
Wed Jun 01, 2011 1:07 am

Post by nosecret » Sat Jul 09, 2011 10:34 am

Try,

Code: Select all

<a style="font-size: smaller; color: #FF0000;">
Change to

Code: Select all

<a style="font-size: smaller; color: #00FF00;">

Active Member

Posts

Joined
Tue Dec 28, 2010 12:28 pm

Post by jcooke » Sat Jul 09, 2011 7:05 pm

Thanks, I changed it to look like this.

if ($this->category_id == $result['category_id']) {
$output .= '<a style="color: #ffffff; href="' . $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $new_path) . '"><b>' . $result['name'] . '</b></a>';
} else {
$output .= '<a style="color: #ffffff; href="' . $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $new_path) . '">' . $result['name'] . '</a>';


where do you change the font color for the information and featured links?

Code: Select all

[code]
[/code]I looked in the stylesheet and I can change the bullets but not the links?

New member

Posts

Joined
Wed Jun 01, 2011 1:07 am

Post by nosecret » Sat Jul 09, 2011 7:52 pm

jcooke wrote:
Code: Select all
<a style="font-size: smaller; color: #FF0000;">

this is my code in the controller/model/category.tpl

if ($this->category_id == $result['category_id']) {
$output .= '<a href="' . $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $new_path) . '"><b>' . $result['name'] . '</b></a>';
} else {
$output .= '<a href="' . $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $new_path) . '">' . $result['name'] . '</a>';
}
My suggestion you post all code in file .tpl because i am not sure with your code. See at text bold.

Active Member

Posts

Joined
Tue Dec 28, 2010 12:28 pm

Post by jcooke » Sat Jul 09, 2011 8:20 pm

Thanks I just figured it out. I put a style in the stylesheet to change the color of the categories to white.

New member

Posts

Joined
Wed Jun 01, 2011 1:07 am
Who is online

Users browsing this forum: No registered users and 94 guests