Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
benjaminniess / go-f-yourself.php
Last active May 20, 2016
A little one file WordPress plugin that will disable the authors single template (don't enable this plugin it if you use the author's template) and redirect bots that try to connect with the ''admin" username to my favorite NSFW website. Cheers!
View go-f-yourself.php
Plugin Name: Go F Yourself
Description: Disable '?author=n' view and redirect people trying to login with the "admin" user
Version: 1.0
Author: Benjamin Niess
Author URI:
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
View 4m-bbpress-fix.php
* Plugin Name: 4m - BBpress fix
* Plugin URI:
* Description: Fix queries when user is not logged in.
* Version: 1.0
* Author: 4mation
* Author URI:
* License: A "Slug" license name e.g. GPL2
benjaminniess / functions.php
Last active Jan 3, 2016
Webschool theme T501
View functions.php
function twentyfourteen_setup() {
// Enable support for Post Thumbnails, and declare two sizes.
add_theme_support( 'post-thumbnails' );
// This theme uses wp_nav_menu() in two locations.
register_nav_menus( array(
'primary' => 'Menu principal',
) );
benjaminniess / default-breadcrumb-navxt-list.html
Created Dec 8, 2013
The default breadcrumb navxt structure (list mode)
View default-breadcrumb-navxt-list.html
<ul class="what-you-want">
<li class="home" class="home"><a title="" href="#" class="home">Accueil</a></li>
<li><a title="" href="#" class="post post-page">Page parente</a></li>
<li class="current_item" class="current_item">Page 3</li>
View default-breadcrumb-navxt-structure.html
<a title="" href="#" class="home">Accueil</a> &gt;
<a title="" href="#" class="post post-page">Page parente</a> &gt; Page 3
View default-wp-seo-breadcrumb.html
<div id="breadcrumb">
<div class="wrapper">
<div id="breadcrumb-holder">
<span typeof="v:Breadcrumb"><a href="#" rel="v:url" property="v:title">Accueil</a></span> >
<span typeof="v:Breadcrumb"><a href="#" rel="v:url" property="v:title">breadcrumb level 1</a></span> >
<span typeof="v:Breadcrumb">
<span class="breadcrumb_last" property="v:title">breadcrumb level 2 (current)</span>
benjaminniess / default-comments.html
Created Dec 2, 2013
An example of WordPress comments form
View default-comments.html
<div id="respond" class="comment-respond">
<h3 id="reply-title" class="comment-reply-title">Laisser un commentaire
<a rel="nofollow" id="cancel-comment-reply-link" href="#respond" style="display:none;">Annuler la réponse.</a>
<form action="#" method="post" id="commentform" class="comment-form" novalidate>
<p class="comment-notes">
benjaminniess / default-nav-menu.html
Last active Dec 30, 2015
Example of a WordPress generated menu
View default-nav-menu.html
<div class="classe-du-menu-personnalisable-facilement">
<li class="page_item page-item-id-de-la-page">
<a href="#">Accueil</a>
<li class="menu-item-has-children">
<a href="#">Page 2</a>
<ul class="sub-menu">
<li id="menu-item-23"><a href="#">Sous élément</a></li>
<li id="menu-item-24"><a href="#">Sous élément 2</a></li>
benjaminniess / default-sidebar.html
Created Dec 1, 2013
The default WordPress sidebar structure
View default-sidebar.html
<aside id="sidebar">
<div class="widget-area">
<div class="widget widget-class-du-widget">
<h4 class="widgettitle">Titre du widget</h4>
<p>Contenu de votre widget et structure de votre choix</p>
<div class="widget widget_archive">
<h4 class="widgettitle">Widget archive</h4>
benjaminniess / default-wp-pagenavi-structure.html
Last active Dec 29, 2015
The default WP Pagenavi structure
View default-wp-pagenavi-structure.html
<div class="wp-pagenavi-holder">
<div class="wp-pagenavi">
<span class="pages">Page 1 sur 13</span>
<a class="previouspostslink" href="#"><span>Précédent</span></a>
<span class="current">1</span>
<a class="page larger" href="#">2</a>
<a class="page larger" href="#">3</a>
<span class="extend">...</span>
<a class="page larger" href="#">8</a>
<a class="nextpostslink" href="#"><span>Suivant</span></a>
You can’t perform that action at this time.