Skip to content

Instantly share code, notes, and snippets.

View jpmarchand's full-sized avatar

Jean-Philippe Marchand jpmarchand

View GitHub Profile
@jpmarchand
jpmarchand / index.html
Last active June 12, 2023 07:59
Custom Dropshare Landing Page
<!-- Dropshare Landing Page HTML - Updated June 2023 -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>__FILENAME__</title>
<link rel="stylesheet" href="/lib/css/style.css">
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+3&display=swap" rel="stylesheet">
<?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 June 12, 2023 07:41
Dropshare Landing Page 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
jpmarchand / enqueue-from-cdn-urls.php
Last active September 17, 2016 15:36
How to enqueue scripts and styles in a Genesis child theme?
//* 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 September 15, 2016 14:54
FusionInvoice 2016-16 French Translations
<?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.
*/