Skip to content

Instantly share code, notes, and snippets.

View diegoALCE95's full-sized avatar

Diego Alvarez diegoALCE95

View GitHub Profile
@codigoconjuan
codigoconjuan / index.css
Created December 10, 2019 01:39
Proyecto Criptomonedas
body {
background-color: #0d2235;
}
.error {
background-color: #b7322c;
padding: 1rem;
color: white;
font-size: 18px;
text-transform: uppercase;
font-weight: bold;
@bradtraversy
bradtraversy / docker_wordpress.md
Last active September 16, 2024 05:17
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@neilgee
neilgee / return-to-store.php
Last active December 11, 2020 23:42
WooCommerce Hook in Return to Store
<?php
// Add back to store button on WooCommerce cart page
add_action('woocommerce_cart_coupon', 'themeprefix_back_to_store');
// add_action( 'woocommerce_cart_actions', 'themeprefix_back_to_store' );
function themeprefix_back_to_store() { ?>
<a class="button wc-backward" href="<?php echo esc_url( wc_get_page_permalink( 'shop' ) ); ?>"> <?php _e( 'Return to shop', 'woocommerce' ) ?> </a>
@mrwweb
mrwweb / reset-rems
Created May 22, 2013 13:22
"Sanity-ize" REMs by setting them to 10px-baseline aka "Tiny Happy Pixels Dancing."
/* this is the "root" in "root em." */
html {
font-size: 62.5%; /* Now 10px = 1rem! */
}
body {
font-size: 16px; /* px fallback */
font-size: 1.6rem; /* default font-size for document */
line-height: 1.5; /* a nice line-height */
}