Support » Developing with WordPress » Override Color Palette in Child Theme

  • Resolved stinkykong

    (@stinkykong)


    I borrowed from the 2021 theme the section of code regarding customizing the color palette. This is a Genesis child theme and I pasted from 2021 theme’s functions.php.

    Colors work fine in the editor but when published will not add the inline styles to the public view. However, if I manually alter the hexidecimal values in the block editor, the inline styles will work. Changing them back makes them no longer functional.

    Here’s a link to the functions.php file on GitHub
    https://github.com/stinkykong/colorpalette/blob/main/functions.php

    Can anyone see what I’m missing?

    • This topic was modified 5 days, 18 hours ago by stinkykong.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter stinkykong

    (@stinkykong)

    I was mistaken and the reported behavior is intended.

    When a preset color option is seletected, WordPress foregoes the HTML inline styles and adds classes which must be used to style with CSS (in style.css). I thought there was something missing in my PHP that was causing this but it is by design.

    Thread Starter stinkykong

    (@stinkykong)

    Support thread closed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.