Skip to content

Instantly share code, notes, and snippets.

View carasmo's full-sized avatar

Christina carasmo

  • Florida
View GitHub Profile
@carasmo
carasmo / tweet-this.css
Created February 23, 2016 17:38
Tweet This replacement CSS
/* TweetThis CSS | Plugin Name: Tweet This | Author: John Morris */
.TT_wrapper {
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
margin: 10px 0;
padding: 10px 10px 0 10px;
text-align: center;
}
@carasmo
carasmo / for-functions.php
Last active February 23, 2016 17:50
wp_dequeue_style for Tweet This plugin
<?php
// don't use this
// this goes in your functions.php file in your child theme.
/** ====================================================================================
* wp_dequeue_style for plugins
@carasmo
carasmo / randomtext.php
Created February 28, 2016 00:22
Replace this file in the plugin called "Random Text" Title: Random Text Slug: randomtext Author: Greg Jackson Contributors: pantsonhead. Corrects the The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct()
<?php
/*
Plugin name: Random Text
Plugin URI: http://www.pantsonhead.com/wordpress/randomtext/
@carasmo
carasmo / for-functions.php
Last active February 28, 2016 15:43
Create a custom get_posts() for use in the genesis_sitemap_output() so you can show only specific categories or show all posts but not ones in the exclude parameter. See https://codex.wordpress.org/Template_Tags/get_posts
<?php
// don't include
/** ====================================================================================
* get posts for sitemap
* https://codex.wordpress.org/Template_Tags/get_posts
==================================================================================== **/
function christina_get_posts_for_sitemap() {
@carasmo
carasmo / example_wp_register_enqueue_script.php
Created March 6, 2016 17:34
example wp_register_enqueue
<?php
//don't use
// this goes in the child theme functions.php file
// See: https://codex.wordpress.org/Function_Reference/wp_register_script
// https://developer.wordpress.org/reference/functions/wp_enqueue_script/
function christina_register_enqueue_scripts() {
@carasmo
carasmo / gist:0cb2014f9a3673a3908c
Last active March 10, 2016 22:25
Replace breadcrumb on single attachment post
<?php
// don't use
//this goes inside the functions.php file in your Genesis child theme. USE FTP and a code editor.
/** ====================================================================================
Replace breadcrumb on single attachment post
@carasmo
carasmo / add-div-and-image-inside-site-header.php
Last active March 16, 2016 15:50
Genesis child theme: Add div and image inside .site-header, before logo just inside the .wrap - See ChristinaCreativeDesign.com for more Genesis goodness.
<?php
//* don't use
// this goes inside your functions.php file. Check your functions file if a different priority is required.
// use FTP and a code editor. Change the prefix_ in the two locations to your theme prefix. Do not use dashes or hyphens.
/** ====================================================================================
* Add div and image inside .site-header, before logo just inside the .wrap
@carasmo
carasmo / ep_exclude_password_protected_pages.php
Last active June 8, 2016 18:54 — forked from bonny/ep_exclude_password_protected_pages.php
Automatically remove password protected page from wp_list_pages wherever this function is used such as the genesis sitemap.
/** ======================================================================================
*
* Automatically Exclude Password Protected Pages
*
* Kudos: https://gist.github.com/bonny/5772054
* The original (linked above) uses an argument:
* wp_list_pages('title_li=&post_type=faqs&echo=0&exclude_password_protected=1')
*
======================================================================================= */
function ca_exclude_password_protected_pages($pages, $r) {
@carasmo
carasmo / gist:e957c60c0107ff96fd43
Last active June 9, 2016 20:04
corrected-foodie-pro.php
<?php
/**
* Custom amendments for the theme.
*
* @package FoodiePro
* @subpackage Genesis
* @copyright Copyright (c) 2014, Shay Bocks
* @license GPL-2.0+
* @link http://www.shaybocks.com/foodie-pro/
* @since 1.0.1