Skip to content

Instantly share code, notes, and snippets.

View Archie22is's full-sized avatar
💭
I may be slow to respond.

ᴀʀᴄʜɪᴇ ᴍᴀᴋᴜᴡᴀ™ Archie22is

💭
I may be slow to respond.
View GitHub Profile
@Archie22is
Archie22is / SlickSlider-dots-custom-pagination.js
Created July 18, 2019 08:56 — forked from celticwebdesign/SlickSlider-dots-custom-pagination.js
SlickSlider with dots navigation and custom pagination
// see SeaGrass
if ($(".slideshow-full-container").length > 0) {
// https://github.com/kenwheeler/slick/issues/1403#issuecomment-282066130
// Test for slide length, if one, hide navigation dots
// the event needs to be run before slick is initialized
$('.slideshow-full-container').on('init', function (event, slick, direction) {
// console.log($('#full_page_slideshow .slick-slide').length);
@Archie22is
Archie22is / new-user.sql
Created August 6, 2019 09:10 — forked from pixeloution/new-user.sql
Add a new admin user to wordpress via mySQL
--
-- these are the only values you need to set
-- and then just run these in squence from the mysql terminal
--
SET @USER := 'Your User Name';
SET @EMAIL := '[email protected]';
SET @PASS := 'your-password-here';
--
-- wordpress will 'upgrade' the MD5 on your first login
@Archie22is
Archie22is / isotope-active.js
Created August 19, 2019 15:36 — forked from raselahmed7/isotope-active.js
jQuery isotope filter
jQuery(document).ready(function($){
$(".all-portfolios").isotope({
itemSelector: '.single-portfolio',
layoutMode: 'fitRows',
});
$('ul.filter li').click(function(){
$("ul.filter li").removeClass("active");
$(this).addClass("active");
@Archie22is
Archie22is / 0-env-url-override.php
Created June 15, 2022 14:22 — forked from scottnath/0-env-url-override.php
How to use WordPress across environments without needing to mess with URLs in the database.
<?php
// This is the meat of the plugin and should go in mu-plugins/0-env-url-override.php
// Only load these filters if we're not in the production environment
if ( defined( 'ENV_NOT_PRODUCTION' ) && ENV_NOT_PRODUCTION ) {
// This always needs to be filtered
add_filter( 'site_url', 'env_filter_site_url', 0 );
// We don't filter home_url in the admin so that we get production URLs for posts.
// This does break certain links like "Preview/View Post", however.
@Archie22is
Archie22is / awesome-php.md
Created July 21, 2022 14:11 — forked from RKAN/awesome-php.md
# Awesome PHP A list of amazingly awesome PHP libraries, resources and shiny things.

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

Composer Related

@Archie22is
Archie22is / cpt.php
Created August 24, 2022 14:43 — forked from yratof/cpt.php
Wordpress AJAX search through custom post type
<form role="search" method="post" class="search-form padding-4" action="<?php echo home_url( '/' ); ?>">
<label>
<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ) ?></span>
<input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search...', 'placeholder' ) ?>" value="<?php echo get_search_query() ?>" name="s" title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" />
<input class="post_type" type="hidden" name="post_type" value="frequent" />
</label>
<input type="submit" class="search-submit button brand" id="searchsubmit" value="<?php echo esc_attr_x( 'Search', 'submit button' ) ?>" />
</form>
<script type="text/javascript">
<?php
if(!function_exists('wc_get_products')) {
return;
}
$paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1;
$ordering = WC()->query->get_catalog_ordering_args();
$ordering['orderby'] = array_shift(explode(' ', $ordering['orderby']));
$ordering['orderby'] = stristr($ordering['orderby'], 'price') ? 'meta_value_num' : $ordering['orderby'];
@Archie22is
Archie22is / index.html
Created August 26, 2022 13:55 — forked from laurenclark/index.html
Pure CSS Social Media Icons
<div class="footer-social-icons">
<h4 class="_14">Follow us on</h4>
<ul class="social-icons">
<li><a href="" class="social-icon"> <i class="fa fa-facebook"></i></a></li>
<li><a href="" class="social-icon"> <i class="fa fa-twitter"></i></a></li>
<li><a href="" class="social-icon"> <i class="fa fa-rss"></i></a></li>
<li><a href="" class="social-icon"> <i class="fa fa-youtube"></i></a></li>
<li><a href="" class="social-icon"> <i class="fa fa-linkedin"></i></a></li>
<li><a href="" class="social-icon"> <i class="fa fa-google-plus"></i></a></li>
</ul>
@Archie22is
Archie22is / scrollable-overlay.html
Created September 28, 2022 09:02 — forked from edavis25/scrollable-overlay.html
Scrollable full-screen HTML overlay
<!DOCTYPE html>
<!-- SCROLLABLE OVERLAY -->
<html>
<head>
<style>
.overlay {
height: 0%;
width: 100%;
position: fixed;
z-index: 1;