Skip to content

Instantly share code, notes, and snippets.

Spencer Finnell spencerfinnell

Block or report user

Report or block spencerfinnell

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
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>title</title>
<meta name="author" content="name">
<meta name="description" content="description here">
@spencerfinnell
spencerfinnell / style.css
Created Jul 5, 2016 — forked from rali14/style.css
Custom Icon for Custom Field Widget
View style.css
#jmfe_widget-2 > h2:before { /* Replace the ID (jmfe_widget-2) with the widget ID from Step 1 */
content: '\f35b'; /* replace the content here with the icon you would like to use.*/
display: inline-block;
font-family: Ionicons;
speak: none;
font-style: normal;
font-weight: 400;
font-variant: normal;
text-transform: none;
text-rendering: auto;
View footer.php
@spencerfinnell
spencerfinnell / functions.php
Last active May 5, 2016 — forked from rali14/functions.php
Display the username instead of first name on Account menu item
View functions.php
function custom_menu_item_name( $display, $user ) {
return $user->user_login;
}
add_filter( 'listify_acount_menu_user_label', custom_menu_item_name, 10, 2 );
@spencerfinnell
spencerfinnell / functions.php
Last active Jan 10, 2018 — forked from rali14/functions.php
Order Listings Randomly
View functions.php
<?php
/**
* Order items alphabetically.
*
* Remove the <?php tag if it already exists in your functions.php file.
*/
add_action( 'init', function() {
add_filter( 'get_job_listings_query_args', function( $query_args, $args = array() ) {
$query_args['orderby'] = array( 'title' => 'ASC', 'menu_order' => 'ASC' );
return $query_args;
View style.css
.job_listing_tag-list a:before { content: "\f120"; }
View functions-1.php
<?php
class A {
public function __construct() {
add_action( 'init', array( $this, 'do_something' ) );
}
public function do_something() {
//
View style.css
#listify_widget_panel_listing_content-2 .widget-title:before {
content: '\f36a';
display: inline-block;
font-family: Ionicons;
speak: none;
font-style: normal;
font-weight: 400;
font-variant: normal;
text-transform: none;
View functions.php
function custom_marketify_page_header_defaults( $args ) {
$args[ 'size' ] = 'full';
return $args;
}
add_filter( 'marketify_page_header_defaults', 'custom_marketify_page_header_defaults' );
View shop.php
<?php
/**
* Template Name: Page: Shop
*
* Load the [downloads] shortcode.
*
* @package Marketify
*/
get_header(); ?>
You can’t perform that action at this time.