This file contains hidden or 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 | |
| if( function_exists( 'acf_add_options_page' ) ) | |
| { | |
| acf_add_options_page(); | |
| acf_add_options_sub_page( 'Subpage 1 name' ); | |
| acf_add_options_sub_page( 'Subpage 2 name' ); | |
| } |
This file contains hidden or 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 | |
| # infinite scroll Genesis | |
| remove_action( 'genesis_after_endwhile', 'genesis_posts_nav' ); | |
| function is_blog () | |
| { | |
| global $post; | |
| $posttype = get_post_type($post ); | |
| return ( ((is_archive()) || (is_author()) || (is_category()) || (is_home()) || (is_single()) || (is_tag())) && ( $posttype == 'post') ) ? true : false ; | |
| } |
This file contains hidden or 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 | |
| // ------------------------------------------------------------------ | |
| // Add all your sections, fields and settings during admin_init | |
| // ------------------------------------------------------------------ | |
| // | |
| function tp_settings_api_init() | |
| { | |
| // Add the section to reading settings so we can add our | |
| // fields to it | |
| add_settings_section( |
This file contains hidden or 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
| RewriteEngine On | |
| RewriteCond %{SERVER_PORT} !^443$ | |
| RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [QSA,R=301,L] |
This file contains hidden or 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 | |
| /** | |
| * Add excerpts to pages | |
| */ | |
| add_action( 'init', 'eemi_add_excerpts_to_pages' ); | |
| function eemi_add_excerpts_to_pages() | |
| { | |
| add_post_type_support( 'page', 'excerpt' ); | |
| } |
This file contains hidden or 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
| /* ## Back to top | |
| --------------------------------------------- */ | |
| .eemi-top:hover { | |
| color: #fff !important; | |
| background-color: rgba(0,0,0,0.8); | |
| text-decoration: none; | |
| } | |
| .eemi-top { | |
| display: none; |
This file contains hidden or 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
| RewriteEngine On | |
| RewriteRule ^produit/(.*)$ produit?prod=$1 [L] |
This file contains hidden or 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
| <style> | |
| body{background:red} | |
| .wrapper{ | |
| position: relative; | |
| width: 600px; | |
| background: #A8C0CF; | |
| margin-top: 20px; | |
| padding: 24px; | |
| display: block; | |
| margin-left: auto; |
This file contains hidden or 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
| <div id="wrap"> | |
| <div id="header"></div> | |
| <div id="inner"> | |
| <div class="wrap"> | |
| <div id="content-sidebar-wrap"> | |
| <div id="content" class="hfeed"></div> | |
| <div id="sidebar" class="sidebar widget-area"></div> | |
| </div> | |
| </div> | |
| </div> |
This file contains hidden or 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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR] | |
| RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$ | |
| RewriteCond %{REMOTE_ADDR} !^255\.255\.255\.255$ | |
| RewriteRule ^(.*)$ - [R=403,L] | |
| </IfModule> |