Skip to content

Instantly share code, notes, and snippets.

@nathaningram
nathaningram / style.css
Last active December 16, 2020 19:19
Deconstruction: Brilliantly.net (Part One) - CSS
.fl-node-5f9300e0babe9 .fl-photo-img,
.fl-node-5f9300e0babe9 .fl-photo-content {
max-width: 300px !important;
height: auto;
}
li.gfield {
margin-bottom: 60px !important;
}
@nathaningram
nathaningram / additional.css
Last active November 17, 2020 20:04
PBDC 2020 - Additional CSS
/***** Additional CSS for Page Bulder Developer Course 2020 *****/
/* Nothing Added Yet */
@nathaningram
nathaningram / pbdc2020.php
Last active November 18, 2020 14:13
PBDC 2020 - Additional PHP
<?php
//User IP Address Shortcode
function ni_user_ip() {
return $_SERVER["REMOTE_ADDR"];
}
add_shortcode('ip-address','ni_user_ip');
@nathaningram
nathaningram / rcp-event.css
Last active September 29, 2020 20:17
RCP Event CSS
/************ Global Beaver Builder Button Styles ***********/
/* Simple Hover Transition */
a, a:hover,
input[type="submit"],
input[type="submit"]:hover {
transition: all .15s linear;
}
/* Button Background and Border */
@nathaningram
nathaningram / rcp-event-snippets.php
Last active September 30, 2020 16:42
Snippets for RCP in Your Web Design Business Event
// Redirect Admin to Dashboard and Others to Members Page
function ni_login_redirect( $url, $request, $user ) {
if ( $user && is_object( $user ) && is_a( $user, 'WP_User' ) ) {
if ( $user->has_cap( 'administrator' ) ) {
$url = admin_url();
} else {
$url = home_url( '/members/' );
}
}
return $url;
@nathaningram
nathaningram / gist:fd93507506887646f3e6bbba634f932e
Last active March 29, 2019 19:43
Custom Functions Plugin
<?php
/*
Plugin Name: Custom Functions Plugin
Plugin URI: https://wpnathan.com
Description: A set of custom functions for client websites.
Version: 1.0
Author: Nathan Ingram
Author URI: https://wpnathan.com
License: GPL2
*/
@nathaningram
nathaningram / gist:7fe101c52b54a4809fc4
Created November 13, 2015 20:54
Design to Builder Webinar CSS
/***************************************************
Design to Builder Webinar CSS
***************************************************/
/* Header + Nav */
ul#menu-vandalay-menu li a {
color: #17335B;
text-decoration: none;
font-weight: bold;