Like this article? We recommend
Enabling the Front End
Enabling the Front End
Now that you've got things working in the Admin, you'll need to add a bit of code (called a theme hook) to your header.php file to display your new options on your live site.
- Log into your WordPress Dashboard and choose Appearance > Editor.
- In the Templates list on the right side of your screen, click Header.
- Before the closing </head> tag, add the following:
- Save and close your header.php file.
<?php $content_text_color = get_option('content_text_color'); $content_bg_color = get_option('content_bg_color'); $content_link_color = get_option('content_link_color'); ?> <style> #content { color: <?php echo $content_text_color; ?>; background: <?php echo $content_bg_color; ?>;} #content a { color: <?php echo $content_link_color; ?>;} </style>