Skip to content

Instantly share code, notes, and snippets.

View orbital-themes's full-sized avatar

orbital-themes

View GitHub Profile
@orbital-themes
orbital-themes / gist:fd26a38ad667c92e0c8b2446f882679a
Created January 13, 2020 12:44
Activación licencia si la licencia ya está asociada al dominio correcto.
Has de entrar en el fichero wp-content/themes/orbital/inc/class-wp-license-manager-client.php (línea 197) y modificar:
array(
'p' => $this->product_id,
'e' => $options['email'],
'l' => $options['license_key'],
)
Por esto:
@orbital-themes
orbital-themes / snippets.css
Last active September 5, 2019 12:01
CSS Snippets
/* Estos snippets se pueden añadir en Aparencia > Personalizar > CSS Adicional */
/* Imagenes footer tamaño normal */
.widget-area .widget img {
width: auto;
}
@orbital-themes
orbital-themes / extras.php
Last active September 5, 2019 11:51
Solucionar problema sidebar Woocoomerce debajo
<?php // No poner esta linea
// orbital/inc/extras.php line 102 copiar desde aquí
if (!function_exists('orbital_check_sidebar_class')) :
function orbital_check_sidebar_class($classes)
{
if (orbital_check_woocommerce()) {
if (!is_active_sidebar('shop') && is_woocommerce()) {
@orbital-themes
orbital-themes / invoice.php
Last active September 5, 2019 11:51
Añadir NIF a facturas
<?php
//plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple/invoice.php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php do_action( 'wpo_wcpdf_before_document', $this->type, $this->order ); ?>
<table class="head container">
<tr>
<td class="header">
<?php