Press enter to see results or esc to cancel.

Abraham Garcia Abraham Garcia in Fun Stuff   Friday, April 3 2020

Apache cPanel PageSpeed Disable Feature on htaccess

Disable Apache's PageSpeed Mod Feature with a Simple .htaccess snippet.

This is the short snippet to disable Apache Automatic on cPanel PageSpeed Optimization.  <IfModule pagespeed_module> ModPagespeed off </IfModule>  

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Friday, March 27 2020

Default Ordering Sorting on DataTable.js

How to change the column that DataTable.js Sorts by Default

How to sort by default row on DataTable.js. The number 3 is the column you would like to default the sorting. $(document).ready(function() { $('#example').DataTable( { "order": [[ 3, "desc" ]] } ); } );  

Continue reading
Abraham Garcia Abraham Garcia in Javascript/jQuery   Tuesday, March 24 2020

How to Set Amount of Rows that DataTable Displays

DataTables.js Is a Great JS Table Plugin. Display more than the default rows with this simple plugin option.

This is a snippet that determines the amount of records that will be outputed in the datatable.js plugin. Great plugin to make your html tables nice.  $(document).ready( function () { var table = $('#example').DataTable( { pageLength :

Continue reading
Abraham Garcia Abraham Garcia in HTML/CSS Scripts   Saturday, March 21 2020

How to Change Select2 Box Height

Change Select2 JS Box Height with Simple CSS Snippets

This is a short code snippet on how to change the select2 box height plugin. Simple CSS code. .select2-selection__rendered { line-height: 31px !important; } .select2-container .select2-selection--single { height: 35px !important; }

Continue reading
Abraham Garcia Abraham Garcia in PHP Scripts   Monday, March 16 2020

Get IP Details Via API with PHP

ipapi.com is a API for getting IP address details. You can use this to redirect users to different websites depending on the country access.

This is a short tutorial on how to get IP Address details with API ipapi.com  <?php echo file_get_contents('https://ipapi.co/8.8.8.8/json'); ?> Sample Response: { "ip": "8.8.8.8", "city": "Mountain View", "region":

Continue reading
Abraham Garcia Abraham Garcia in HTML/CSS Scripts   Thursday, March 5 2020

Bootstrap 4 How to Align Nav Bar Items to the Right

Simple Bootstrap 4 Align Right Snippet. Float your navigation to the right on bootstrap nav element.

This is a code snippet showing you how to align the nav items on bootstrap 4 to the right.  <div id="app" class="container"> <nav class="navbar navbar-toggleable-md navbar-light bg-faded"> <button class="navbar-toggler

Continue reading
Abraham Garcia Abraham Garcia in HTML/CSS Scripts   Thursday, February 27 2020

Nice Radio Button Toggles

A Sweet codepen toggle that can be used in your projects.

This is a nice codepen radio button i found that i used in one of my projects and i think it is nice to share.  HTML <form class="form"> <h2>Is this awesome?</h2> <div class="switch-field"> <input type="radio"

Continue reading
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