This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //Loading CSS | |
| function ultimate_hover_effects_style() { | |
| wp_enqueue_script('jquery'); | |
| wp_enqueue_style('uhe_default', plugins_url( '/css/default.css' , __FILE__ ) ); | |
| wp_enqueue_style('uhe_component', plugins_url( '/css/component.css' , __FILE__ ) ); | |
| wp_enqueue_script('uhe_modernizr_js', plugins_url( '/js/modernizr.custom.js' , __FILE__ ) ); | |
| wp_enqueue_script('uhe_toucheffects_js', plugins_url( '/js/toucheffects.js' , __FILE__ ) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Registering Custom Post | |
| add_action( 'init', 'ultimate_hover_effects_custom_post' ); | |
| function ultimate_hover_effects_custom_post() { | |
| register_post_type( 'ultimate-effects', | |
| array( | |
| 'labels' => array( | |
| 'name' => __( 'U Hover Effects' ), | |
| 'singular_name' => __( 'Hover Item' ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Enqueue scripts and styles. | |
| */ | |
| function tunu_scripts() { | |
| /* | |
| $font = esc_html(get_theme_mod('font')); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Another way (not mentioned here yet) is with Flexbox. | |
| Just add the following code to the container element: | |
| display: flex; | |
| justify-content: center; /* align horizontal */ | |
| align-items: center; /* align vertical */ |
NewerOlder