CodeStar

How to show image from CodeStar Metabox

The non-repeatable image field creation: [php] $options[] = array( ‘id’ => ‘_custom_category_options’, ‘post_type’ => ‘category’, // or array( ‘category’, ‘post_tag’ ) ‘context’ => ‘normal’, ‘priority’ => ‘default’, ‘sections’ => array( // begin: a section array( ‘name’ => ‘section_1’, ‘title’ => ‘Section 1’, ‘icon’ => ‘fa fa-cog’, // begin: fields ‘fields’ => array( // a field …

How to show image from CodeStar Metabox Read More »

Implement of Codestar Sorter Field

Include the code the code in the config file– [php] // Sorter array( ‘id’ => ‘aitasi_sorted_section’, ‘type’ => ‘sorter’, ‘title’ => ‘Section Sorter’, ‘default’ => array( ‘enabled’ => array( ‘home’ => ‘Home’, ‘service’ => ‘Service ‘, ‘aboutus’ => ‘About Us’, ‘contact’ => ‘Contact’, ‘footer’ => ‘Footer’, ), ), ‘enabled_title’ => ‘Active Sections’, ‘disabled_title’ => ‘Deactive …

Implement of Codestar Sorter Field Read More »

CodeStar Typography Field Implementation

Too enqueue Google fonts ,write the code in your main functions.php – [php] if ( ! function_exists( ‘cs_wp_enqueue_scripts’ ) ) { function cs_wp_enqueue_scripts() { $enqueue_fonts = array(); $google_fonts = array(); $google_fonts[] = cs_get_option( ‘maintenance_main_typography_one’ ); $google_fonts[] = cs_get_option( ‘maintenance_main_typography_two’ ); if ( ! empty( $google_fonts ) ) { foreach ( $google_fonts as $font ) { …

CodeStar Typography Field Implementation Read More »