Codes : Scripts, Links, Metas. function ast_print_head_codes() { echo "\n\n" . '' . "\n"; if (! ( asteroid_option('ast_favicon') == '' ) ) { echo '' . "\n"; } echo asteroid_option('ast_head_codes') . "\n"; echo '' . "\n\n"; } add_action( 'wp_head', 'ast_print_head_codes' ); // CSS : Div Widths and BG Color. function ast_print_layout() { $main_x = asteroid_option('ast_main_width'); $sidebar_x = asteroid_option('ast_sidebar_width'); echo "\n" . ''; } add_action( 'ast_hook_custom_css', 'ast_print_layout', 600 ); // CSS : Custom CSS function ast_print_custom_css() { echo "\n\n" . '' . "\n"; echo '' . "\n"; echo '' . "\n\n"; } add_action( 'ast_hook_custom_css', 'ast_print_custom_css', 990 ); // Remove Wordpress Version in if ( asteroid_option('ast_remove_wp_version') == 1 ) { remove_action( 'wp_head', 'wp_generator' ); } // Excerpt Length function ast_excerpt_length( $length ) { return 55; } add_filter( 'excerpt_length', 'ast_excerpt_length', 900 ); // Add Footer Links function ast_do_hook_footer_links() { if (!( asteroid_option('ast_hook_footer_links') == '' )) echo asteroid_option('ast_hook_footer_links'); } add_action( 'ast_hook_footer_links', 'ast_do_hook_footer_links' ); // Remove rel attribute from the category list. Only for Html5 Validation function ast_remove_category_rel($output){ $output = str_replace(' rel="category tag"', '', $output); return $output;} add_filter('wp_list_categories', 'ast_remove_category_rel'); add_filter('the_category', 'ast_remove_category_rel');