Skip to content

Instantly share code, notes, and snippets.

View JudeRosario's full-sized avatar

Jude Rosario JudeRosario

View GitHub Profile
@JudeRosario
JudeRosario / mobile-menu-fix.js
Created November 29, 2019 06:20
Private - Julian - 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');
@JudeRosario
JudeRosario / firefox.css
Created November 19, 2019 09:49
Julian Fixes
@-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 November 6, 2019 12:47
Private IE specific fixes for Healthjobs
@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;
$arrey = array(
10 => 59,
11 => 60,
);
@JudeRosario
JudeRosario / image-sizes.php
Created September 13, 2019 19:00
Custom code for image-sizes myotspot
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;
}
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 August 19, 2019 11:55
Private - Custom code for Healthjobs.ch
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 June 22, 2019 20:59
Product Data Tabs Fix
/**
* 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
@JudeRosario
JudeRosario / gist.js
Created June 4, 2019 21:53
Private jQuery W3 Tag fixes
jQuery(document).ready(function($){
$.fn.renameTag = function(replaceWithTag){
this.each(function(){
var outerHtml = this.outerHTML;
var tagName = $(this).prop("tagName");
var regexStart = new RegExp("^<"+tagName,"i");
var regexEnd = new RegExp("</"+tagName+">$","i")
outerHtml = outerHtml.replace(regexStart,"<"+replaceWithTag)
outerHtml = outerHtml.replace(regexEnd,"</"+replaceWithTag+">");
$(this).replaceWith(outerHtml);
@JudeRosario
JudeRosario / keyy-custom.css
Created April 24, 2019 14:02
Keyy change color
.keyy-login-wrapper .keyy-switch-label,
form#loginform {
border-color: #E91E63;
}
.keyy-wave rect.anim {
fill:#E91E63;
}
img.keyy-login-logo {