Skip to content

Instantly share code, notes, and snippets.

💭
PHP

cwylie0 cwylie0

💭
PHP
Block or report user

Report or block cwylie0

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
@cwylie0
cwylie0 / location.css
Created Aug 14, 2019
Location Page 2019
View location.css
* {
box-sizing: border-box;
}
.contactInfo {
background: #f2f2f2;
width: 25%;
float: right;
padding: 15px;
}
@cwylie0
cwylie0 / contactForm7RedirectFunction.php
Created Jan 30, 2019
Contact Form 7 Redirect to URL Function
View contactForm7RedirectFunction.php
/* The following function is the new method to redirect to a thank you page after contact form 7 submission. Add it to the functions.php file of your theme. */
add_action( 'wp_footer', 'redirect_cf7' );
function redirect_cf7() {
?>
<script type="text/javascript">
// Insert your redirect URL as the location below.
document.addEventListener( 'wpcf7mailsent', function( event ) {
location = 'http://careers.ifixyouri.com/thank-you/';
View responsiveRightDivFloat.html
<style>
.wrapper {
position: relative;
}
.buttons {
height: 150px;
background: tomato;
}
@media screen and (min-width: 48em) {
View broken3KeyCommand.sh
#!/bin/shxmodmap -e "keycode 12 = NoSymbol"
xmodmap -e "keycode 127 = numbersign"
xmodmap -e "keycode 118 = 3"
@cwylie0
cwylie0 / address.js
Last active Aug 25, 2016
Simple javascript address book example from codeacademy
View address.js
var bob = {
firstName: "Bob",
lastName: "Jones",
phoneNumber: "(650) 777-7777",
email: "bob.jones@example.com"
};
var mary = {
firstName: "Mary",
lastName: "Johnson",
View metaDescription.py
""" Input file: .csv with kw1, kw2, biz name, location, ST
Output: 160 chars or less of word-replaced random combo of 1st, 2nd, 3rd sentence. Length <= 160 chars
"""
import random
import csv
firstSentence = ["Interested in KW1? ", "Looking for KW1? ", "Considering KW1? ", "Searching for KW1 in LOCATION, ST? "];
secondSentence = ["BIZNAME specializes in KW2 in the LOCATION area. ","BIZNAME is an expert in KW2 in LOCATION, ST. ","BIZNAME performs this procedure in the LOCATION, ST area. ","Explore the website BIZNAME, who performs KW2 in the LOCATION area. "];
thirdSentence = ["Click here for photos!","Click here for before and after photos!","Find more info here!","Contact us today!"];
@cwylie0
cwylie0 / locationStyle.css
Created Jul 21, 2016
Location page styling
View locationStyle.css
/* Form styling --------------*/
.special_form_container {
border:1px solid #4abc44;
-webkit-border-radius: 10px;
border-radius: 10px; background-color: #EFEFEF;
box-shadow: none;
overflow: hidden;
box-sizing: border-box;
padding:15px;
@cwylie0
cwylie0 / redirect.js
Last active Jul 21, 2016
Page redirect using JavaScript
View redirect.js
// similar behavior as an HTTP redirect
window.location.replace("http://stackoverflow.com");
// similar behavior as clicking on a link
window.location.href = "http://stackoverflow.com";
@cwylie0
cwylie0 / videoSitemap.xml
Created May 5, 2016
Google's template for proper video sitemap xml
View videoSitemap.xml
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url>
<loc>http://www.example.com/videos/some_video_landing_page.html</loc>
<video:video>
<video:thumbnail_loc>http://www.example.com/thumbs/123.jpg</video:thumbnail_loc>
<video:title>Grilling steaks for summer</video:title>
<video:description>Alkis shows you how to get perfectly done steaks every
time</video:description>
<video:content_loc>http://www.example.com/video123.flv</video:content_loc>
@cwylie0
cwylie0 / Video-Script.html
Created May 5, 2016
Schema markup for embedded videos
View Video-Script.html
<!-- Schema Markup for embedded video -->
<div itemprop="video" itemscope itemtype="http://schema.org/VideoObject">
<h2>Video: <span itemprop="name">Title</span></h2>
<meta itemprop="duration" content="T1M33S" />
<meta itemprop="thumbnailUrl" content="thumbnail.jpg" />
<meta itemprop="contentURL" content="http://www.example.com/video123.flv" />
<meta itemprop="embedURL" content="http://www.example.com/videoplayer.swf?video=123" />
<meta itemprop="uploadDate" content="2011-07-05T08:00:00+08:00" />
<meta itemprop="expires" content="2012-01-30T19:00:00+08:00" />
<meta itemprop="height" content="400" />
You can’t perform that action at this time.