Apache is running on port 80 and interfering with Valet.
- Stop Apache:
sudo /usr/sbin/apachectl stop
- Restart Valet:
valet restart
/** | |
* Sort array of objects based on another array | |
*/ | |
function mapOrder (array, order, key) { | |
array.sort( function (a, b) { | |
var A = a[key], B = b[key]; | |
body .gform_wrapper .gform_footer { | |
padding-bottom: 0; | |
} | |
@media screen and (min-width: 768px) { | |
body .gform_wrapper .gform_footer { | |
text-align: right; | |
} | |
} |
/** | |
* Image Sourec to Print | |
* | |
* Usage: | |
* | |
* imgPrint( $('img').attr('src') ); | |
* | |
* @param {string} source source of the image | |
*/ | |
function imgSourceToPrint( source ) { |
/** | |
* Copy Text to Clipboard | |
* | |
* Usage: simply pass the string to copyToClipboard() funciton and it will be | |
* copied to the clipboard | |
* | |
* Source: https://hackernoon.com/copying-text-to-clipboard-with-javascript-df4d4988697f | |
*/ | |
function copyToClipboard( str ) { | |
const el = document.createElement('textarea'); // Create a <textarea> element |
<?php // Do not copy this line. | |
/** | |
* Remove Script Version | |
* | |
* This function removes the query string from the scripts and styles. | |
* | |
* Author: Zeshan Ahmed | |
* Author URI: https://zeshanahmed.com/ | |
* |
<?php // do not copy this line. | |
/** | |
* Is External | |
* | |
* This function checks if the provided URL is external or not. | |
* | |
* Author URL: https://zeshanahmed.com/ | |
* |
/* ==================================== */ | |
/* WooCommerce Product Image Slider */ | |
/* This code will enable product gallery slider: */ | |
/* gist.github.com/zeshanshani/5e634af86e49ce07c87b44728c62f64b */ | |
/* ==================================== */ | |
.woocommerce .woocommerce-product-gallery.woocommerce-product-gallery--with-images { | |
padding-left: 115px; | |
box-sizing: border-box; | |
position: relative; |