Skip to content

Instantly share code, notes, and snippets.

View ScarletPonytail's full-sized avatar

ScarletPonytail ScarletPonytail

View GitHub Profile
@ScarletPonytail
ScarletPonytail / functions.php
Created August 30, 2017 13:22
Woocommerce - Hide SKUs
// Hide SKUs
add_filter( 'wc_product_sku_enabled', '__return_false' );
@ScarletPonytail
ScarletPonytail / style.scss
Last active January 5, 2018 11:38
CSS - Transparent background only
// Background image
.logo-section {
min-height: 250px;
&::after {
content: "";
background: url(keyboard-886462_1920.jpg) no-repeat center center;
@include background-cover;
opacity: 0.5;
top: 0;
@ScarletPonytail
ScarletPonytail / _note.txt
Last active June 8, 2017 14:05
HTML / JS - Filter Table
Tip: Remove toUpperCase() if you want to perform a case-sensitive search.
Tip: Change tr[i].getElementsByTagName('td')[0] to [1] if you want to search for "Country" (index 1) instead of "Name" (index 0).
@ScarletPonytail
ScarletPonytail / style.css
Last active June 8, 2017 14:06
CSS - Center align a Bootstrap Menu
/* Menu Styling Override */
@media (min-width: 992px) {
.navbar-nav {
float : none !important;
margin: 0 auto !important;
display: block !important;
text-align: center !important;
}
@ScarletPonytail
ScarletPonytail / info.txt
Created May 24, 2017 09:10
WordPress - Change username to nickname
01. Choose Users from the left-hand menu
02. Add a nickname if there isn't one already
03. Change 'Display name publicly as' dropdown to the desired name
04. Click 'Update User'.
@ScarletPonytail
ScarletPonytail / entry-meta.php
Last active June 8, 2017 14:07
WordPress - Remove author link
// Original author link
<?php the_author_posts_link(); ?>
// Author name without link
<?php the_author(); ?>
@ScarletPonytail
ScarletPonytail / cribsheet.txt
Created May 17, 2017 13:06
Adobe Illustrator - Outlining an imported image
01. Select layer >> Select 'Appearance' tab >> Click 'Mini burger' >> Add New Stroke
02. Effect >> Path >> Outline Object
03. Adjust stroke settings in Appearance tab
@ScarletPonytail
ScarletPonytail / cribsheet.txt
Created May 17, 2017 13:05
Adobe Illustrator - Make a clipping mask
Make a clipping mask
Object >> Clipping Mask >> Make
@ScarletPonytail
ScarletPonytail / page-home.php
Last active June 8, 2017 14:07
WordPress - Exclude Latest Page
<!-- Latest Post -->
<div class="row latest-post">
<?php query_posts('showposts=1'); ?>
<?php
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
?>
<div class="col-md-6 news">
<?php echo get_the_post_thumbnail(); ?>
@ScarletPonytail
ScarletPonytail / header.php
Last active September 14, 2018 11:55
WorPress - Shortcode for template directory
<?php echo esc_url( get_template_directory() ); ?>