custom.css not working?

More
7 years 10 months ago #46631 by underground1
Hi,

I want to change the logo size and header h2 style but using custom.css doesn't seem to have an effect at all.

What am I doing wrong?

E.g. - this would usually work in template.css but Plumber template obviously doesn't have such css file structure:

.mp_header3 img {
width: 250px !important;
height: auto;
} --> has no effect and is not even displayed in code.

Thanks for your help.

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
7 years 10 months ago #46632 by milos
Replied by milos on topic custom.css not working?
Hello,

Please give me link of your site.

Thanks,
Milos

Please Log in to join the conversation.

More
7 years 10 months ago #46633 by underground1

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
7 years 10 months ago #46634 by milos
Replied by milos on topic custom.css not working?
Please edit /templates/hot_plumber/index.php file and after this block:
Code:
// Get specific parameters for this style from /styles if ($templateStyle) { $doc->addStyleSheet('templates/' . $this->template . '/styles/style'.$templateStyle.'.css'); }

add this:
Code:
// Get custom.css if it's not empty if (file_get_contents(YOURBASEPATH.'/css/custom.css') != '') { $doc->addStyleSheet('templates/' . $this->template . '/css/custom.css'); }

p.s. After this block, there should be closing php tag
Code:
?>

Please Log in to join the conversation.

Time to create page: 0.274 seconds
Powered by Kunena Forum