Press enter to see results or esc to cancel.

Abraham Garcia Abraham Garcia in Javascript/jQuery   Saturday, June 5 2021

Isotope Elements Overlap How to Solve

How to Stop Overlapping Elements with isotope JS

I was struggling to get isotope elements to stop overlapping and I found something that showed me a couple of ways to fix it. The way I fixed it was by waiting for the whole script to load and then running isotope. The problem is that when it is

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Friday, June 4 2021

How to Replace Default WordPress jQuery

Change the Default WordPress jQuery with an Older Version

Today I was having issues with an older WordPress template that required an older version of jQuery, but when I updated to the newer version it broke the theme. So I found this snippet that you paste on your template functions to replace the jQuery

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Monday, May 10 2021

How to Update Ionic Files Overwriting Configuration Files

Sync your Ionic iOS Files with Capacitor

Use this simple command to Sync Ionic File Updates to iOS npx ionic capacitor sync ios  

Continue reading
Jesus Macias Jesus Macias in Javascript/jQuery   Friday, April 30 2021

Ref in React

Dealing with Ref in React JS

The references on React are utilized to access the instance in a DOM node and able to interact just like you would do it in JavaScript or components created with react.  import React, { createRef } from 'react'; const MyComponent=() => {

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Wednesday, January 13 2021

How to make select2 work with jQuery Validation

jQuery Validation and Select2 JS Plugin for Hidden Fields. Allow them to be validated for your project.

I was having trouble getting Select2 JS plugin validated with jquery validation and I found this fix for the issue.  Just make sure you add an ignore for hidden fields because Select2 JS adds the input as a hidden field. 

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Thursday, December 24 2020

How to Pass a Variable To Route in JavaScript in Laravel

The Correct Syntax for Passing a Variable to Laravel Route in JavaScript.

This is a short snippet to pass a variable on route in javascript.  var url = '{{ route("admin.stocks.edit", ":id") }}'; url = url.replace(':id', stock.id); $('.stocks_list').append('<li><a href="'+url+'">' + stock.symbol + '

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Monday, December 7 2020

How to Setup Google Ads Conversions on Shopify

Simple Steps to Track Sales for your Google Ad Campaigns on Shopify.

After you create your google conversion action on Google Ads. Follow these steps to track sales on Shopify.  Install Global Site Tag 1) Navigate to Online Store on the Left Hand Side 2) Click on Actions -> Edit Code 3) Open your

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Friday, August 28 2020

Prevent Vue.Js from accessing route that has no parameters - Route Guards

Route Guard Protection for Routes in Vue.JS. Prevent route being accessed if there are no parameters defined.

When using vue cli we can do route guards to prevent URLs from being accessed if there is no parameters defined. This is a short snippet on how to do route guards and prevent app from breaking.   import Vue from 'vue' import Router from

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Tuesday, July 7 2020

Vue JS Focus on Whole Text Box Field

Select the Whole Input Field Vue JS. Similar to the Focus for jQuery.

This is a short snippet to select the whole field when focus for easy copying and pasting.  @focus="$event.target.select()" Demo: https://thecodebeast.com/hex-to-rgb/

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Saturday, June 27 2020

Vue JS Change Absolute Path of Assets

Build to a sub-directory with Vue.js. Get rid of the absolute path build with Vue.js

I was struggling to mount a vue.js dist folder on a directory such as /smoothie or something as an inner folder. I figured the place and wanted to share it with new developers to Vue.JS.  Inside the config folder, there is a file called

Continue reading