- 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.
推薦閱讀
- Dynamics 365 Application Development
- 青少年美育趣味課堂:XMind思維導圖制作
- Learn WebAssembly
- Windows Server 2012 Unified Remote Access Planning and Deployment
- 教孩子學編程:C++入門圖解
- .NET 4.5 Parallel Extensions Cookbook
- 貫通Tomcat開發
- 現代C:概念剖析和編程實踐
- Python大規模機器學習
- 視窗軟件設計和開發自動化:可視化D++語言
- C/C++代碼調試的藝術
- Web程序設計與架構
- SQL Server 2014數據庫設計與開發教程(微課版)
- Isomorphic JavaScript Web Development
- Flask Web開發實戰:入門、進階與原理解析