Change the style of code tag for your theme in WordPress

Open dashboard, click Appearance->edit and click style.css to open and edit it.

find code tag and add the following CSS style.

background#d968ea;
border-radius5px;
padding3px;
colorwhite;

Save the file.

Congratulations! The CSS style of <code> tag comes into effect, clear cache of browser and refresh the page that includes <code> tag in your article(blog).

PS:

background can be changed into #6f3ea0.

发表评论

电子邮件地址不会被公开。 必填项已用*标注

2 × 1 =

65 − = 63