Skip to content

Instantly share code, notes, and snippets.

View amarilindra's full-sized avatar
💯
Focusing

Amar Ilindra amarilindra

💯
Focusing
View GitHub Profile
@amarilindra
amarilindra / geek.cmd
Last active July 18, 2017 06:20
Fix Error 0x80070005 - Access is Denied in Windows
@echo off
setlocal
echo.
echo Determine whether we are on an 32 or 64 bit machine
echo.
if "%PROCESSOR_ARCHITECTURE%"=="x86" if "%PROCESSOR_ARCHITEW6432%"=="" goto x86
@amarilindra
amarilindra / custom-static-page-template.php
Created March 5, 2017 17:28
Home Page template of AmarIlindra.com
<?php
/**
* Template Name: Custom Static Page
*/
?>
<head>
<title>Amar Ilindra - Blogger | Entrepreneur | Dog Lover</title>
<meta name="description" content="Amar Ilindra is one of the finest blogger from India completed his Computer Science and Engineering. He loves to code under moonlight and pet his dog."/>
<meta name="robots" content="noodp"/>
<link rel="canonical" href="http://amarilindra.com/" />
<?php
/*
* License: Copyright (c) 2008 Pawan Agrawal. All rights reserved.
*
* This code is part of commercial software and for your personal use
* only. You are not allowed to resell or distribute this script.
*
*/
/**
* MBPNinjaAffiliate - MaxBlogPress Ninja Affiliate Class
@amarilindra
amarilindra / comments-before-widget.php
Last active January 4, 2017 07:05
Widget Before Comments Section
//widget area right before the comments section
add_action( 'genesis_before_comments', 'my_widget_area' );
//Registering the widget area
genesis_register_sidebar( array( 'id' => 'after-post', 'name' => __( 'Before Comments ', 'geekdashboard' ), 'description' => __( 'Yoo This is the widget before Comments section.', 'geekdashboard' ), ) );
@amarilindra
amarilindra / genesis-simple-edit-entry-meta-field
Last active March 24, 2022 06:02
Add this line in Genesis Simple Edits; Entry Meta (above content) field
To show Only Last Modified Date:
Last Updated on [post_modified_date] By [post_author_posts_link] [post_comments] [post_edit]
To show both Published Date and Last Modified Dates:
Published on [post_date], Last Updated on [post_modified_date] by [post_author_posts_link] [post_comments] [post_edit]
@amarilindra
amarilindra / Last-upadted-date-genesis
Last active March 24, 2022 06:05
Add this to code to your themes functions.php file to show last modified date in Genesis powered child themes
// Code for showing last updated date in Genesis Child Themes - (www.GeekDashboard.com)
add_filter( 'genesis_post_info', 'gd_post_last_modified_date' );
function gd_post_last_modified_date($post_info) {
if ( !is_page() ) {
$post_info = 'Last Updated on [post_modified_date] by [post_author_posts_link] [post_comments] [post_edit]';
return $post_info;
}
}