Description
Fitr Theme Options helps theme designers to make a diverse and rich option page for their themes easily.
It provides variety of default options and helps blog owners to design their own themes.
- The plugin automatically sets up custom header image for the theme.
- Users can easily change backgrounds, fonts, sizes, text colors, borders, etc….
- The plugin can automatically make theme Right to Left.
- Theme author can define unlimited different styles for the theme easily.
- Theme author can add custom fields to option page. FTO currently supports text, checkbox, dropdown menu, category menu, page list, radio buttons and text area.
- It’s plugginable. So imagine a set of new plugins that extends your theme abilities (e.g. random header, style rotator, etc…).
- Built-in support for WordPress Default Theme (Kubrick).
Note: To test the plugin please use WordPress default theme.
Are you a theme author?
Add all of these features to your theme withine minute! Visit plugin URL to learn more.
Screenshots
Installation
While doing the installation procedure, it is recommended to go through all the steps first before viewing the output. If you don’t, you’ll get nasty error messages.
- Upload
folder content
to the/wp-content/plugins
directory - Activate the plugin through the âPluginsâ menu in WordPress backend
- Go to âAppearanceâ menu, then to âFitr Theme Optionsâ.
- Save your changes.
Upgrading
- Disable the Fitr Theme Options plugin
- Delete folder from your server
- Download and unzip the new files into the plugins dir
FAQ
- I’m a Theme designer how can I add your plugin support to my theme?
-
Simply! Just copy and paste this code in your functions.php. Replace Kubrick CSS elements with your theme elements.
if ( function_exists(âregister_fitr_theme_optionsâ) ) {
register_fitr_theme_options(array(
âblogtitle’=>’#headerimg h1â,
âblogdescription’=>’#headerimg .descriptionâ,
âheader_background’=>’#headerimgâ, //Maybe for background color, background image or logo. It’s require to enter width and height for image and logo.
âheaderimg_path’=>’images/kubrickheader.jpgâ, //Default header image e.g. âimages/header.jpgâ
âheaderimg_width’=>’760â, //pixel
âheaderimg_height’=>’200â,
âcontainer’=>’#pageâ, //Main blog div e.g. .wrap .maincol or #page
âfeedicon’=>â,
âmenubar’=>â, //Menu container e.g. #menu or #nav
âmenuli_bg’=>â, //e.g. #nav ul li span
âmenuli_bghover’=>â, //Separate with comma(,) e.g. #nav li:hover, .current_page
âmenuli_a’=>â, //Add a
âpostbox’=>â.postâ, //Post container includes title, content, etc
âposttitle’=>â.post h2,.post h3′,
âpostcontent’=>â.entryâ,
âpostmeta’=>â.narrowcolumn .postmetadataâ,
âdate’=>â.post smallâ,
âauthor’=>â,
âtrackback’=>â,
âallowed_html’=>â,
âwidgettitle’=>’#sidebar ul li h2â,
âsidebarbody’=>’#sidebarâ,
âwidgetbox’=>’#sidebar ul liâ,
âwidgetli_a’=>’#sidebar ul li ul li aâ, //Add a
âfooter’=>’#footerâ
)
);
}If you want that users without Fitr Theme Options can use your option page you should copy FTO directory to your theme directory and add this line to functions.php
include(âfitr-theme-options/fitr-theme-options.phpâ);
All done!
Continue reading to add more features to your theme.
- How can I define different styles for my theme?
-
You can define different styles with register_fitr_theme_style( $name, $path, $screenshot ). For example:
if (function_exists(register_fitr_theme_style)) {
register_fitr_theme_style(âRedâ,’red.cssâ,’red-screenshot.pngâ);
register_fitr_theme_style(âGreenâ,’styles/green.cssâ,’green-screenshot.jpgâ);
}The chosen style will be saved in fto_settings option (fto_impot_style key). For example:
$settings=get_option(âfto_settingsâ);
if (âstyles/green.cssâ == $settings[âfto_import_styleâ])
echo âYou love green!â; - How can I add more option field to FTO page?
-
There is another great feature in Fitr Theme Option. You can add custom fields to option page using fto_add_custom_field( $name, $type, $desc, $options=â ). $type can be: text, checkbox, number, color, textarea, dropdown, cat or page. $options is necessary for âdropdownâ and âradioâ types. Separate options with â|â.
As above the value will be saved in fto_setteings option. For example:fto_add_custom_field(âwelcome_textâ, âtextâ, âType some thing as welcome messageâ);
fto_add_custom_field(âlayoutâ,’dropdownâ,’Choose your blog layoutâ,’One Column|Two Columnsâ);You can get selected style with fto_settings option.
$settings=get_option(âfto_settingsâ);
if (âTwo Columnsâ == $settings[âlayoutâ]) //layout is field name
include(âsidebar.phpâ); - What more?
-
After adding codes you should test your theme. If your theme does not appear correctly for a certain item (for example blog title align) You can easily fix the problem via CSS and PHP (Use fto_settings option).
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Fitr Theme Options” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Fitr Theme Options” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
0.8
- Bugs fixed.
- New: Different styles.
- NEW: Custom fields.
0.5
- First Version.