Skip to content

Instantly share code, notes, and snippets.

View crumina's full-sized avatar
🎯
Focusing

crumina

🎯
Focusing
View GitHub Profile
function _remove_soc_icons() {
add_action('reactor_header_before', '_new_custom_soc_icons', 2);
remove_action('reactor_header_after', 'crumina_social_icons', 2);
}
add_action( 'init', '_remove_soc_icons', 1 );
function _new_custom_soc_icons(){
echo '<div class="row"><div class="large-12 columns">
<div id="panel">
<div id="soc-icons-wrap" class="' . $class . '">'.'<span class="header-phone"><i class="fa fa-phone-square"></i> 804-442-STAR (7827)</span>';
@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 / 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;
}