July 8th in Internet, Wordpress by .

Changing Quote and Code Tags in WordPress

If you are wordpress techie or programmer, most cases you might want to put a code or quote tags in your blog post. By default the <code> or <pre> or <blockquote> tags require a special plugin or formatting to display them properly.

The simplest way of customizing the code and blockquote is to open styles.css and enter the following code in CSS. Go to Presentation > Theme Editor > Styles.css

blockquote, pre {
padding: 5px;
font-size: 12px;
display: block;
border: 1px solid #d5e8f9;
background: #e5ecf9;
}

code {
padding: 5px;
font-size: 12px;
display: block;
border: 1px solid #e0e0e0;
background: #f3f3f3;
}

Similar Posts:

Leave A Comment.





Please wrap all source codes with [code][/code] tags. Powered by