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
name: Deploy to WordPress.org | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
tag: | |
name: New tag | |
runs-on: ubuntu-latest | |
steps: |
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
Hola <nombre del cliente>: | |
Ante todo muchas gracias por ponerte en contacto y por confiar en nuestros servicios para el desarrollo de tu web. | |
Necesitaría que por favor respondas las siguientes preguntas para realizar un presupuesto acorde a las necesidades de tu proyecto. | |
==================== | |
Sobre su negocio: | |
- ¿A qué se dedica tu empresa/proyecto/emprendimiento? |
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; |
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
#Redirect 301 from HTTP to HTTPS with www | |
RewriteCond %{HTTP_HOST} !^www\. | |
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
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 | |
/** | |
* @author Brad Dalton | |
* @link https://wpsites.net/web-design/add-custom-field-to-genesis-loop/ | |
*/ | |
add_action( 'genesis_entry_content', 'function_name', 12 ); | |
function function_name() { | |
$value = get_post_meta( get_the_ID(), 'key', 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 | |
/** | |
* Template Name: Custom Template -- Replace this with your post type title | |
*/ | |
remove_action('genesis_loop', 'genesis_do_loop'); //Remove the default custom post type loop | |
add_action('genesis_loop', 'custom_post_loop'); //Add custom post type loop | |
remove_action('genesis_before_post_content', 'genesis_post_info'); //Stop post page from displaying the post info (date, comments, etc.) | |
remove_action('genesis_after_post_content', 'genesis_post_meta'); //Stop post page from displaying the post meta (category, tags, etc.) |
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 | |
/** | |
* This file adds a timeline to your desired page in Genesis Framework. | |
* | |
* @author Omar Al-Ansari | |
* @link http://www.alansari.io | |
*/ | |
// Force full width content | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); |
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 /* Use when a Plugin has been modified and should not be updated */ | |
function disable_filter_plugin_updates( $value ) { | |
unset( $value->response['cms-tree-page-view/index.php'] ); | |
return $value; | |
} | |
add_filter( 'site_transient_update_plugins', 'disable_filter_plugin_updates' ); | |
// source: Source: http://wordpress.stackexchange.com/questions/20580/disable-update-notification-for-individual-plugins | |
?> |
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 | |
/** | |
* Mostrar / Ocultar Admin Bar | |
* | |
* Según el Codex, basta retornar el valor 'false' en la función 'show_admin_bar' para ocultar | |
* la barra de administración. Sin embargo, esta implementación parece que no funciona correctamente. | |
* | |
*/ | |
function remove_admin_bar($show_admin_bar) | |
{ |
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
// Register a custom image size for hero images on single Posts | |
add_image_size( 'post-image', 1600, 400, true ); | |
add_action( 'genesis_after_header', 'sk_hero_image' ); | |
function sk_hero_image() { | |
// if we are not on a single Post, abort. | |
if ( !is_singular( 'post' ) ) { | |
return; | |
} |
NewerOlder