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 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 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 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 |
This file contains 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
👉️Create SSH key------------- | |
📌️ cd .ssh/ | |
📌️ ssh-keygen | |
📌️ hit enter threesies | |
📌️ to copy the key run cat id_rsa.pub | |
📌️ add the ssh key to the server as public key |