Skip to content

Instantly share code, notes, and snippets.

View xomisse's full-sized avatar
👩‍💻
I may be slow to respond.

Elaine Malone xomisse

👩‍💻
I may be slow to respond.
View GitHub Profile
@xomisse
xomisse / functions.php
Last active September 21, 2019 18:59
Custom Post Type
<?php
// Register Custom Post Type
function custom_post_type() {
$labels = array(
'name' => _x( 'Post Types', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Post Type', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Post Types', 'text_domain' ),
'name_admin_bar' => __( 'Post Type', 'text_domain' ),
'archives' => __( 'Item Archives', 'text_domain' ),
@xomisse
xomisse / related_posts_widget.js
Last active January 5, 2019 16:10
Related posts for Fingers Polish Maniah
@xomisse
xomisse / page.html
Last active September 7, 2018 14:58
Square gallery with overlay text from Blogger labels linking to posts
<script src="/feeds/posts/default/-/lifestyle?orderby=published&amp;alt=json-in-script&amp;callback=recent&amp;max-results=999"></script>
<br />
<div class="center" style="margin: 20px auto;">
<a class="button" href="https://domain.blogspot.com/search/label/lifestyle">View all posts</a></div>
/*!
* SlickNav Responsive Mobile Menu v1.0.10
* (c) 2016 Josh Cope
* licensed under MIT
*/.slicknav_btn,.slicknav_nav .slicknav_item{cursor:pointer}.slicknav_menu,.slicknav_menu *{box-sizing:border-box}.slicknav_btn{position:relative;display:block;vertical-align:middle;float:right;padding:.438em .625em;line-height:1.125em}.slicknav_btn .slicknav_icon-bar+.slicknav_icon-bar{margin-top:.188em}.slicknav_menu .slicknav_menutxt{display:block;line-height:1.188em;float:left;color:#fff;font-weight:700;text-shadow:0 1px 3px #000}.slicknav_menu .slicknav_icon{float:left;width:1.125em;height:.875em;margin:.188em 0 0 .438em}.slicknav_menu .slicknav_icon:before{background:0 0;width:1.125em;height:.875em;display:block;content:"";position:absolute}.slicknav_menu .slicknav_no-text{margin:0}.slicknav_menu .slicknav_icon-bar{display:block;width:1.125em;height:.125em;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.25);-moz-box-shadow:0 1px 0 rgba(0,0,0,.25);box-shado
@xomisse
xomisse / head.html
Last active February 19, 2021 15:09
XOmisse Dynamic Image Slider for Blogger
<!-- include XO Slider CSS -->
<link rel='stylesheet' src='https://gist.githubusercontent.com/xomisse/a9ba9575fcb95e820af61c55e2c08472/raw/adb20a4cd94cd33afda82d108c9901a42aaf084a/xo-slider-style.css'/>
<!-- include FontAwesome -->
<script src='https://use.fontawesome.com/##############.js'/>
<!-- include jQuery -->
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js'/>
<!-- include Cycle2 -->
<script src='//cdnjs.cloudflare.com/ajax/libs/jquery.cycle2/20140415/jquery.cycle2.min.js' type='text/javascript'/>
<!-- include XO Slider JS -->
<script src='https://gist.githubusercontent.com/xomisse/a9ba9575fcb95e820af61c55e2c08472/raw/adb20a4cd94cd33afda82d108c9901a42aaf084a/xo-slider.js' type='text/javascript'/>
@xomisse
xomisse / body.html
Created January 29, 2017 14:56
Tutorial: Add numbered pagination to Blogger
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<!-- Start XOmisse Pagination -->
<script type='text/javascript'> //<![CDATA[
/** WRITTEN BY XOMISSE.COM **/
var postperpage=2; var numshowpage=2; var prevpage ='Previous'; var nextpage ='Next'; var urlactivepage=location.href; var home_page="/";
//]]> </script>
<script src='https://gist.githubusercontent.com/xomisse/ac8ccfa4b8fb2c26d5cf76270db92201/raw/1903a3d95e5258e859e84dd7523e9d90adb0d8bb/pagination.js' type='text/javascript'/>
<!-- End XOmisse Pagination -->
</b:if>
@xomisse
xomisse / body.html
Created September 1, 2016 14:44
Instal Disqus on Blogger
<script type='text/javascript'>
var disqus_shortname = &#39;YOURSHORTNAME&#39;;
var disqus_blogger_current_url = &#39;<data:blog.canonicalUrl/>&#39;;
if (!disqus_blogger_current_url.length) {
disqus_blogger_current_url = &#39;<data:blog.url/>&#39;;
}
var disqus_blogger_homepage_url = &#39;<data:blog.homepageUrl/>&#39;;
var disqus_blogger_canonical_homepage_url = &#39;<data:blog.canonicalHomepageUrl/>&#39;;
</script>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
@xomisse
xomisse / widget.html
Last active January 27, 2016 16:57
Blogosphere Blog Button
<a href="http://www.blogospheremagazine.com" target="_blank" title="Blogosphere Magazine"><img width: 300px; alt="Blogosphere Magazine" src="http://www.blogospheremagazine.com/wp-content/uploads/2016/01/blogospherebtn.jpg" /></a><textarea style="width: 300px; height: 60px;" id="code-source" rows="3" cols="13" name="code-source">&lt;a href=&quot;http://www.blogospheremagazine.com&quot;&gt;&lt;img src=&quot;http://www.blogospheremagazine.com/wp-content/uploads/2016/01/blogospherebtn.jpg&quot; border=&quot;0&quot;&gt;&lt;/a&gt;</textarea>
@xomisse
xomisse / CSS - Content - Centering Text Link Button
Created March 16, 2015 22:44
Tutorial : Styling a link to look like a Button