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
@import url('style.css'); | |
.mceContentBody { | |
background-color: #fff; | |
} | |
.mceContentBody .content { | |
padding: 15px 18px 10px; | |
width: 100%; | |
} | |
.mceContentBody ul { |
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
{ | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_selector": "source, text", | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", |
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 | |
/** | |
* Home page with Widget for Sample Theme | |
* | |
* @author Grégoire Noyelle | |
* @package Sample Theme | |
* @subpackage Customizations | |
*/ | |
add_action( 'genesis_meta', 'gn_sample_home_genesis_meta' ); |
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 | |
// Mettre dans fichier functions.php | |
// bien retirer la balise PHP du début | |
add_action( 'template_redirect', 'gn_filter_content_no_loged'); | |
function gn_filter_content_no_loged( ) { | |
if( is_user_logged_in() || is_home() || is_page( array('3096','3074')) ) | |
return; | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
remove_action('genesis_loop','genesis_do_loop'); |
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 | |
/* initialiser la taxonomie */ | |
add_action( 'init', 'gncom_register_taxonomy', 0 ); | |
/* fonction pour parametrer l'enregistrement */ | |
function gncom_register_taxonomy() { | |
/************************** | |
Type Image |
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 | |
/**** | |
* New image size | |
* @gregoirenoyelle | |
****/ | |
// Create a new image size | |
add_image_size('Vign Haut de Page', 266, 168, 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
<html> | |
<head> | |
<title></title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<style type="text/css"> | |
.text-gras {font-weight: bold;} | |
</style> | |
<script type="text/javascript"> | |
/* |
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 | |
/** Supprimer les post info */ | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
/** Suprimer les post meta */ | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); |
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
## Coller la totalite dans champs SQL de phpMyAdmin ## | |
## ATTENTION A NE PAS METTRE DE SLASH A LA FIN DES URL ## | |
# CHANGER URL DU SITE | |
UPDATE wp_options | |
SET option_value = REPLACE(option_value, 'http://www.vieuxsite.fr', 'http://www.nouveausite.fr') | |
WHERE option_name = 'home' |
OlderNewer