Skip to content

Instantly share code, notes, and snippets.

View NeomMob's full-sized avatar
🏠
Not so far...

NeomMob

🏠
Not so far...
View GitHub Profile
@NeomMob
NeomMob / wordpress-post-footer.php
Last active June 1, 2020 15:00
Wordpress Post Footer
function wpb_after_post_content($content){
if (is_single()) {
if( in_category( 'ma_catégorie' ) ){
$custom_content = "<h2>Ceci est mon super pied de page!</h2>";
$content = $content . $custom_content ;
}
}
return $content;
}
add_filter( "the_content", "wpb_after_post_content" );
@NeomMob
NeomMob / layout.json
Created May 14, 2017 07:39
example of Layout definition for slidium
"Layouts":[
{
"Name" : "Default",
"Group" :"Basic",
"Snippet": "# Fidele",
"Classes": "titleandcolumns",
"Dynamic": false,
"DynamicPart" :"",
"FixedParts": 1,
"Template": "<div class=\"grid\"><div class=\"column\"> {@{content}@}</div></div>",