askwpcoach

Using Typography option

Sep 19th, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. /******************Below goes in admin/theme-options.php************************/
  2.  
  3. //Header Title (Header Area)
  4. $options[] = array( "name" => "Header Title 1",
  5.                     "desc" => "Control how font displays",
  6.                     "id" => $shortname."_headertitle1",
  7.                     "std" => array('size' => '24','unit' => 'em','face' => 'Arial','style' => 'normal','color' => '#13577C'),
  8.                     "type" => "typography");
  9.  
  10.  
  11.  
  12.  
  13. /******************Below goes in your dynamic stylesheet************************/
  14.  
  15. .top-title1{
  16.     <?php $headingtitle1 = get_option('of_headertitle1'); ?>
  17.     font-size:<?php echo $headingtitle1["size"]; ?>px !important;
  18.     font-family:<?php echo $headingtitle1["face"]; ?> !important;
  19.     color:<?php echo $headingtitle1["color"]; ?> !important;
  20.     font-weight:<?php echo $headingtitle1["style"]; ?> !important;
Advertisement
Add Comment
Please, Sign In to add comment