…I left this behind in the previous post because I thought it would worth a full post. I was wrong though.
Here is the code I was talking about:
function de_finibus_meta_theme_color() {
echo "<meta name=\"theme-color\" content=\"#378aba\">";
}
The thing I want to change is the magical #378aba
, which is the site accent color.
It turns out that child theme is such a useful interface. You can… just refer to things in the parent theme, without even importing anything.
Hence…
function de_finibus_meta_theme_color() {
echo "<meta name=\"theme-color\" content=\"" . cryout_get_option("kahuna_accent1") . "\"
>";
}
And that’s it. No further comment seems necessary 🙁