Skip to content

Instantly share code, notes, and snippets.

View 2shrestha22's full-sized avatar
Dart / Flutter

Sangam Kumar Shrestha 2shrestha22

Dart / Flutter
View GitHub Profile
2shrestha22 / spfooter.php
Last active April 6, 2020 18:00
Removes Spacious Footer Credits With Your Own
//copy below this line, you shouldn't include <?php
//paste this code in your function.php
//spacious footer
if (! function_exists('spacious_custom_credits')) {
function remove_default_credits(){
Theme Name: Twenty Thirteen Child
Theme URI:
Description: Twenty Thirteen Child Theme
Author: Any Name
Author URI:
Template: twentythirteen
Version: 1.0.0
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-thirteen-child
function theme_enqueue_styles() {
$parent_style = 'twentythirteen-style';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'twentythirteen-child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style )
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
/* An example of enqueuing a child theme.... xyz=your parent theme direcrtory name, you can find it in wp-content/themes/ directory. */
function enqueue_my_styles() {
$parent_style = 'xyz-style';
// Gives value of variable xyz
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
// To enqueue parent theme css
2shrestha22 / flashfooter.php
Last active August 10, 2019 00:26
footer editor for flash theme (ThemeGrill)
//copy below this line, you shouldn't include <?php
//paste this code in your function.php
//flash footer editor
if (! function_exists('flash_custom_credits')) {
function remove_default_flash_credits(){
2shrestha22 / sublime3-build3143.txt
Created September 26, 2017 12:56
Sublime Text 3 Build 3143 License Key
200 User License
1D77F72E 390CDD93 4DCBA022 FAF60790
61AA12C0 A37081C5 D0316412 4584D136
94D7F7D4 95BC8C1C 527DA828 560BB037
D1EDDD8C AE7B379F 50C9D69D B35179EF
2FE898C4 8E4277A8 555CE714 E1FB0E43
D5D52613 C3D12E98 BC49967F 7652EED2
2shrestha22 / foodhunt.txt
Last active July 18, 2018 08:58
code snippet to remove footer credits in Foodhunt by ThemeGrill. Put this in function.php
function remove_default_foodhunt_credits(){
add_filter('foodhunt_footer_copyright', 'foodhunt_custom_credits');
function foodhunt_custom_credits(){
$foodhunt_custom_credits = ""; //add here any text you want to put in footer credits
$credit_value ='<div class="copyright"><span class="copyright-text">Copyright &copy; ' . date('Y') . ' <a href="' . esc_url( home_url( '/' ) ) . '" title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" ><span>' . get_bloginfo( 'name', 'display' ) . '.</span></a> ' .$foodhunt_custom_credits. '</span></div>';
echo $credit_value;
#modify necessary
<VirtualHost *:80>
DocumentRoot "D:/xampp/htdocs/"
ServerName localhost
#we add this to make sure we can access to open PHPmyAdmin from http://localhost/phpmyadmin
#DocumentRoot - the root of the web server in your machine. In XAMPP it is ../xampp/htdocs/
<VirtualHost *:80>
2shrestha22 / task.txt
Last active October 8, 2018 06:48
Opening .php files directly from VS Code
//run in chrome task
// See
// for the documentation about the tasks.json format
"version": "2.0.0",
"command": "chrome",
"tasks": [
"label": "Run in Chrome",
"windows": {
#blog_subscription-4 .widget-title{
padding: 15px;
display: block;