Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.






                // Register Custom Post Type named 'tu-testimonials' $labels = array( 'name' => _x( 'Testimonials', 'post type general name' ), 'singular_name' => _x( 'Testimonial', 'post type singular name'), 'menu_name' => _x( 'Testimonials', 'admin menu' ), 'name_admin_bar' => _x( 'Testimonials', 'add new on admin bar' ), 'add_new' => _x( 'Add New', 'Testimonial' ), 'add_new_item' => __( 'Add New Testimonial' ), 'new_item' => __( 'New Testimonial' ), 'edit_item' => __( 'Edit Testimonial' ), 'view_item' => __( 'View Testimonial' ), 'all_items' => __( 'All Testimonials' ), 'search_items' => __( 'Search Testimonials' ), 'parent_item_colon' => __( 'Parent Testimonial:' ), 'not_found' => __( 'No testimonials found.' ), 'not_found_in_trash' => __( 'No testimonials found in Trash.' ), 'archives' => __( 'Testimonials Archives'), 'insert_into_item' => __( 'Insert into testimonials'), 'uploaded_to_this_item' => __( 'Uploaded to this testimonials'), 'filter_item_list' => __( 'Filter testimonials list'), 'items_list_navigation' => __( 'testimonials list navigation'), 'items_list' => __( 'testimonial list'), 'featured_image' => __( 'testimonial feature image'), 'set_featured_image' => __( 'Set testimonial feature image'), 'remove_featured_image' => __( 'Remove testimonial feature image'), 'use_featured_image' => __( 'Use as feature image'), ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'show_in_rest' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'testimonials' ), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => 5, 'menu_icon' => 'dashicons-archive', 'supports' => array( 'title', 'editor' ), 'template' => array(array('core/quote')), 'template_lock' => 'all' ); register_post_type('tu-testimonials', $args);