Display any HTML you like with this option.

Option Details & Parameters

Type: custom

Can be placed in: Admin Panels , Admin Tabs , Meta Boxes , Theme Customizer

Parameter Type Description
name string (Optional) The name of the option, for display purposes only.
custom string Your custom HTML

Additional Notes

The display of your custom HTML has 2 slight variations for admin panels and meta boxes:

  1. If you specify the name attribute, the option name will display normally and your custom HTML will be on the right side along with the other options.
  2. If you don’t specify the name attribute, your custom HTML will span the whole area.


Add links in admin panel

$panel->createOption( array(
	'type' => 'custom',
	'custom' => '<p>Links of other pages/posts of your site:
		<a href="http://www.titanframework.net/">Titan Framework</a> ·
		<a href="http://www.titanframework.net/docs/">Documentation</a> ·
		<a href="http://www.titanframework.net/blog/">Blog</a> ·
		<a href="http://www.titanframework.net/faqs/">FAQs</a>
) );​

Display an embedded YouTube video:

$panel->createOption( array( 
	'type' => 'custom', 
	'custom' => '<iframe width="560" height="315" src="https://www.youtube.com/embed/DEHy4fbLdZA" frameborder="0" allowfullscreen></iframe>', 
) );​

Creating table in admin panel

$panel->createOption( array( 
	'type' => 'custom', 
	'custom' => '<div>Sample Table 
		<table style="border: 1px solid #000; border-collapse: collapse; width:100%; height:100%;"><tr> 
		<th style="border: 1px solid #000;">Table 1</th> 
		<th style="border: 1px solid #000;">Table 2</th> 
		<th style="border: 1px solid #000;">Table 3</th>
		<td style="border: 1px solid #000;">Lorem Ipsum</td> 
		<td style="border: 1px solid #000;">Lorem Ipsum</td> 
		<td style="border: 1px solid #000;">Lorem Ipsum</td> 
		</div>' , 
) );​