This repository has been archived by the owner on Mar 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 181
Home
Tawhidul Islam edited this page May 15, 2013
·
7 revisions
Welcome to the SMOF wiki!
This wiki contains instructions, tips & tricks and some common issues/solutions. Feel free to contribute more content as you feel necessary!
First time setup instruction:
Just put this code somewhere in your functions.php file:
/**
* SMOF
*/
require_once ('admin/index.php'); // Theme Options
Using Themes Option:
First use this code to top of header.php
<?php global $data; ?>
Use Text/Textarea/Media/Color Field Like this code
<?php echo $data['unique_id']; ?>
Use If Statement
<?php if($data['unique_id']) { ?>
<?php echo $data['unique_id']; ?>
<?php } ?>
Use Checkbox/Switch Option
<?php
if($data['switch_id'] == '1') { ?>
// Here goes to your option
<?php } ?>
Using Typography
<?php global $name; $name = get_option(OPTIONS); ?>
Font-family: <?php echo $name['unique_id']['face']?>
Font-size: <?php echo $name['unique_id']['size']?>
Color: <?php echo $name['unique_id']['color']?>
Font-weight: <?php echo $name['unique_id']['style']?>