Prevent module from inserting css code into page

  • ktsixit
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
14 years 1 month ago #742 by ktsixit
Hi all and thank you for this easy-to-use and very useful module :)

I'd like to ask a question about a piece of css code that is inserted dynamically inside the page's code, that the module is displayed. I can see this code in my page's html source code:
Code:
<style type="text/css"> <!-- div.wrap { width:300px; margin:0 auto; text-align:left; } div#top div#nav { float:left; clear:both; width:300px; height:52px; margin:22px 0 0; } div#header_hotslider div.wrap { height:270px; background:#000000; } div#header_hotslider div#slide-holder { width:300px; height:270px; position:absolute; } div#header_hotslider div#slide-holder div#slide-runner { top:0px; left:0px; width:300px; height:270px; overflow:hidden; position:absolute; } div#header_hotslider div#slide-holder div#slide-controls { left:0; top:10px; width:300px; height:46px; display:none; position:absolute; background:url(modules/mod_hot_image_slider/images/slide-bg.png) 0 0; } div#header_hotslider div#slide-holder div#slide-controls div#slide-nav { float:right; } p.textdesc { float:left; color:#fff; display:inline; font-size:10px; line-height:16px; margin:15px 0 0 20px; text-transform:uppercase; overflow:hidden; color:#ffffff; } div#header_hotslider div#slide-holder div#slide-controls div#slide-nav a { background-image:url(modules/mod_hot_image_slider/images/slide-nav-white.png); color:#666; top:11px; position:relative; } --> </style>

I'd like to prevent module from inserting this code into my page's source code and gather all the needed css code inside the mod_hot_image_slider/tmpl/style.css file.

Is it possible? Can you help me please?

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 1 month ago #743 by milos
It's not possible, because this CSS is created dynamically depending of your selections in module parameters. It's not static data.

Please Log in to join the conversation.

  • ktsixit
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
14 years 1 month ago #760 by ktsixit
at least can I set this inline code to load before the style.css is called?
That way I could override those css classes

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 1 month ago #761 by milos
Yes you can. Move this:
Code:
// add your stylesheet $doc->addStyleSheet( 'modules/mod_hot_image_slider/tmpl/style.css' );
below inline styles in file default.php

Please Log in to join the conversation.

Time to create page: 0.342 seconds
Powered by Kunena Forum