Tabs 5 in Simplicity?

WordPress theme dedicated to start-up websites with amazing CSS3 animated icons, price tables and parallax effect background.
GK User
Sun Mar 24, 2013 8:29 pm
Hi All,

Is it possible to get GK Tabs 5 working in Simplicity if so how?

Regards
User avatar
Fresh Boarder

GK User
Sun Mar 24, 2013 8:43 pm
Hi,

Currently the GK Tabs widget is not available as a separate plugin. If you really need it, you can copy the widgets.tabs.php file from the Meet GavernWP theme, add line:

Code: Select all
register_widget('GK_Tabs_Widget');


in the function add_features at gavern/base.php file and copy the CSS styling from section: "9.4. GK Tabs" in the css/extensions.css file to the css/extensions.css file in your theme.
User avatar
Administrator

GK User
Sun Mar 24, 2013 9:14 pm
@dziudek

Ok, Thanks
User avatar
Fresh Boarder

GK User
Mon Apr 08, 2013 8:19 pm
@dziudek

Just got around to doing this, my admin area is going blank when following your instructions. Everything go back to normal once I remove

Code: Select all
register_widget('GK_Tabs_Widget');



Full section code:

Code: Select all
 private function add_features() {
       // add support for the post formats
       add_theme_support( 'post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat') );
       // theme will style the visual editor using the editor-style.css file.
       add_editor_style();
       // add support for post thumbnails
       add_theme_support( 'post-thumbnails' );
       // add support for default posts and comments RSS feed links in the head
       add_theme_support( 'automatic-feed-links' );
       // register menus
       $this->register_menus();
       // register styles
       $this->register_styles();
       // register fonts
       $this->register_fonts();
       // add metaboxes
       add_action('add_meta_boxes', 'add_gavern_metaboxes' );
       add_action('save_post', 'gavern_metaboxes_save' );
       // add Gavern Shortcode button to the TinyMCE editor
       add_action('admin_init', 'add_gavern_shortcode_button');
       // register template built-in widgets
       register_widget('GK_Comments_Widget');
       register_widget('GK_NewsGallery_Widget');
       register_widget('GK_NSP_Widget');
       register_widget('GK_Tabs_Widget');
}


Is there anything else I need to add?

Regards
User avatar
Fresh Boarder

GK User
Tue Apr 09, 2013 4:53 pm
In the functions.php file on the theme root directory please add the following line:

Code: Select all
require_once(gavern_file('gavern/widgets.tabs.php'));


after:

Code: Select all
require_once(gavern_file('gavern/widgets.nsp.php'));
User avatar
Administrator

GK User
Fri Apr 12, 2013 10:43 am
@dziudek

Thanks, That Worked

Regards
User avatar
Fresh Boarder


cron