News Update :
Home » » Parallax

Parallax

By: Unknown on Thursday 26 February 2015 | 00:52

Create the kind Parallax post:


 







function add_theme_scripts() {
 

wp_enqueue_script( 'parallax', get_template_directory_uri() . '/js/jquery.parallax-1.1.3.js', array(), '1.1.3', true );

                        wp_enqueue_script( 'nicescroll', get_template_directory_uri() . '/js/jquery.nicescroll.min.js', array(), '3.5.1', true );

        }

        add_action( 'wp_enqueue_scripts', 'add_theme_scripts' );


        function custom_post_type() {
                    $labels = array(
                        'name'               => _x( 'Parallax', 'general name' ),
                        'singular_name'      => _x( 'Parallax', 'singular name' ),
                        'add_new'            => _x( 'Ajouter un nouveau', 'parallax' ),
                        'add_new_item'       => __( 'Ajouter un parallax' ),
                        'edit_item'          => __( 'Edit Page' ),
                        'new_item'           => __( 'Nouveau parallax' ),
                        'all_items'          => __( 'All Pages' ),
                        'view_item'          => __( 'View Page' ),
                        'search_items'       => __( 'Search Pages' ),
                        'not_found'          => __( 'No pages found' ),
                        'not_found_in_trash' => __( 'No pages found in the Trash' ),
                        'parent_item_colon'  => '',
                        'menu_name'          => 'Parallax'
                    );
                    $args = array(
                        'labels'        => $labels,
                        'public'        => true,
                        'menu_position' => null,
                        'supports'      => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments', 'page-attributes' ),
                        'has_archive'   => true,
                    );
                    register_post_type(__( 'parallax' ), $args);
                }
                add_action( 'init', 'custom_post_type' );

Post a Comment

 
Contact Us | Privacy policy | Term of use | Advertise with Us | Site map
Copyright © 2011. Blogging Brain . All Rights Reserved.
Design Template by Blogging Brain | | Powered by Blogger