Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Edward Edwardtonnn

🎯
Focusing
  • 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
Edwardtonnn / custom_jquery-script.js
Last active Jan 26, 2018
Adding jQuery to WordPress Avada Child Theme
View custom_jquery-script.js
(function($) {
$(document).ready(function() {
$('.newHover').hover(
function(){
jQuery( "a", this).toggleClass("white");
});
})
})(jQuery);
@Edwardtonnn
Edwardtonnn / index.html
Created Mar 21, 2018
Module for Lazone Morgan
View index.html
<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 Apr 2, 2018
jquery and javascript date function
View date.js
var monthNames = [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
@Edwardtonnn
Edwardtonnn / functions.php
Created May 9, 2018
Adding Favicon to Genesis Theme functions.php file
View functions.php
/** 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
Last active Jul 11, 2018
Genesis Enqueue Styles Function
View functions.php
<?php
//Do not include opening <?php tag
//* Load custom style sheet
add_action( 'wp_enqueue_scripts', 'load_styles' );
function load_styles() {
wp_enqueue_style(
'custom',
get_stylesheet_directory_uri() . '/css/custom.css',
@Edwardtonnn
Edwardtonnn / functions.php
Created May 9, 2018
Removes the edit links on Genesis Theme
View functions.php
<?php
//* Do NOT include the opening php tag
//* Remove the edit link
add_filter ( 'genesis_edit_post_link' , '__return_false' );
@Edwardtonnn
Edwardtonnn / custom.js
Last active Jul 11, 2018
wp_enqueue script
View custom.js
(function($) {
// $ Works! You can test it with next line if you like
console.log("I'm alive!");
})( jQuery );
@Edwardtonnn
Edwardtonnn / functions.php
Created May 17, 2018
Genesis Custom Footer
View functions.php
//* 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 / functions.php
Last active Jul 11, 2018
Holy Grail of All Genesis
View functions.php
<?php
//Only Code Below This Line
//_________________________________________
//* Customize the entire footer
remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'custom_footer' );
function custom_footer() {
@Edwardtonnn
Edwardtonnn / wordpress-change-domain-migration.sql
Created Jun 15, 2018 — 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…
View wordpress-change-domain-migration.sql
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);
You can’t perform that action at this time.