Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to make folder in child theme in theme editer

/*
 Theme Name:   WPB Child Theme
 Theme URI:    https://www.wpbeginner.com
 Description:  A Twenty Thirteen child theme 
 Author:       WPBeginner
 Author URI:   https://www.wpbeginner.com
 Template:     twentythirteen
 Version:      1.0.0
*/
 
@import url("../twentythirteen/style.css");
 
.site-title {
padding: 30px 0 30px;
}
 
.site-header .home-link {
min-height: 0px;
}
 
.navbar {
background-color: #e8e5ce;
}
 
.widget { 
background-color: #e8e5ce;
}
.site-footer {
background-color: #d8cdc1;
} 
.site-footer .sidebar-container { 
background-color:#533F2A
}
Comment

how to add files in child theme in theme editor

add_action('after_setup_theme', function() {
	$file = get_stylesheet_directory() . '/my-file.php';
	if(!file_exists($file)) {
		include_once ABSPATH . 'wp-admin/includes/file.php';
		WP_Filesystem();
		global $wp_filesystem;
		$wp_filesystem->put_contents($file, '', FS_CHMOD_FILE);
	}
});
Comment

how to add files in child theme in theme editor

add_action('after_setup_theme', function() {
	$file = get_stylesheet_directory() . '/my-file.php';
	touch($file);
});
Comment

PREVIOUS NEXT
Code Example
Php :: wordpress filter category from widget 
Php :: READIMAGE FUNCTION PHP 
Php :: php use curl 
Php :: php return more than one value 
Php :: PHP str_ends_with — Checks if a string ends with a given substring 
Php :: decrypt md5 php 
Php :: php get parent url from script location 
Php :: how to re assign value of associative array after assign in php 
Php :: php convert path from server url to link 
Php :: test in laravel 
Php :: How to get a list of registered route paths in Laravel? 
Php :: laravel How to include model attribute automatically 
Php :: parent in php 
Php :: laravel display category post by slug 
Php :: laravel log error 
Php :: Fetch pivot data laravel 
Php :: laravel 8 livewire tutorial 
Php :: laravel log query for model (full) 
Php :: twig render to variable 
Php :: how to check if page opened from mobile or desktop 
Php :: What is the name of scripting engine in PHP? 
Php :: php laravel string substring 
Php :: cases_sensitive 
Php :: laravel stack script 
Php :: getting routes in middleware laravel 
Php :: laravel skip a loop if error 
Php :: query builder laravel 
Php :: laravel scope 
Php :: laravel permissions package 
Php :: codeigniter crud generator 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =