Skip to content

Instantly share code, notes, and snippets.

View Edwardtonnn's full-sized avatar
🎯
Focusing

Edward Edwardtonnn

🎯
Focusing
  • Los Angeles Web Club
  • South Gate, CA
View GitHub Profile
@Edwardtonnn
Edwardtonnn / custom_jquery-script.js
Last active January 26, 2018 17:57
Adding jQuery to WordPress Avada Child Theme
(function($) {
$(document).ready(function() {
$('.newHover').hover(
function(){
jQuery( "a", this).toggleClass("white");
});
})
})(jQuery);
@Edwardtonnn
Edwardtonnn / index.html
Created March 21, 2018 18:38
Module for Lazone Morgan
<div class="lzmProcess">
<i class="fa fa-phone fa-icon-edit" aria="true"></i>
<p class="lzmProcessParagraph">
Contact Our Team of Professionals
</p>
</div>
@Edwardtonnn
Edwardtonnn / date.js
Created April 2, 2018 18:36
jquery and javascript date function
var monthNames = [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
@Edwardtonnn
Edwardtonnn / functions.php
Created May 9, 2018 20:29
Adding Favicon to Genesis Theme functions.php file
/** Adding custom Favicon */
add_filter( 'genesis_pre_load_favicon', 'custom_favicon' );
function custom_favicon( $favicon_url ) {
return 'http://myblog.com/image-name.png/';
}
@Edwardtonnn
Edwardtonnn / functions.php
Created May 9, 2018 22:36
Removes the edit links on Genesis Theme
<?php
//* Do NOT include the opening php tag
//* Remove the edit link
add_filter ( 'genesis_edit_post_link' , '__return_false' );
@Edwardtonnn
Edwardtonnn / functions.php
Created May 17, 2018 22:21
Genesis Custom Footer
//* Customize the entire footer
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'custom_footer' );
function custom_footer() {
?>
<p>&copy; Copyright 2012 <a href="http://mydomain.com/">My Domain</a> &middot; All Rights Reserved &middot; Powered by <a href="http://wordpress.org/">WordPress</a> &middot; <a href="http://mydomain.com/wp-admin">Admin</a></p>
<?php
}
@Edwardtonnn
Edwardtonnn / wordpress-change-domain-migration.sql
Created June 15, 2018 15:37 — forked from chuckreynolds/wordpress-change-domain-migration.sql
Use this SQL script when changing domains on a WordPress site. Whether you’re moving from an old domain to a new domain or you’re changing from a development domain to a production domain this will work. __STEP1: always backup your database. __STEP2: change the ‘oldsite.com’ and ‘newsite.com’ variables to your own. __STEP3: make sure your databa…
SET @oldsite='http://oldsite.com';
SET @newsite='http://newsite.com';
UPDATE wp_options SET option_value = replace(option_value, @oldsite, @newsite) WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, @oldsite, @newsite);
UPDATE wp_links SET link_url = replace(link_url, @oldsite, @newsite);
UPDATE wp_postmeta SET meta_value = replace(meta_value, @oldsite, @newsite);
/* only uncomment next line if you want all your current posts to post to RSS again as new */
#UPDATE wp_posts SET guid = replace(guid, @oldsite, @newsite);
@Edwardtonnn
Edwardtonnn / A.markdown
Created June 19, 2018 22:01 — forked from larrybotha/A.markdown
Export multiple artboards in Adobe Illustrator to png, or pdf

Export multiple Adobe Illustrator artboards to png, jpg, pdf

This is a reference to Matthew Ericson's article Export Illustrator Layers and/or Artboards as PNGs and PDFs in case something happens to happen to the article, and if I just forget where to find the exporter online.

Usage

  • Drop MultiExporter.js into /Applications/Adobe\ Illustrator\ CS6/Presets.localized/en_GB/Scripts
  • Restart Illustrator
@Edwardtonnn
Edwardtonnn / style.css
Created July 11, 2018 20:47
Mobile Display on Desktop Screen Genesis Sample Theme
/* Genesis Menu
--------------------------------------------- */
.genesis-nav-menu .menu-item {
display: inline-block;
}
.genesis-nav-menu .menu-item:focus,
.genesis-nav-menu .menu-item:hover {
position: relative;
@Edwardtonnn
Edwardtonnn / functions.php
Last active July 16, 2018 20:59
Genesis Create A Widget Area
<?php
/**
* Register our sidebars and widgetized areas.
*
*/
function custom_widget_add() {
register_sidebar( array(
'name' => 'Secondary Sidebar',
'id' => 'secondary_sidebar',
'before_widget' => '<div>',