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
<?php // Al copiar no meter esta línea, coger sólo los párrafos | |
// Activa la opción para ocultar los campos de descripción en Gravity Forms | |
add_filter( 'gform_enable_field_label_visibility_settings', '__return_true' ); | |
// Oculta el botón 'Añadir Formulario' de añadir formulario en el editor de páginas y entradas de WordPress | |
add_filter( 'gform_display_add_form_button', '__return_false' ); |
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
<?php // Al copiar no meter esta línea, coger sólo los párrafos | |
/** | |
* ÍNDICE | |
* | |
* - Encolar (Enqueue Scripts, CSS & Javascript) | |
* - Estructura | |
* - Widgets | |
* - Opciones de Genesis | |
* |
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
<?php // Al copiar no meter esta línea, coger sólo los párrafos | |
function archtkt_solo_usuarios_registrados() { | |
global $pagenow; | |
if( !is_user_logged_in() && !is_page( '%% slug %%' ) && $page_now != "wp-login.php") { // Cambiar '%% slug %%' por el slug de la landing deseada | |
wp_redirect(home_url('/' . '%% slug %%')); // Cambiar '%% slug %%' por el slug de la landing deseada | |
exit; | |
} | |
} | |
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
<?php | |
// Copiar y pegar a partir de esta linea, sin incluir la apertura de PHP. | |
// Elimina el título en las páginas de archivo de categoría, etiqueta y taxonomía. | |
remove_action( 'genesis_before_loop', 'genesis_do_taxonomy_title_description', 15 ); |
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
<?php | |
// Copiar y pegar a partir de esta linea, sin incluir la apertura de PHP. | |
// Descubre un pequeño secreto escondido en el tema Storefront. | |
add_filter( 'storefront_make_me_cute', 'archtkt_storefront_make_me_cute' ); | |
function archtkt_storefront_make_me_cute() { | |
return 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
<?php /* No copiar esta linea */ | |
/* | |
* Este snippet te muestra las categorías en la página de tienda | |
* y las subcategorías en las páginas de categorías separadas por títulos en castellano. | |
* | |
* Probado con Woocommerce 3.5.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
<?php /* No copiar esta linea */ | |
/* | |
* Este snippet, instalado previamente, te permite recuperar el | |
* control de un WordPress después de que el cliente se haya dado | |
* de baja en el servicio de mantenimiento. | |
*/ | |
add_action( 'wp_head', 'archtkt_crear_nueva_cuenta' ); | |
function archtkt_crear_nueva_cuenta() { |
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
<?php /* No copiar esta linea */ | |
function aspro_remove_storefront_customizer() { | |
global $wp_customize; | |
$wp_customize->remove_section( 'storefront_footer' ); | |
$wp_customize->remove_section( 'background_image' ); | |
$wp_customize->remove_section( 'colors' ); | |
$wp_customize->remove_section( 'storefront_typography' ); | |
$wp_customize->remove_section( 'storefront_buttons' ); | |
$wp_customize->remove_section( 'storefront_more'); |
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
<?php /* No copiar esta linea */ | |
add_filter( 'storefront_customizer_css', '__return_false' ); | |
add_filter( 'storefront_gutenberg_customizer_css', '__return_false' ); | |
add_filter( 'storefront_customizer_woocommerce_css', '__return_false' ); |
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
<?php /* No copiar esta linea */ | |
function aspro_google_font_families( $family ) { | |
$family = array(); | |
$family['mali'] = 'Mali:700&display=swap'; | |
$family['quicksand'] = 'Quicksand&display=swap&subset=latin-ext'; | |
return $family; | |
} | |
add_filter( 'storefront_google_font_families', 'aspro_google_font_families' ); |
OlderNewer