Skip to content

Instantly share code, notes, and snippets.

View michelventura's full-sized avatar

Michel Ventura michelventura

View GitHub Profile
@michelventura
michelventura / estrategia.md
Last active October 1, 2017 05:34
Estrategia de seguridad y mantenimiento para cualquier sitio con WordPress

Estrategía de seguridad y mantenimiento con WordPress

1. Sentido Común

* Proveedor de Hosting Seguro
* Temas y plugins de autores confiables
* Nombres de usuario y contraseñas difíciles
* Roles de usuario con permisos adecuados
* WP Core y plugins actualizados

2. Control de acceso

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
@michelventura
michelventura / functions.php
Last active October 1, 2017 02:23
Remove all single page title on static pages
add_action( 'genesis_before_entry', 'custom_remove_titles' );
/**
* Remove entry header on static Pages.
*/
function custom_remove_titles() {
// if we are not on a static Page, abort.
if ( ! is_page() ) {
return;
}
@michelventura
michelventura / shame.css
Last active September 30, 2017 18:33
CSS to make beaver builder full width
/*
Beaver Builder integration with Genesis
---------------------------------------------------------------------------------------------------- */
.fl-builder .site-inner {
padding: 0;
border-top: none;
max-width: none;
}