Strikeout with H4 Tag

resolved (6 posts) (3 voices)

  1. stripedsail

    I want to strike out a price that has an H4 tag like this:

    <h4><S>$99.00</S><font color="#00BD02">$59.00</font></h4>

    But I think maybe because of how Awake renders H4 with the gradient I can't strikeout. Is there some code I can add to enable strike outs of header tags?


    Posted 6 years ago #
  2. Elliott

    Hello stripedsail,

    I tested this out but Cufon leaves a bottom border for some reason. Perhaps it will be fixed in the next Cufon update. To try it out yourself add this line in your style.css file,

    h4.strike { text-decoration: line-through; }

    And then here is the HTML you would use,

    <h4 class = 'strike'>Strike through text</h4>

    Posted 6 years ago #
  3. stripedsail

    hmmm. I'm not seeing this change anything on checkouttest/ (no space)

    I cleared my CDN cache and checked that the new style.css was showing. nothing...

    Posted 6 years ago #
  4. Elliott

    It shows in firefox but not others it seems. As far as I know the only thing we can do here is wait for Cufon to offer support for text decoration.

    Sorry for the inconvenience stripedsail. As an alternative you can try taking Cufon off.

    Posted 6 years ago #
  5. oceanz

    I see this post is old and I'm wondering if there is a way to fix this now.
    I have text within a H3 tag and I need to use a strike through on some of it and italics on some of it also.
    On the strike through I have tried <s>...</s> and <del>...</del> and your css above. None of these worked.
    The italics also doesn't work.
    Could you please help further.

    Posted 3 years ago #
  6. Elliott

    You'll need to disable Cufon in Dashboard -> your theme -> General Settings. As an alternative you can try using @font-face which lets you add custom fonts easily. There is a plugin called WP Google Fonts which is nice for this.

    Posted 3 years ago #


You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme