Skip to content

Instantly share code, notes, and snippets.

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

Jay webmasterninjay

💭
I may be slow to respond.
View GitHub Profile
@webmasterninjay
webmasterninjay / login.php
Last active March 8, 2021 15:56
Customized Login page form in WordPress
<?php
// Customized login page
function theme_prefix_custom_login_page() {
$custom_logo_id = get_theme_mod( 'custom_logo' ); // image from cusomizer logo
$image = wp_get_attachment_image_src( $custom_logo_id , 'full' );
$bg = get_stylesheet_directory_uri() . '/images/bg.jpg'; // change url to your preferred image
?>
<style type="text/css">
body.login {
@webmasterninjay
webmasterninjay / cpt.php
Created April 18, 2017 15:13
Testimonial Custom Post Type with metabox
<?php
/*
* @Author Jayson Antipuesto
* @Description Testimonial custom post type with metabox
* @Site Upward Spiral Consulting
*/
// Register Custom Post Type
function testimonial_post_type() {
@webmasterninjay
webmasterninjay / template_page.php
Created January 27, 2016 04:33
Genesis Theme: Custom Page Template with Custom Field
<?php
/**
* Template Name: Our Team Template
* Description: Used as a page template to display our team child pages
*/
//* Loop
remove_action('genesis_loop', 'genesis_do_loop');
add_action('genesis_loop', 'our_team_loop');
@webmasterninjay
webmasterninjay / featured-image.php
Created April 8, 2015 23:13
Wordpress Genesis: Add featured image conditionally
@webmasterninjay
webmasterninjay / defaults.php
Created April 6, 2015 14:33
Genesis Framework: Adding Default child theme setting
<?php
//* Advance Theme Setting Defaults
add_filter( 'genesis_theme_settings_defaults', 'advance_theme_defaults' );
function advance_theme_defaults( $defaults ) {
$defaults['blog_title'] = 'image';
$defaults['blog_cat_num'] = 5;
$defaults['content_archive'] = 'full';
$defaults['content_archive_limit'] = 200;
@webmasterninjay
webmasterninjay / genesis-child-option.php
Created March 28, 2015 18:51
Wordpress: Genesis Child Theme Option Framework
<?php
define('COMPASSIONATE_SETTINGS_FIELD','compassionate-settings');
class COMPASSIONATE_THEME_SETTINGS extends Genesis_Admin_Boxes {
function __construct() {
$page_id = 'compassionate';
@ozzyrod
ozzyrod / responsive-menu-css.css
Last active April 23, 2019 05:54
Creates a mobile responsive menu in a Genesis child theme with support for collapsible sub menus.
/* Responsive Navigation
---------------------------------------------------------------------------------------------------- */
/* Standard Navigation
--------------------------------------------- */
nav {
clear: both;
}