Press enter to see results or esc to cancel.

Abraham Garcia Abraham Garcia in WordPress   Sunday, April 26 2020

How to Limit Shipping to Certain Zip Codes WooCommerce WordPress

Limit Shipping to Certain Zip Codes on WooCommerce WordPress

How to limit to certain zipcodes on WooCommerce 1. Visit WooCommerce -> Settings -> Shipping 2. Add Shipping Zone or Edit Shipping Zone 3. Click on the Limit to Specific Zip/Postcodes. You must select a region.      4.

Continue reading
Abraham Garcia Abraham Garcia in Fun Stuff   Monday, April 20 2020

How to run sudo on WinSCP Commands

Run Sudo on WinSCP and navigate folders with ease.

This is short example on how to run Sudo on WinSCP.  1. Go to WinSCP Profile 2. Click Edit > Advanced > SFTP sudo su -c /usr/lib/sftp-server (Your Folder Might Be Different) 3. Then Click on Shell Use: sudo us - 4. Press Okey 5.

Continue reading
Abraham Garcia Abraham Garcia in WordPress   Friday, April 10 2020

Add Custom Sidebar to WordPress

Add a Custom Sidebar to WordPress Function.php File and Display on Front End.

These are short snippets to insert sidebar into the front end of Wordpress website. Use it in your projects.  Functions.php function my_custom_sidebar() { register_sidebar( array ( 'name' => __( 'Custom',

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