[wp-hackers] Custom Image Header: Header Text "Display Text" Option Name

Chip Bennett chip at chipbennett.net
Sat Mar 12 18:16:48 UTC 2011


Okay, that cleared things up for me. I think I'm seeing my problem now.

Might perhaps the "Display Text" description be a bit of a misnomer there?
If "Yes" is checked, changing the value to "No" won't actually change
anything, will it?

Or, should I just be using if ( get_header_textcolor() ) as the conditional
to determine whether or not to display header text?

Thanks,

Chip

On Sat, Mar 12, 2011 at 11:18 AM, Austin Matzko <austin at ilfilosofo.com>wrote:

> On Sat, Mar 12, 2011 at 11:15 AM, Austin Matzko <austin at ilfilosofo.com>
> wrote:
> > On Fri, Mar 11, 2011 at 9:17 PM, Chip Bennett <chip at chipbennett.net>
> wrote:
> >> I am looking for the name of the DB option related to the Custom Image
> >> Header feature, that corresponds to the "Header Text: Display Text"
> setting
> >> field on the Appearance -> Header Admin Screen. This field has an ID of
> >> "hidetext", but I can't find any option with this name.
> >
> > This information is stored among other theme mods values in the
> > options table, with the option name of "theme_mods_[theme slug]."
> >
> > In other words, it's retrieved by get_theme_mod( 'header_textcolor' )
> > and set by set_theme_mod( 'header_textcolor', [ new value ] ).
> >
> > The default can be set with the HEADER_TEXTCOLOR constant and the
> > value modified by attaching a callback to the
> > "theme_mod_header_textcolor" filter.
>
> To clarify, the "Display Text" value is based on whether the header
> textcolor value is "blank" or empty (in which case it's "No"; "Yes"
> otherwise).
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list