- Learn to Create WordPress Themes by Building 5 Projects
- Eduonix Learning Solutions
- 99字
- 2021-07-02 19:18:23
Working with the style sheet
The next thing we will do is include our style sheet:
- Open the style.css file and enter the following code:
body{
background:#000;
}
- Save this and reload; we'll not get a black background as the style sheet is not being read:

- In order for that style sheet to be seen, we'll enter the following code:
<!DOCTYPE html>
<html <? php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<title><?php bloginfo('name'); ?></title>
<link rel="stylesheet"
href="<?php bloginfo('stylesheet_url'); ?>">
The preceding code will get the style sheet from the correct location.
- Save this code and reload. We can now see a black background:

So whatever we put in our style sheet will now be registered.
推薦閱讀
- Spring Cloud Alibaba微服務(wù)架構(gòu)設(shè)計與開發(fā)實戰(zhàn)
- The Modern C++ Challenge
- Instant Zepto.js
- INSTANT MinGW Starter
- Learning Raspbian
- Python爬蟲、數(shù)據(jù)分析與可視化:工具詳解與案例實戰(zhàn)
- Java程序員面試筆試寶典(第2版)
- Mastering Python Design Patterns
- 深入淺出Go語言編程
- Java 9 Programming By Example
- Oracle Data Guard 11gR2 Administration Beginner's Guide
- Scratch從入門到精通
- AutoCAD基礎(chǔ)教程
- SaaS攻略:入門、實戰(zhàn)與進階
- Flink原理深入與編程實戰(zhàn):Scala+Java(微課視頻版)