Support » Theme: Hoffman » Uncustomizable

  • Looks very good – up until the moment you try to customize the colour palette.

    Theme generates hundreds of inline css rules. That makes it impossible to override them with a custom css neither via Customizer, nor via child theme. Even if you make changes directly in the theme style.css, they are simply not applied, because of inline css, which takes precedence.

    At the same time the only colour choice in Customizer for the 4.9 branch is the accent colour. That’s the blog name link.

    • This topic was modified 1 year, 5 months ago by Jaaaarne. Reason: I was angry and was not entirely fair. It's a decent theme other than the inline css issue
Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @jaaaarne,

    The inline CSS rules are used to apply the custom accent color, set in the Customizer. It isn’t just used for the blog name link, but everywhere where the default gold accent color is used (hence hundreds of rules).

    If you want to disable the custom accent color functionality in a child theme, in order to make the styles easier to overwrite, you can do so by adding the following code to the functions.php file in your child theme:

    remove_action( 'wp_head', array( 'hoffman_customize', 'hoffman_header_output' ) );

    — Anders

    Doesn’t look like accent only. I don’t believe there can be 400+ instances of a colour accent. I discovered it after having completely rewritten the colour scheme only to see that it simply was not applied as expected.

    Don’t take me wrong, this is not the only theme that has colour customizations via WP Customizer. However, this is the first theme I’ve seen that plain refuses to be customized colour-wise even via its native css file, not to mention other options. All because of hardcoded css.

    I think this might be somehow connected to its Gutenberg support, where every paragraph is its own independent div. I’m on 4.x, though, and for me the only way out was to rudely remove the ‘Output custom CSS to live site’ part of the functions code, to prevent inline css being inserted at all.

    Other than that it’s a solid theme. I think I’ll keep using it, because no minimal and single column themes for journalling are developed these days. But this empire of inline css is beyond all sense.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncustomizable’ is closed to new replies.