vafour / vafpress-framework

Wordpress theme options framework, check out the demo.
http://demo.vafpress.com/vafpress-framework
Other
240 stars 98 forks source link

I can not activate the framwork #99

Open partharoy opened 9 years ago

partharoy commented 9 years ago

Hi, I have tried to activate your plugin but failed. I implied this code require_once 'vafpress/bootstrap.php'; But it does not work. Is there another process to activate it?

Zackio commented 9 years ago

Did you get an error? You just need to include this but also you have to set up the data

http://vafpress.com/documentation/vafpress-framework//getting-started.html

partharoy commented 9 years ago

no. no errors comes up. but is not it show a admin bar like theme option?

Zackio commented 9 years ago

I moved mine from the default location, but if i recall correctly i think it's meant to come under apparence

On Wed, Nov 12, 2014 at 7:22 PM, partha roy notifications@github.com wrote:

no. no errors comes up. but is not it show a admin bar like theme option?

— Reply to this email directly or view it on GitHub https://github.com/vafour/vafpress-framework/issues/99#issuecomment-62777114 .

partharoy commented 9 years ago

yes I know. but there is no theme option under appearance nor admin bar.

Zackio commented 9 years ago

You've used the code at the top of this page?

http://vafpress.com/documentation/vafpress-framework//options/builder.html

On Wed, Nov 12, 2014 at 7:27 PM, partha roy notifications@github.com wrote:

yes I know. but there is no theme option under appearance nor admin bar.

— Reply to this email directly or view it on GitHub https://github.com/vafour/vafpress-framework/issues/99#issuecomment-62777920 .

partharoy commented 9 years ago

no at the bottom of the functions.php but after see your comments I have tried it if first under <?php code. but nothing happen

Zackio commented 9 years ago

this is what i have, which works for me

include THEME_FRAMEWORK_DIR . 'importer/demo_options_import.php';

$theme_options_file = get_template_directory() . '/framework/option.php'; global $theme_option_panel; $theme_option_panel = new theme_demo_options( array( 'is_dev_mode' => false, 'option_key' => 'theme_options', 'page_slug' => 'op', 'template' => $theme_options_file, 'menu_page' => array( 'icon' => 'font-awesome:fa-star', ), 'use_auto_group_naming' => true, 'use_exim_menu' => true, 'minimum_role' => 'edit_theme_options', 'layout' => 'fixed', 'page_title' => ( 'Theme Options', 'VP_TEXTDOMAIN' ), 'menu_label' => ( 'Theme Options', 'VP_TEXTDOMAIN' ), ) );

TheZoker commented 9 years ago

Look at this example: https://github.com/vafour/vafpress-framework-theme-boilerplate/blob/master/functions.php