Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about Hot Image Slider free Joomla module.

Topic-icon Prevent module from inserting css code into page

More
7 years 6 months ago #742 by ktsixit
ktsixit created the topic: Prevent module from inserting css code into page
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:
<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.

More
7 years 6 months ago #743 by milos
milos replied the topic: Re: Prevent module from inserting css code into page
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.

More
7 years 6 months ago #760 by ktsixit
ktsixit replied the topic: Re: Prevent module from inserting css code into page
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.

More
7 years 6 months ago #761 by milos
milos replied the topic: Re: Prevent module from inserting css code into page
Yes you can. Move this:
// 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.145 seconds

Links, Partners and Social Media