Press enter to see results or esc to cancel.

Abraham Garcia Abraham Garcia in HTML/CSS Scripts   Thursday, February 13 2020

How to Disable an href HTML CSS

Disable an href when you do not want it to be clicked.

How to disable href for a link.  <style> .disabled { pointer-events: none; cursor: default; } </style> <a href="somelink.html" class="disabled">Some link</a> You can also use

Continue reading
Abraham Garcia Abraham Garcia in WordPress   Saturday, January 25 2020

WooCommerce and Elementor Menu Cart Square and No Icon

Fix the square without the icon of WooCommerce and Elementor.

This is a code work around for the square without the logo inside the menu item cart in elementor woocommerce.  I added a class of .font-awesome-cart on my menu cart icon and used the following CSS. .font-awesome-cart i{ font-family: "Font

Continue reading
Abraham Garcia Abraham Garcia in Fun Stuff   Friday, January 17 2020

How to Install a SSL Certificate on Apache

Get Your SSL Installed on Your Ubuntu Server. I bought mine from NameCheap and they lacked in their documentation on how to generate CSR. I thought this could help others.

This is a short walk through on how to install an SSL on Ubuntu.  1. Generate CSR openssl req -new -newkey rsa:2048 -nodes -keyout mydomain.key -out mydomain.csr 2. Find Your CSR cat mydomain.csr 3. Enable SSL sudo a2enmod ssl 4. Upload

Continue reading
Abraham Garcia Abraham Garcia in WordPress   Saturday, January 4 2020

Contact Form 7 Autocomplete Setup

How to add autocomplete to Contact Form 7 Input Field

How to add autocomplete to input field on Contact Form 7 [text* your-fname class:form-control autocomplete:off placeholder "First and Last Name"]  

Continue reading
Abraham Garcia Abraham Garcia in Fun Stuff   Friday, December 27 2019

How to Create an Empty File on Ubuntu

The Easiest Command to Create an Empty File on Ubuntu Command Line CLI.

Use this snippet to create an empty file in ubuntu using the touch command. touch /var/www/html/index.html  

Continue reading
Abraham Garcia Abraham Garcia in WordPress   Friday, December 20 2019

Add Custom Body Class Per Page on WordPress

Custom Body Class Per Page on WordPress. A Simple and Fast Fix Customization of Body Class.

How to add a Custom Body Class for WordPress. It is very simple just add a small function on the functions.php page and you should be good to start adding classes depending on the ID of the page.  add_filter( 'body_class',

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Friday, December 13 2019

Disable Weekday from Datepicker JS

How to disabled Friday, Saturday, or Sunday from Datepicker JS. A Simple Script

This is a snippet to disable Friday, Saturday, and Sunday on the JS Datepicker.  <script> jQuery(document).ready(function($){ jQuery("#datepicker2").datepicker({ minDate: new Date(), dateFormat: 'dd-mm-yy', beforeShowDay:

Continue reading
Abraham Garcia Abraham Garcia in Application Development   Saturday, December 7 2019

Cordova Camera Plugin Takes Forever to Fire

Cordova Camera Picker Takes a Long Time to Load. Fast and Easy Fix.

While trying to fire the camera plugin on cordova i realized the action was taking forever to fire about 30-40 seconds. I saw a bug on console and immediately started doing research. I found a useful stackoverflow, but it was not as clear so i

Continue reading
Abraham Garcia Abraham Garcia in HTML/CSS Scripts   Monday, December 2 2019

How to Setup Full Background Image on Framework7 Cordova

Full Background Image for Framework7 with Cordova.

This is a short snippet of CSS on how to put a full screen background image on your Framework7 Cordova App.  .page { font-family: "centabel"; background: url("../img/fondo.jpg") no-repeat center center fixed !important;

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Monday, November 25 2019

Remove All Matching Classes From Page jQuery

How to Remove All Classes from HTML DOM. This matches for similar classes and removes them.

This is a small snippet on how to remove all classes from matched class on jQuery.  $('#builder [class*="ui-id-"]').removeClass(function(i, j) { return j.match(/ui-id-/g).join(" "); }); Full

Continue reading