Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm currently trying to get some of the words that are inside an excerpt to be bold with "h1" tag but it does not seem to be working. When I checked online, all that I come ac cross was the suggestion to use a plug in. Is there a way to achieve this without a plugin. My CSS looks as shown below.

.side-bar h1 {
    font-weight: bold!important;

}
share|improve this question
add comment

closed as off-topic by s_ha_dum, kaiser, vancoder, toscho Aug 26 '13 at 17:02

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should be specific to WordPress within defined scope (merely happening in its context, such as generic PHP/JS/HTML/CSS, is insufficient). Might be better asked at Stack Overflow or other appropriate site of Stack Exchange network." – s_ha_dum, kaiser, vancoder, toscho
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 1 down vote accepted
  1. You may already know this, but the <b> or <strong> tags are better choices if all you want to achieve is bold text. <h1> should be reserved for the most important header(s) on your page.
  2. By default, WordPress strips out a lot of what's in excerpts, including images and HTML tags. To undo this, you'll need to create or edit your theme's functions.php file. Either of these links will give you a description of how to write/edit functions.php to achieve this and other changes to the excerpt:
share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.