Skip to content

Instantly share code, notes, and snippets.

Jean-Philippe Marchand jpmarchand

Block or report user

Report or block jpmarchand

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jpmarchand
jpmarchand / index.html
Last active Aug 20, 2019
Custom Dropshare Landing Page
View index.html
<!-- Dropshare Landing Page HTML -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>__FILENAME__</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap" rel="stylesheet">
View functions.php
<?php
//* Do NOT include the opening php tag
//* Add JS to allow elements to be faux anchors
//* Force links to be opened in a new tab
add_action( 'wp_footer', 'bg_script_clickable' );
function bg_script_clickable() {
echo '<script type="text/javascript">
jQuery(document).ready(function($) {
@jpmarchand
jpmarchand / style.css
Last active Jul 25, 2019
Dropshare Landing Page CSS
View style.css
/* Dropshare Landing Page CSS - Updated July 2019 */
html {
font-size: 62.5%; /* 10px browser default */
}
/* Chrome fix */
body > div {
font-size: 2rem;
}
@jpmarchand
jpmarchand / enqueue-from-cdn-urls.php
Last active Sep 17, 2016
How to enqueue scripts and styles in a Genesis child theme?
View enqueue-from-cdn-urls.php
//* Enqueue scripts and styles from CDN URLs
function enqueue_scripts_styles_cdn_urls() {
wp_enqueue_script('localScroll', '//cdnjs.cloudflare.com/ajax/libs/jquery-localScroll/1.4.0/jquery.localScroll.min.js');
wp_enqueue_script('scrollTo', '//cdnjs.cloudflare.com/ajax/libs/jquery-scrollTo/2.1.2/jquery.scrollTo.min.js');
}
add_action( 'wp_enqueue_scripts', 'enqueue_scripts_styles_cdn_urls' );
@jpmarchand
jpmarchand / fi.php
Created Sep 15, 2016
FusionInvoice 2016-16 French Translations
View fi.php
<?php
/**
* This file is part of FusionInvoice.
*
* (c) FusionInvoice, LLC <jessedterry@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
You can’t perform that action at this time.