Can't seem to get my theme stylesheet to render for this template

Permalink Browser Info Environment
I'm used to doing block styling via a view.css file in the block template itself but this isn't formatted that way. I've tried to apply styles using my theme's main stylesheet but they just never seem to come through.

I'm proficient in html/css and just wondering if I'm missing something as far as getting the stylesheet to apply to tableless_layout.php. I tried to <link> a stylesheet but there's no head for this document so that doesn't make sense.

I additionally tried to apply styles to tableless_layout.php via inline styling and I ran into roadblocks as far as styling certain types of inputs.

Any ideas?

Type: Discussion
Status: New
lackadaize
View Replies:
jordanlev replied on at Permalink Reply
jordanlev
What version of Concrete5 are you using? The very latest version (5.6.2) changes the way css files need to be included for block templates.

Note, however, usually I prefer to just put all custom styles in my theme's stylesheet. If styles in your theme css are getting overridden by the blocks' stylesheets, then you can move your theme css files down below where C5 inserts the block stylesheets (so your theme CSS is loaded AFTER the block CSS, and hence the theme CSS will override the block css when they both are trying to style the same element).
You can achieve this in your theme head by moving the lines for your theme css (e.g. <link rel="stylesheet" href="<?php echo $this->getThemePath(); ?>/main.css" /> OR <?php echo $this->getStyleSheet('main.css'); ?>) so they're BELOW the <?php Loader::element('header/required'); ?> line.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.