This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you ever need to download an entire Web site, perhaps for off-line viewing, wget can do the | |
job—for example: | |
$ wget \ | |
--recursive \ | |
--no-clobber \ | |
--page-requisites \ | |
--html-extension \ | |
--convert-links \ | |
--restrict-file-names=windows \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 10.0 - Widgets | |
*/ | |
#blog-sidebar .widget { | |
border-top: 4px solid #FECE00; | |
margin-bottom: 3.5em; | |
padding-top: 1.75em; | |
} | |
#blog-sidebar .widget-area > :last-child, | |
#blog-sidebar .widget > :last-child { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?PHP | |
/** | |
* Transfer Files Server to Server using PHP Copy and PHP ZipArchive | |
* @link https://glowLogix.com | |
*/ | |
/* Source File URL */ | |
$remote_file_url = 'http://example.com/filename.zip'; | |
/* New file name and path for this file */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Function to Async an arrayed list of JavaScript files. | |
* | |
* @param $tag | |
* @param $handler | |
* @param $src | |
* | |
* @return mixed | |
*/ | |
function async_scripts( $tag, $handler, $src ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------- | |
1- Images should have alt tags. | |
2- Links should have alt tag if using with images. | |
3- ARIA role should need to add for html section. | |
4- ARIA attributes need to add for html elements. ** https://www.sitepoint.com/how-to-use-aria-effectively-with-html5/ | |
Accessibility Plugins: | |
https://wordpress.org/plugins/access-monitor/ | |
https://wordpress.org/plugins/wa11y/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Compiles SCSS files into CSS | |
* | |
* @src .scss files that do not start with _ | |
* @dest .css files | |
*/ | |
gulp.task('scss', function() { | |
return gulp.src(['scss/**/*.scss', '!scss/**/_*']) | |
.pipe(scss()) | |
.pipe(gulp.dest('css')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add Shortcode | |
function nebco_bannerboxes() { | |
/* Turn on buffering */ | |
ob_start(); ?> | |
<div class="box first-box hvr-top hvr-underline-from-center"> | |
<hr class="vertical"> | |
<h4>THE NEBCO</h4><h4>STORY</h4> | |
<a href="#"> | |
<p class="et_pb_button butt custum-butt">READ MORE</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ini_set('log_errors','On'); | |
ini_set('display_errors','Off'); | |
ini_set('error_reporting', E_ALL ); | |
define('WP_DEBUG', false); | |
define('WP_DEBUG_LOG', true); | |
define('WP_DEBUG_DISPLAY', false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('woocommerce_single_product_summary', 'my_after_woocommerce_single_product_summary', 21); | |
function my_after_woocommerce_single_product_summary() { | |
global $post, $product; | |
if (is_object_in_term($post->ID, 'product_cat', array('tshirts'))) { | |
echo 'Your Custom Pricing Table'; | |
} | |
} |