Skip to content

Instantly share code, notes, and snippets.

View crumina's full-sized avatar
🎯
Focusing

crumina

🎯
Focusing
View GitHub Profile
@crumina
crumina / twitter-font-awesome-4.css
Created January 13, 2024 03:03 — forked from bacoords/twitter-font-awesome-4.css
Update the Twitter / X Icon in Font Awesome 4
.fa.fa-twitter{
font-family:sans-serif;
}
.fa.fa-twitter::before{
content:"𝕏";
font-size:1.2em;
}
@crumina
crumina / gist:92647ec279a745afc9d7e30c420c5630
Created December 22, 2016 13:23 — forked from mikejolley/gist:84779259d3629edb7543
Load a custom translation file from the WP_LANG directory
// Code to be placed in functions.php of your theme or a custom plugin file.
add_filter( 'load_textdomain_mofile', 'load_custom_plugin_translation_file', 10, 2 );
/*
* Replace 'textdomain' with your plugin's textdomain. e.g. 'woocommerce'.
* File to be named, for example, yourtranslationfile-en_GB.mo
* File to be placed, for example, wp-content/lanaguages/textdomain/yourtranslationfile-en_GB.mo
*/
function load_custom_plugin_translation_file( $mofile, $domain ) {
if ( 'textdomain' === $domain ) {
@crumina
crumina / functions.php
Created October 7, 2015 17:49 — forked from anonymous/functions.php
add links to userpro profiles
<?php
/**
* Meta information for current post: categories, tags, author, and date
*/
if ( !function_exists('reactor_post_meta') ) {
function reactor_post_meta( $args = '' ) {
do_action('reactor_post_meta', $args);
@crumina
crumina / jquery-bootstrap-datepicker.css
Last active August 29, 2015 14:26 — forked from miwahall/jquery-bootstrap-datepicker.css
jQuery UI Datepicker Bootstrap 3 Style
.ui-datepicker {
background-color: #fff;
border: 1px solid #66AFE9;
border-radius: 4px;
box-shadow: 0 0 8px rgba(102,175,233,.6);
display: none;
margin-top: 4px;
padding: 10px;
width: 240px;
}
<?php
/* -------------------------------------------------------
You can add your custom functions below
-------------------------------------------------------- */
function custom_stunning_header() {
global $crum_theme_option;
$custom_st_header = get_post_meta(get_the_ID(),'single_post_st_header',true);
<?php
/**
* Dimox Breadcrumbs
* http://dimox.net/wordpress-breadcrumbs-without-a-plugin/
* Since ver 1.0
* Add this to any template file by calling dimox_breadcrumbs()
* Changes: MC added taxonomy support
*/
function dimox_breadcrumbs(){
/* === OPTIONS === */
<?php
/**
* Proof of concept for how to add new fields to nav_menu_item posts in the WordPress menu editor.
* @author Weston Ruter (@westonruter), X-Team
*/
add_action( 'init', array( 'XTeam_Nav_Menu_Item_Custom_Fields', 'setup' ) );
class XTeam_Nav_Menu_Item_Custom_Fields {
static $options = array(