PDA

View Full Version : How to call the additional.css template in a product-modification


kether1
07-23-2010, 03:00 PM
Hello.

I have added a class to my additional.css template to display a few links in my header (the proper color and font). Throughout the forum suite of vb4 this works like a charm, but how do I call it on other pages?

If I install an add-on (product) from here, I see my links in the header, but they do not use my new css, they default to vb4 link color. I thought this was just a coding error in the add-on I tried, but found though installing and removing several different ones that all without fail do not seem to call the additional.css template styling.

Can you offer a solution? Is there a setting I missed in the adminCP?

Thanks.
K

--------------- Added 1279934149 at 1279934149 ---------------

I have been working on this all day. Anyone have any ideas? Maybe I should just put the css into the header along with the links?

kether1
07-27-2010, 02:15 PM
Anyone have any ideas on this?

Xencored
07-27-2010, 02:50 PM
Anyone have any ideas on this?

Care to show your CCS and Class?

kether1
07-27-2010, 08:30 PM
Care to show your CCS and Class?
Sure, not exactly sure why the contents would matter, but here it is:

.design2_nav_links {
color: #FFFFFF;
font-weight: bold;
font-size: 14px;
}

That is what I would like to have happen. How can I call the additional CSS template in a product or for a custom page?

kether

Xencored
07-27-2010, 08:58 PM
try adding

<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}design2_nav_links" />
or
<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}additional.css" />

sorry i cant help more ;/

KevinL
07-27-2010, 09:10 PM
additional CSS always gets called last. Maybe if you change the class of what the navtabs are using then it will work? maybe go into the plugin and change the class.

kether1
07-29-2010, 03:13 PM
Thanks for the suggestions! I really appreciate it. I will try these and see if any succeed. Thank you both!

Kether