- Posts: 75
- Thank you received: 0
custom.css not working?
-
underground1
Inactive member - Topic Author
- Member
Less
More
8 years 6 months ago #46631
by underground1
custom.css not working? was created 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.
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
Less
More
- Posts: 6744
- Thank you received: 716
8 years 6 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 give me link of your site.
Thanks,
Milos
Please Log in to join the conversation.
-
underground1
Inactive member - Topic Author
- Member
Less
More
- Posts: 75
- Thank you received: 0
8 years 6 months ago #46633
by underground1
Replied by underground1 on topic custom.css not working?
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6744
- Thank you received: 716
8 years 6 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:
add this:
p.s. After this block, there should be closing php tag
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.147 seconds