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
<?php
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' );
Theme Name: Twenty Thirteen Child
Theme URI: http://example.com/wp-content/themes/twenty-thirteen-child/
Description: Twenty Thirteen Child Theme
Author: Any Name
Author URI: http://example.com
Template: twentythirteen
Version: 1.0.0
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-thirteen-child
*/
@2shrestha22
2shrestha22 / spfooter.php
Last active April 6, 2020 18:00
Removes Spacious Footer Credits With Your Own
<?php
//copy below this line, you shouldn't include <?php
//paste this code in your function.php
//spacious footer
if (! function_exists('spacious_custom_credits')) {
add_action('init','remove_default_credits');
function remove_default_credits(){
remove_action('spacious_footer_copyright','spacious_footer_copyright');