Skip to content

Instantly share code, notes, and snippets.


Edward Edwardtonnn

  • Los Angeles Web Club
  • South Gate, CA
Block or report user

Report or block Edwardtonnn

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
Edwardtonnn / .htaccess
Created Nov 22, 2019
htaccess rewrite
View .htaccess
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
Edwardtonnn / copyright-year.php
Created Sep 13, 2019
Copyright automatically update year for WP footer
View copyright-year.php
View alineAnimationGSAP.js
// Scroll to top color change
// function preLoaderStart() {
// // ST0 is the green portion of Aline Logo
// var ali_green = document.getElementsByClassName('st0'),
// ali_grey = document.getElementsByClassName('st1'),
// preloader = document.getElementsByClassName('container-preloader'),
// tl = new TimelineLite();
// if ($('body').hasClass("home")) {
// // Only plays Once Per Session
Edwardtonnn / style.css
Created Sep 2, 2019
Los Angeles Web Club CSS files
View style.css
.site-title a{display:none}@font-face{font-family:"Courier";src:url("/fonts/CourierNewPSMT.eot");src:url("/fonts/CourierNewPSMT.svg") format("svg"),url("/fonts/CourierNewPSMT.woff2") format("woff2"),url("/fonts/CourierNewPSMT.woff") format("woff")}h1.h1-intro{font-size:8rem;font-weight:900;text-align:center}@media(max-width: 960px){h1.h1-intro{font-size:4rem}}h2.h2-subtext{color:#fff;font-size:1.5rem;text-align:center;text-transform:uppercase;letter-spacing:5px}{background:transparent;position:absolute} .wrap{display:flex;justify-content:space-between;align-items:center}@media(max-width: 960px){ .wrap{display:block}} .wrap:before, .wrap:after{display:none}.main-logo{height:75px;width:100%}nav#genesis-nav-primary li a{font-family:"Courier New";font-size:1rem;color:#f5ad03}nav#genesis-nav-primary li a:hover{background:#f5ad03;color:#fff}#genesis-mobile-nav-primary{color:#f5ad03}.bg-blue{background:#002a42}.blue{color:#002a
View script.js
<script type='text/javascript'>
jQuery(document).bind('gform_post_render', function(event, formId, currentPage){if(formId == 2) {gformInitCurrencyFormatFields('#input_2_20,#input_2_21');if(typeof Placeholders != 'undefined'){
}jQuery('#input_2_16').mask('(999) 999-9999').bind('keypress', function(e){if(e.which == 13){jQuery(this).blur();} } );} } );jQuery(document).bind('gform_post_conditional_logic', function(event, formId, fields, isInit){} );</script><script type='text/javascript'>jQuery(document).ready(function(){jQuery(document).trigger('gform_post_render', [2, 1]) } );</script><!-- call the jQuery library if not already loaded in theme --> <!-- the function to show the error notice or the fading confirmation notice at top of page --> <script type="text/javascript">jQuery(document).ready(function(){
jQuery("[id*='field_2_'] ").removeClass("gfield_error");
View functions.php
function currentYear( $atts ){
return date('Y');
add_shortcode( 'year', 'currentYear' );
//To use the shortcode
Edwardtonnn / functions.php
Created May 15, 2019
Enqueue Style the simple way
View functions.php
// To enqueue style.css
wp_enqueue_style( 'style', get_stylesheet_uri() );
Edwardtonnn / index.html
Created May 14, 2019
Popup Maker Shortcode Example
View index.html
[popup_trigger id="49644" tag="span" class="download-button"]Download Now[/popup_trigger]
View functions.php
// Breadcrumbs
function custom_breadcrumbs() {
// Settings
$separator = '&gt;';
$breadcrums_id = 'breadcrumbs';
$breadcrums_class = 'breadcrumbs';
$home_title = 'Homepage';
Edwardtonnn / custom.js
Last active Mar 28, 2019
enqueue scripts
View custom.js
(function($) {
// $ Works! You can test it with next line if you like
console.log("Custom JS Running");
})( jQuery );
You can’t perform that action at this time.