vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to call the additional.css template in a product-modification (https://vborg.vbsupport.ru/showthread.php?t=247153)

kether1 07-23-2010 02:00 PM

How to call the additional.css template in a product-modification
 
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 [DATE]1279934149[/DATE] at [TIME]1279934149[/TIME] ---------------

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 01:15 PM

Anyone have any ideas on this?

Xencored 07-27-2010 01:50 PM

Quote:

Originally Posted by kether1 (Post 2075269)
Anyone have any ideas on this?

Care to show your CCS and Class?

kether1 07-27-2010 07:30 PM

Quote:

Originally Posted by Animemike (Post 2075286)
Care to show your CCS and Class?

Sure, not exactly sure why the contents would matter, but here it is:

Code:

.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 07:58 PM

try adding

Code:

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

<link rel="stylesheet" type="text/css" href="{vb:raw vbcsspath}additional.css" />
sorry i cant help more ;/

KevinL 07-27-2010 08: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 02:13 PM

Thanks for the suggestions! I really appreciate it. I will try these and see if any succeed. Thank you both!

Kether


All times are GMT. The time now is 05:50 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01652 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete