__( 'Primary Menu', 'pikaxo' ),
)
);
load_theme_textdomain( 'pikaxo' );
}
add_action('after_setup_theme', 'pikaxo_setup');
//Load styles
function pikaxo_load_styles_scripts(){
//NOTE: SOME OF THESE SCRIPTS ARE HOSTED ON A CDN AND ARE NOT STORED LOCALLY... SO THIS THEME MAY NOT RENDER PROPERLY IF YOU ARE NOT CONNECTED TO THE INTERNET
//wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.css');
wp_enqueue_style( 'style', get_template_directory_uri() . '/style.css');
}
add_action('wp_enqueue_scripts', 'pikaxo_load_styles_scripts');
//SET CONTENT WIDTH
if ( ! isset( $content_width ) ) $content_width = 600;
//Creating the sidebar
function pikaxo_menu_init() {
register_sidebar(
array(
'name' => __('Sidebar Widgets', 'pikaxo'),
'id' => 'sidebar-widgets',
'class' => '',
'description' => __('Add sidebar widgets here', 'pikaxo'),
'before_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name' => __('Left Footer', 'pikaxo'),
'id' => 'left-footer',
'class' => '',
'description' => __('Add widgets here', 'pikaxo'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name' => __('Middle Footer', 'pikaxo'),
'id' => 'middle-footer',
'class' => '',
'description' => __('Add widgets here', 'pikaxo'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name' => __('Right Footer', 'pikaxo'),
'id' => 'right-footer',
'class' => '',
'description' => __('Add widgets here', 'pikaxo'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '
',
));
register_sidebar(array(
'name' => __('Full Width Footer', 'pikaxo'),
'id' => 'full-width-footer',
'class' => '',
'description' => __('Add widgets here(Full width Footer)', 'pikaxo'),
'before_widget' => '',
'after_widget' => '',
'before_title' => '',
'after_title' => '
',
));
}
add_action('widgets_init', 'pikaxo_menu_init');
// this increases or decreaes the length of the excerpt on the index page
function pikaxo_excerpt_length( $length ) {
return 40;
}
add_filter( 'excerpt_length', 'pikaxo_excerpt_length', 999 );
function pikaxo_excerpt_more( $more ) {
//return 'More';
return ' ' . __('Read More', 'pikaxo') . '';
}
add_filter( 'excerpt_more', 'pikaxo_excerpt_more' );
?>