Skip to content

Instantly share code, notes, and snippets.

Jude Rosario JudeRosario

Block or report user

Report or block JudeRosario

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
@JudeRosario
JudeRosario / aca.js
Created Jan 13, 2020
Get themes ADA Compliant by supplying defaults
View aca.js
$.each($('a'), function() {
alt = this.href.replace(/\/$/, "")
$(this).attr('alt', alt.substring(alt.lastIndexOf('/') + 1).replace(/-/g, " "));
});
$.each($('img'), function() {
alt = this.href.replace(/\/$/, "")
$(this).attr('alt', alt.substring(alt.lastIndexOf('/') + 1).replace(/-/g, " "));
});
View gist:11e41f0bb7fff806001296cf97e4465b
function emailPreviousMonthReportTo($To)
{
global $wpdb;
//Get Last Months Report
$arrResult = $wpdb->get_results("SELECT `id`,
`date`,
`first_name`,
`last_name`,
`email`,
@JudeRosario
JudeRosario / mobile-menu-fix.js
Created Nov 29, 2019
Private - Julian - mobile-menu-fix.js
View mobile-menu-fix.js
var element = jQuery('.gt3_header_builder_burger_sidebar_component');
var sidebar = jQuery('.gt3_header_builder__burger_sidebar');
jQuery('.mobile-men-login').on('click',function(){
if (element.hasClass('active')) {
element.removeClass('active');
sidebar.removeClass('active');
jQuery('body').removeClass('active_burger_sidebar');
}else{
element.addClass('active');
View firefox.css
@-moz-document url-prefix() {
.sf-field-taxonomy-job_listing_region .select2-search__field,
.sf-field-taxonomy-job_listing_category .select2-search__field {
padding-left: 34px !important;
}
.phd {
vertical-align: -moz-middle-with-baseline;
}
@JudeRosario
JudeRosario / healthjobs.ie.css
Created Nov 6, 2019
Private IE specific fixes for Healthjobs
View healthjobs.ie.css
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.select2-selection__rendered > span {
display: table !important;
vertical-align: middle !important;
}
.select2-selection__rendered > span .phd{
display: table-cell !important;
vertical-align: middle !important;
@JudeRosario
JudeRosario / image-sizes.php
Created Sep 13, 2019
Custom code for image-sizes myotspot
View image-sizes.php
add_image_size( 'home-thumbnail', 374, 211 );
function pexeto_get_recent_posts_column_layout_html($recent_posts, $columns, $show_content = true, $thumb_height = null){
$html='';
$img_size = pexeto_get_image_size_options($columns, 'blog');
if($thumb_height!==null){
$img_size['height'] = $thumb_height;
}
View gist:55be77820e7c427ef89ee9a91217b1f8
alter table wp_ZxXPA_options change option_name option_name VARBINARY(64);
alter table wp_ZxXPA_options change option_name option_name VARCHAR(64) character set utf8mb4 not null default '';
alter table wp_ZxXPA_options change option_value option_value LONGBLOB;
alter table wp_ZxXPA_options change option_value option_value LONGTEXT character set utf8mb4 not null;
alter table wp_ZxXPA_options change autoload autoload VARBINARY(20);
alter table wp_ZxXPA_options change autoload autoload VARCHAR(20) character set utf8mb4 not null default 'yes';
alter table wp_ZxXPA_options character set utf8mb4 COLLATE utf8mb4_unicode_ci;
@JudeRosario
JudeRosario / custom.js
Last active Aug 19, 2019
Private - Custom code for Healthjobs.ch
View custom.js
jQuery(document).ready(function($){
if (window.location.href.indexOf("unternehmens-profil") > -1) {
$('.upme-fire-editor-view').trigger('click');
$('.upme-profile-edit-bar').hide();
$('.gt3-page-title.gt3-page-title__dashboard').hide();
$('#billing_email-1, #billing_email-2-1').on('blur', function(){
if($.trim($('#billing_email-1').val()) !== $.trim($('#billing_email-2-1').val())) {
$('#billing_email-1, #billing_email-2-1').addClass('error');
$('#billing_email-1').after('<div id="upme-match-email-msg" class="upme-input-text-inline-error" ><i id="upme-reg-email-img" original-title="Invalid" class="upme-icon upme-icon-remove upme-input-text-font-cancel" ></i>' + 'Email addresses should match' + '</div>');
@JudeRosario
JudeRosario / custom-fixes.php
Created Jun 22, 2019
Product Data Tabs Fix
View custom-fixes.php
/**
* Remove broken product data tabs
*/
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
function woo_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab
unset( $tabs['reviews'] ); // Remove the reviews tab
You can’t perform that action at this time.