<button>Let's Go !</button>
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
*, | |
*::before, | |
*::after, | |
*:before, | |
*:after{ | |
box-sizing: border-box; | |
} | |
html, body, div, span, iframe, | |
h1,h2, h3, h4, h5, h6, p, blockquote, | |
a, address, em, img, small, strong, |
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 | |
function fla_enqueue_scripts_styles() { | |
wp_enqueue_style( 'aries-theme-fonts', '//fonts.googleapis.com/css?family=Montserrat:100,100i,300,300i,500,500i,700,700i', array(), CHILD_THEME_VERSION ); | |
wp_enqueue_style( 'dashicons' ); | |
wp_enqueue_style( 'style-bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css' ); | |
wp_enqueue_style( 'style-main', get_stylesheet_uri() ); | |
wp_enqueue_script( 'jquery', 'https://code.jquery.com/jquery-3.1.1.min.js' ); |
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
/* En wp-config.php*/ | |
$table_prefix = 'tuprefijo_'; | |
/* En administrador de la base de datos, ejecutar los siguientes comandos SQL */ | |
RENAME TABLE wp_links TO tuprefijo_links; | |
RENAME TABLE wp_commentmeta TO tuprefijo_commentmeta; | |
RENAME TABLE wp_comments TO tuprefijo_comments; | |
RENAME TABLE wp_options TO tuprefijo_options; | |
RENAME TABLE wp_postmeta TO tuprefijo_postmeta; | |
RENAME TABLE wp_posts TO tuprefijo_posts; |
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 | |
function fla_remove_product_types( $types ){ | |
unset( $types['grouped'] ); | |
unset( $types['external'] ); | |
unset( $types['variable'] ); | |
unset( $types['simple'] ); | |
unset( $types['downloads'] ); | |
return $types; |
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 | |
function fla_imagelink_setup() { | |
$image_set = get_option( 'image_default_link_type' ); | |
if ($image_set !== 'none') { | |
update_option('image_default_link_type', 'none'); | |
} | |
} | |
add_action('admin_init', 'fla_imagelink_setup', 10); |
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
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.github.io | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
*/ |
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 | |
/* Template Name: Test */ | |
/** | |
* Genesis custom loop | |
*/ | |
function be_custom_loop() { | |
global $post; | |
// arguments, adjust as needed |
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 | |
function dinapyme_wc_modificar_texto_oferta( $texto ) { | |
return str_replace( __( 'Sale!', 'woocommerce' ), __( '¡Promoción!', 'woocommerce' ), $texto ); | |
} | |
add_filter( 'woocommerce_sale_flash', 'dinapyme_wc_modificar_texto_oferta' ); |
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 | |
/** | |
* Some example snippets for the control of notices in WordPress admin panel | |
* | |
* @package PCianes\AdminUtilities | |
* @since 1.0.0 | |
* @author PCianes | |
* @license GNU General Public License 2.0+ | |
*/ | |
namespace PCianes\AdminUtilities; |
OlderNewer