$ drush status
'"C:\xampp\htdocs\drupalDrush\vendor\bin\drush.php.bat"' is not recognized as an internal or external command,
operable program or batch file.
Getting this error while using drush in windows.
add_action( 'login_enqueue_scripts', array($this, 'theme_login_logo' ));
public function theme_login_logo()
{ ?>
<style type="text/css">
#login h1 a, .login h1 a {
background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/assets/img/logo/site-login-logo.png);
height:65px;
width:320px;
functions.php
add_action( 'woocommerce_before_single_variation',
'action_wc_before_single_variation' );
function action_wc_before_single_variation() {
?>
<script type="text/javascript">
(function($){
$('form.variations_form').on('show_variation', function(event, data){
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
Install xdebug for linux: | |
sudo apt-get install php-xdebug | |
sudo phpenmod xdebug | |
sudo gedit /etc/php/7.2/mods-available/xdebug.ini | |
then paste the below code: | |
zend_extension="xdebug.so" | |
xdebug.remote_enable = 1 | |
xdebug.remote_port = 9000 | |
xdebug.idekey = PHPSTORM | |
xdebug.show_error_trace = 1 |
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
Open the Terminal app | |
1.Edit ~/.bash_aliases or ~/.bashrc file using: sudo nano ~/.bash_aliases | |
2.Append your bash alias | |
For example append: alias update='sudo yum update' | |
3.Save and close the file. | |
4.Activate alias by typing: source ~/.bash_aliases | |
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
👉️Initial steps to follow.. | |
📌️1.Copy example.settings.local.php from /sites to /sites/default and rename to settings.local.php | |
📌️2.Enable render cache by uncomment this $settings['cache']['bins']['render'] = 'cache.backend.null'; in settings.local.php | |
📌️3.Go to sites/default/settings.php' and uncomment the commented lines that mention 'settings.local.php'. | |
📌️4.Go to /sites/development.services.yml file and paste below code at the top. | |
👉️development.services.yml | |
parameters: | |
http.response.debug_cacheability_headers: true | |
twig.config: | |
debug: true |