Skip to content

Instantly share code, notes, and snippets.


Enrique Ballesté Peralta eballeste

Block or report user

Report or block eballeste

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
eballeste / inline-svg.js
Created May 26, 2015
Replace svg images with inline SVG code
View inline-svg.js
/* Replace all SVG images with inline SVG */
var $img = $(this);
var imgID = $img.attr('id');
var imgClass = $img.attr('class');
var imgURL = $img.attr('src');
$.get(imgURL, function(data) {
// Get the SVG tag, ignore the rest
var $svg = $(data).find('svg');
eballeste / wp_extra.php
Last active Aug 29, 2015
useful wordpress snippets (replace xx_ with name of project)
View wp_extra.php
*Remove unwanted items from top admin bar
function xx_remove_admin_bar_links() {
global $wp_admin_bar;
//remove comments from top admin menu
//remove wordpress menu from top admin menu
You can’t perform that action at this time.