Press enter to see results or esc to cancel.

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