Skip to content

Instantly share code, notes, and snippets.

View lizardking8610's full-sized avatar

Robert lizardking8610

View GitHub Profile
@lizardking8610
lizardking8610 / enqueu.js
Created April 20, 2018 15:51
How To Properly Enqueue jQuery in WordPress
function my_scripts_method() {
if ( !is_admin() ) {
wp_enqueue_script('jquery-ui-accordion');
wp_enqueue_script(
'custom-accordion',
get_stylesheet_directory_uri() . '/js/accordion.js',
array('jquery')
);
wp_enqueue_script('jquery-ui-tabs');
@lizardking8610
lizardking8610 / JohnsonBox.html
Last active April 20, 2018 14:43
CTA Johnson Box (simple box in lieu of graphical call to action)
<div style="padding: 15px; margin-bottom: 15px; background: #ffffde; border: 1px solid #ddd; width: 85%;" align="center">
<h2>Type the Name Of Your Offer Here</h2>
Type the benefit of taking your offer here
<a href="https://www.robertmcmillin.com" target="_blank">Click here to access [OFFER]</a>
</div>
@lizardking8610
lizardking8610 / social_single.php
Created August 3, 2017 17:33
automatic social media links
// bookmark on Delicious
<a rel="nofollow" href="http://delicious.com/post?url=<?php the_permalink(); ?>&amp;title=<?php echo urlencode(get_the_title($id)); ?>" title="Bookmark this post at Delicious">Bookmark at Delicious</a>
// submit to Digg
<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink(); ?>" title="Submit this post to Digg">Digg this!</a>
// tweet on Twitter
<a rel="nofollow" href="http://twitter.com/home?status=<?php echo urlencode("Currently reading: "); ?><?php the_permalink(); ?>" title="Share this article with your Twitter followers">Tweet this!</a>
// submit to StumbleUpon
@lizardking8610
lizardking8610 / bounce.css
Created August 3, 2017 17:29
Bounce CSS3 Loading Animation
.loader {
text-align: center;
}
.loader span {
display: inline-block;
vertical-align: middle;
width: 10px;
height: 10px;
margin: 50px auto;
background: black;
@lizardking8610
lizardking8610 / focus-within.css
Created August 3, 2017 17:26
Form with :focus-within CSS
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
line-height: 1.4;
}
body {
@lizardking8610
lizardking8610 / batch_convert_doc_to_docx.vba
Last active December 5, 2024 16:51
Batch Convert Doc to Docx with VBA and Vice Versa and Doc to PDF Batch
Sub TranslateDocIntoDocx()
Dim objWordApplication As New Word.Application
Dim objWordDocument As Word.Document
Dim strFile As String
Dim strFolder As String
strFolder = "E:\Temp\"
strFile = Dir(strFolder & "*.doc", vbNormal)
While strFile <> ""
@lizardking8610
lizardking8610 / remove_post_info_functions.php
Last active June 12, 2017 20:10
Disable Post Info on Genesis and Studiopress Themes for HTML5
//for when you need to edit or remove post info on genesis and studiopress themes.
//* Customize the entry meta in the entry header (requires HTML5 theme support)
add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter($post_info) {
$post_info = '';
return $post_info;
}
@lizardking8610
lizardking8610 / mobile_hide_show.css
Created June 3, 2017 03:32
Mobile Hide and Mobile Show
.mobile-hide {
visibility: hidden;
clip: rect(0px, 0px, 0px, 0px);
position: absolute;
display: none;
}
@media only screen and (min-width: 800px) {
.mobile-hide {
visibility: visible;
@lizardking8610
lizardking8610 / stitched-border.css
Last active May 31, 2017 03:16
stitched border
.stitched {
padding: 20px;
margin: 10px;
background: #67bbab;
color: #fff;
font-size: 21px;
font-weight: bold;
line-height: 1.3em;
border: 2px dashed #fff;
@lizardking8610
lizardking8610 / ipad-media-queries.css
Last active May 31, 2017 02:42
Ipad Media Queries
@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait) {
.largewhite br { content: ' '; }
}