Skip to content

Instantly share code, notes, and snippets.

View jpmarchand's full-sized avatar

Jean-Philippe Marchand jpmarchand

View GitHub Profile
jpmarchand / index.html
Last active June 12, 2023 07:59
Custom Dropshare Landing Page
View index.html
<!-- Dropshare Landing Page HTML - Updated June 2023 -->
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/lib/css/style.css">
<link href="" rel="stylesheet">
View functions.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 / style.css
Last active June 12, 2023 07:41
Dropshare Landing Page CSS
View style.css
/* Dropshare Landing Page CSS - Updated June 2023 */
.site-header {
border-bottom: 1px solid #eee;
overflow: hidden;
background-color: #fafafa;
.wrap {
max-width: 1280px;
jpmarchand / enqueue-from-cdn-urls.php
Last active September 17, 2016 15:36
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', '//');
wp_enqueue_script('scrollTo', '//');
add_action( 'wp_enqueue_scripts', 'enqueue_scripts_styles_cdn_urls' );
jpmarchand / fi.php
Created September 15, 2016 14:54
FusionInvoice 2016-16 French Translations
View fi.php
* This file is part of FusionInvoice.
* (c) FusionInvoice, LLC <>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.