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 ) {
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>';
<?php
/**
* Shortcode attributes
* @var $atts
* @var $title
* @var $source
* @var $image
* @var $custom_src
* @var $onclick
* @var $img_size
<script type="text/javascript">
jQuery('#header .soc-head-icons a').click(function() { jQuery(this).attr('target', '_blank'); });
</script>
function crum_changed_content($num,$no_more = false)
{
global $post;
$options = get_option('second-touch');
if ($options['read_more_style'] == '0'){
$read_more_link = '<a href="'. get_permalink($post->ID) . '" class="link-read-more"> </a>';
}else{
$read_more_link = '<a href="'. get_permalink($post->ID) . '"> '.__('Read more','crum').'</a>';
@crumina
crumina / comments.php
Created October 7, 2015 17:53
add links to userpro profiles
<?php
if ( !function_exists('reactor_comments') ) :
function reactor_comments( $comment, $args, $depth ) {
do_action('reactor_comments', $comment, $args, $depth );
global $userpro;
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case 'pingback' :
case 'trackback' :
@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 / custom.js
Last active October 2, 2015 09:35
[Onetouch] Remove title from portfolio
jQuery(document).ready(function(){
jQuery("#Grid .round article").find(".absolute-link").removeAttr('title');
});
<script>
jQuery(document).ready(function(){
jQuery(".widget_crum_block_fetures_box").find("a.link.clickable").removeAttr('href');
jQuery(".widget_block-fetures-box").find(".button").hide();
});
</script>