ASKER
/*
Theme Name: Twenty Fifteen Child <-- CHANGE THIS TO WHATEVER
Theme URI: http://example.com/twenty-fifteen-child/ <--- CHANGE THIS TO YOUR FOLDER NAME
Description: Twenty Fifteen Child Theme
Author: John Doe
Author URI: http://example.com <--- CHANGE THIS TO YOUR SITE
Template: twentyfifteen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-fifteen-child
*/
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
ASKER
ASKER
Is the Theme URI important,l as I'm developing it on localhost,
I did the steps above and see "Twenty Fifteen Child" blank theme, but now what?
ASKER
ASKER
/*
Theme Name: Twenty Fifteen Child
Theme URI: http://localhost/wordpress0/wp-content/themes/twentyfifteen-child/
Description: Twenty Fifteen Child Theme
Author: John Doe
Author URI: http://example.com
Template: twentyfifteen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-fifteen-child
*/
#sidebar{
width: 150px;
}
article{
position: relative;
top: 0px;
left: 150px;
}
ASKER
PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.
TRUSTED BY
If possible, use a child theme:
https://codex.wordpress.org/Child_Themes
https://codex.wordpress.org/CSS