wet-boew / wet-boew-drupal

Drupal variant of the Web Experience Toolkit (WET)
136 stars 74 forks source link

Change CSS of a Block on a page #1922

Closed AlexCreamer closed 6 years ago

AlexCreamer commented 6 years ago

Hi, Im looking to change the CSS of a block on specific page. Im using the WetKit omega theme.

nathanv commented 6 years ago

Hello @AlexCreamer . A disclaimer: https://www.drupal.org/project/wetkit_omega is currently unsupported and from a very old branch of https://www.drupal.org/project/omega . We did patch a security fix but that's it. We haven't kept it up to date otherwise. Use at your own risk!

Take a look at https://atendesigngroup.com/blog/adding-css-classes-blocks-drupal for some tips. Use your debugging tools to identify variables that are specific to that page and then add the css classes selectively. Hope that helps!

AlexCreamer commented 6 years ago

Hello Nathan, thanks for telling me about WetKit Omega being unsupported.

I'm reading the page you told me to look at and I'm not sure how to implement the preprocess function. Does it go in my profiles/wetkit/themes/wetkit_omega/templates/blocks/block.tpl.php or in my sites/default/themes/wetkit_omega/templates/blocks/block.tpl.php?

joejoseph00 commented 6 years ago

Hi AlexCreamer put it in your sites/default/themes/wetkit_omega/templates/blocks/block.tpl.php any module you copy into sites takes presidence over what is in profiles.

If you were using wetkit_bootstrap there is a way to create a subtheme on that. I think omega also allows this but been a while since I used omega