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
| // New product ZONE SLIDER | |
| jQuery(document).ready(function(){ | |
| jQuery('.newrpoduct__slider').owlCarousel({ | |
| stagePadding: 70, | |
| loop:true, | |
| margin:20, | |
| nav:true, | |
| dots:false, | |
| nav:false, | |
| margin: 20, |
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 get_template_part('components/homepage/sales-part'); ?> |
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
| add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets'); | |
| function my_custom_dashboard_widgets() { | |
| global $wp_meta_boxes; | |
| wp_add_dashboard_widget('custom_help_widget', 'Theme Support', 'custom_dashboard_help'); | |
| } | |
| function custom_dashboard_help() { | |
| echo '<p>Welcome to Custom Blog Theme! Need help? Contact the developer <a href="mailto:yourusername@gmail.com">here</a>. For WordPress Tutorials visit: <a href="http://www.wpbeginner.com" target="_blank">WPBeginner</a></p>'; | |
| } |
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
| function remove_menus () { | |
| global $menu; | |
| $restricted = array(__('Dashboard'), __('Posts'), __('Media'), __('Links'), __('Pages'), __('Appearance'), __('Tools'), __('Users'), __('Settings'), __('Comments'), __('Plugins')); | |
| end ($menu); | |
| while (prev($menu)){ | |
| $value = explode(' ',$menu[key($menu)][0]); | |
| if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){unset($menu[key($menu)]);} |
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
| function my_custom_login_logo() { | |
| echo '<style type="text/css"> | |
| h1 a { background-image:url('.get_bloginfo('template_directory').'/images/custom-login-logo.gif) !important; } | |
| </style>'; | |
| } | |
| add_action('login_head', 'my_custom_login_logo'); |
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
| function fb_filter_query( $query, $error = true ) { | |
| if ( is_search() ) { | |
| $query->is_search = false; | |
| $query->query_vars[s] = false; | |
| $query->query[s] = false; | |
| // to error | |
| if ( $error == true ) | |
| $query->is_404 = true; | |
| } | |
| } |
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 | |
| /* | |
| Template Name: Test | |
| */ | |
| get_header(); ?> | |
| <?php get_footer(); ?> |
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
| File -> user prefrences -> snippets + chooose HTML | |
| delete anything betwween brackets and paste this: | |
| "php": { | |
| "prefix": "php", | |
| "body": [ | |
| "<?php $1 ?>" | |
| ], | |
| "description": "php tag" | |
| } |
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
| START XAMPP SERVER UBUNTU | |
| sudo /opt/lampp/manager-linux-x64.run | |
| ___________________________________________________ | |
| PERMISSIONS FOR UPLOADING A PLUGIN | |
| NAVIGATE TO THE PLUGINS FOLDER OF THE THEME IN TERMINAL AND PASTE THIS: | |
| sudo chmod 777 . | |
| AND THE OPEN THE WP_CONFIG.PHP AND PASTE THIS: | |
| define('FS_METHOD','direct'); |