Skip to content

Instantly share code, notes, and snippets.

View carasmo's full-sized avatar

Christina carasmo

  • Florida
View GitHub Profile
@carasmo
carasmo / for-functions.php
Last active June 17, 2016 13:09
WordPress Admin Bar on the bottom without a plugin
<?php
//* don't use
/** ======================================================================================
*
* Admin Bar Bottom
*
* if you use the admin bar at the bottom on
* the backend add: html.wp-toolbar {padding-top:0px} to the CSS
*
@carasmo
carasmo / for-functions.php
Last active July 2, 2016 19:43
Custom genesis_sitemap_output using the previously created custom get_posts() function to exclude posts or show only a specific category.
<?php
// don't include
/** ====================================================================================
* SITE MAP : archive page filter for genesis_sitemap_output();
* using christina_get_posts_for_sitemap();
==================================================================================== **/
function christina_sitemap($sitemap_post_list) {
@carasmo
carasmo / single-product.php
Last active July 11, 2016 22:14
For Genesis Child Theme (or any child theme, or change the path on the load_template if a parent theme). These instructions will help you show a different single product template page based on the category slug. If this was helpful, saved you hours of time, please consider a small donation via PayPal to christinabeymer@gmail.com.
<?php
/** ====================================================================================
* Return single product template page based on category slug
==================================================================================== **/
/** ========== Instructions ========================================================
@carasmo
carasmo / simple-social.css
Created July 24, 2016 17:24
This goes inside a directory titled 'css' inside your theme child directory = themename/css
/* ## Simple Social Icons for FontAwesome Use
--------------------------------------------- */
.simple-social-icons {
overflow: hidden;
}
.simple-social-icons ul {
margin: 0;
padding: 0;
@carasmo
carasmo / simple-social-for-functions.php
Last active July 24, 2016 18:46
Add and re-order Simple Social Icons, remove plugin css, add FontAwesome, add new styles (https://gist.github.com/carasmo/5a40a72ef6503e4545fc38a6933fab4a)
<?php
//* do not add this opening php tag above
//* this code is intended for your child theme's functions.php file or functions plugin
//* IMPORTANT: use a code editor and ftp to add code to your functions.php NOT the appearance editor
//* change yourprefix in the functions and handles
// see file https://gist.github.com/carasmo/5a40a72ef6503e4545fc38a6933fab4a for the css
/** ======================================================================================
*
@carasmo
carasmo / paginate-comments-in-genesis.php
Created July 14, 2016 19:43
Paginate Comments/Discussion in Genesis Child theme.
<?php
// don't use above. Put this in your functions.php file.
/** ======================================================================================
*
* Paginate Comments
*
======================================================================================= */
function yourprefix_paginate_comments() {
@carasmo
carasmo / read-more.php
Last active August 2, 2016 19:32
Check for the default <!--more--> and change it but leave custom <!--more Custom Text--> alone
<?php
// don't use
/** ======================================================================================
*
* Read More the_content_more_link
* Check for the default <!--more--> and change it
* but leave custom <!--more Custom Text--> alone
*
======================================================================================= */
@carasmo
carasmo / readmore.php
Created March 31, 2016 14:25
Read More outside the paragraph
<?php
//don't include this
/** ====================================================================================
* Break more link outside the paragraph in the loop on all archives (home, archives, search, etc)
==================================================================================== **/
function yourprefix_excerpt_more_link() {
@carasmo
carasmo / gist:a6315d4cccb8f498de38095c9d5ad57d
Created August 7, 2016 00:10
add dashicons to genesis nav menu
//* Goes in functions.php
/**
*
* Add Front End Dashicon Support
*
*/
function yourprefix_add_front_end_dashicons() {
wp_enqueue_style( 'dashicons' );