Posted on Leave a comment

WordPress Change Header Plugin


( ! ) Notice: A non well formed numeric value encountered in /var/www/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Call Stack
#TimeMemoryFunctionLocation
10.0002396072{main}( ).../index.php:0
20.0002396360require( '/var/www/html/wp-blog-header.php' ).../index.php:17
30.317312466600require_once( '/var/www/html/wp-includes/template-loader.php' ).../wp-blog-header.php:19
40.325412519576include( '/var/www/html/wp-content/themes/storefront/single.php' ).../template-loader.php:78
50.476413072888get_template_part( ).../single.php:19
60.476413073408locate_template( ).../general-template.php:168
70.476413073504load_template( ).../template.php:671
80.476513073776require( '/var/www/html/wp-content/themes/storefront/content-single.php' ).../template.php:724
90.477113074528do_action( ).../content-single.php:21
100.477113074904WP_Hook->do_action( ).../plugin.php:465
110.477113074904WP_Hook->apply_filters( ).../class-wp-hook.php:310
120.479913078320storefront_post_content( ).../class-wp-hook.php:286
130.480013079392the_content( ).../storefront-template-functions.php:414
140.480113079840apply_filters( ).../post-template.php:247
150.480113080240WP_Hook->apply_filters( ).../plugin.php:208
160.487013154272CrayonWP::the_content( ).../class-wp-hook.php:286
170.494213225416CrayonHighlighter->output( ).../crayon_wp.class.php:703
180.574113309400CrayonFormatter::print_code( ).../crayon_highlighter.class.php:189

( ! ) Notice: A non well formed numeric value encountered in /var/www/html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Call Stack
#TimeMemoryFunctionLocation
10.0002396072{main}( ).../index.php:0
20.0002396360require( '/var/www/html/wp-blog-header.php' ).../index.php:17
30.317312466600require_once( '/var/www/html/wp-includes/template-loader.php' ).../wp-blog-header.php:19
40.325412519576include( '/var/www/html/wp-content/themes/storefront/single.php' ).../template-loader.php:78
50.476413072888get_template_part( ).../single.php:19
60.476413073408locate_template( ).../general-template.php:168
70.476413073504load_template( ).../template.php:671
80.476513073776require( '/var/www/html/wp-content/themes/storefront/content-single.php' ).../template.php:724
90.477113074528do_action( ).../content-single.php:21
100.477113074904WP_Hook->do_action( ).../plugin.php:465
110.477113074904WP_Hook->apply_filters( ).../class-wp-hook.php:310
120.479913078320storefront_post_content( ).../class-wp-hook.php:286
130.480013079392the_content( ).../storefront-template-functions.php:414
140.480113079840apply_filters( ).../post-template.php:247
150.480113080240WP_Hook->apply_filters( ).../plugin.php:208
160.487013154272CrayonWP::the_content( ).../class-wp-hook.php:286
170.494213225416CrayonHighlighter->output( ).../crayon_wp.class.php:703
180.574113309400CrayonFormatter::print_code( ).../crayon_highlighter.class.php:189

This is a basic WordPress plugin allows admins to change the header graphic background on my custom template. The goal of building this was to illustrate the most basic use of WordPress plugin settings and how to embed the WordPress media-browser into an admin form.

The plugin requires that your template header have the id #header. I have used this as a teaching tool.