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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>CSS Interno</title> | |
<link rel="stylesheet" type="text/css" href="estilos.css"> | |
</head> | |
<body> | |
<h1>La opción más recomendada es el CSS externo</h1> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod |
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 | |
/* | |
Plugin Name: Front End Posting | |
Description: Create posts from the front end | |
Author: David Perálvarez | |
Version: 1.0 | |
Author URI: https://silicodevalley.com | |
*/ | |
// Front end submission form |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Formularios en HTML</title> | |
</head> | |
<body> | |
<h1>Concurso de series</h1> | |
<form> |
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
// Útil para filtros de Gutenberg como "allowed_block_types" | |
archives | |
audio | |
button | |
categories | |
code | |
column | |
columns | |
coverImage |
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
/** | |
* Facebook Thumb Fixer | |
*/ | |
add_action('wp_head','fbfixthumbnail'); | |
function fbfixthumbnail(){ | |
global $post; | |
//If there is a post image | |
if (has_post_thumbnail()) { |
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 | |
// Add custom shortcodes to Contact Form 7 WP plugin | |
add_action( 'wpcf7_init', 'mp_cf7_custom_shortcode' ); | |
function mp_cf7_custom_shortcode(){ | |
wpcf7_add_form_tag( 'show_member_level', 'cf7_get_member_level' ); | |
} | |
function cf7_get_member_level(){ | |
$memberLevel = mp_get_member_level(); |
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
/* | |
- Compilar código LESS | |
- Añadir vendor prefixes | |
- Minificar código CSS resultante | |
- Observar los archivos para ejecutar las tareas de forma automática | |
- Recargar automáticamente el navegador | |
*/ | |
var gulp = require('gulp'), | |
autoprefixer = require('gulp-autoprefixer'), |
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
/* estilos generales */ | |
.icon::before { | |
display: inline-block; | |
font-style: normal; | |
font-variant: normal; | |
text-rendering: auto; | |
-webkit-font-smoothing: antialiased; | |
} | |
/* estilos de la versión 5, mostrando el icono de facebook */ |
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
/** | |
* Remove comments support from posts. | |
*/ | |
add_action( 'init', 'scv_remove_comments_from_posts', 10 ); | |
function scv_remove_comments_from_posts() { | |
remove_post_type_support( 'post', 'comments' ); | |
} |
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 | |
/* CTA en el contenido */ | |
add_filter( 'the_content', 'scv_cta_code' ); | |
function scv_cta_code( $content ){ | |
// Definimos nuestro CTA | |
$codeCTA = ' |
NewerOlder