Skip to content

Instantly share code, notes, and snippets.

View daviddegliame's full-sized avatar

Degliame David daviddegliame

View GitHub Profile
@daviddegliame
daviddegliame / wp-update.sh
Created May 5, 2017 13:51 — forked from bananana/wp-update.sh
Bash script to run automatic updates and backups using wp-cli
#!/bin/bash
#
# Backup and update WordPress using wp-cli
#
# Set the -e shell option so the script exits immediately if any command within
# it exits with a non-zero status.
set -e
# Set PATH environment variable
@daviddegliame
daviddegliame / nodc-metatitle.php
Created August 6, 2015 08:00
Wordpress avec le framework genesis : modifier la meta title sur les pages et archives avec une pagination …
<?php
// in function.php of your theme or in mu-plugin file …
//* SEO - fight duppplicate meta title on paginate section
add_filter( 'wp_title', 'genesis_paginate_title', 35, 3 );
if (!function_exists('genesis_paginate_title'))
{
function genesis_paginate_title($title, $sep)
{
global $page, $paged;
#nav ul
{
margin: 10px 0;
padding: 0px 0 0px 30px;
background: #269;
border-radius: 3px;
border: 2px solid #ccc;
}
#nav ul
{
margin: 10px 0;
padding: 0px 0 0px 30px;
background: #269;
border-radius: 3px;
border: 2px solid #ccc;
}
#nav ul
{
margin: 10px 0;
padding: 0px 0 0px 30px;
background: #269;
border-radius: 3px;
border: 2px solid #ccc;
}
@daviddegliame
daviddegliame / dabblet.css
Created May 26, 2012 09:02
Feuilles superposées
/**
* Feuilles superposées
*/
/* Petite mise en page */
body {
width: 375px;
margin: 20px auto;
font-family: helvetica, arial, sans-serif;
color: #fff;
@daviddegliame
daviddegliame / dabblet.css
Created May 26, 2012 09:02
Feuilles superposées
/**
* Feuilles superposées
*/
/* Petite mise en page */
body {
width: 375px;
margin: 20px auto;
font-family: helvetica, arial, sans-serif;
color: #fff;
@daviddegliame
daviddegliame / dabblet.css
Created May 26, 2012 09:02
Feuilles superposées
/**
* Feuilles superposées
*/
/* Petite mise en page */
body {
width: 375px;
margin: 20px auto;
font-family: helvetica, arial, sans-serif;
color: #fff;
@daviddegliame
daviddegliame / dabblet.css
Created May 26, 2012 09:02
Feuilles superposées
/**
* Feuilles superposées
*/
/* Petite mise en page */
body {
width: 375px;
margin: 20px auto;
font-family: helvetica, arial, sans-serif;
color: #fff;
@daviddegliame
daviddegliame / dabblet.css
Created May 26, 2012 09:02
Feuilles superposées
/**
* Feuilles superposées
*/
/* Petite mise en page */
body {
width: 375px;
margin: 20px auto;
font-family: helvetica, arial, sans-serif;
color: #fff;