Skip to content

Instantly share code, notes, and snippets.

View fernandiez's full-sized avatar

Fernan fernandiez

View GitHub Profile
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
@maugelves
maugelves / email-con-preguntas-para-presupuesto-web.txt
Last active March 31, 2023 22:39
Correo electrónico con preguntas básicas para la elaboración del presupuesto de un proyecto web.
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?
@PCianes
PCianes / admin_notice.php
Last active January 11, 2019 08:22
Admin notices (avisos panel administración)
<?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;
@fernandiez
fernandiez / .htaccess
Created April 23, 2017 23:40
Redirect 301 from HTTP to HTTPS with www
#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]
<?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 );
@jcook3195
jcook3195 / custom-post-template.php
Last active September 19, 2017 09:04
Template for Custom Post with CPTUI
<?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.)
<?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' );
@mrfoxtalbot
mrfoxtalbot / disable-wprdpress-plugin-updates.php
Last active September 13, 2017 15:01
Disable updates for a specific WordPress plugin
<?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
?>
@davidnaviaweb
davidnaviaweb / functions.php
Created October 1, 2016 09:57
WordPress Dashboard tips & tricks @ WC Sevilla 2016
<?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)
{
@srikat
srikat / functions.php
Last active April 9, 2019 16:27
How to overlay entry title on featured image in single Posts. https://sridharkatakam.com/overlay-entry-title-featured-image-single-posts/
// 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;
}