WordPress.org

Ready to get started?Download WordPress

Forums

Post Expirator
Feature: Strike something after expire? (3 posts)

  1. joshivince
    Member
    Posted 1 year ago #

    Hi,

    I love your AddOn.
    I have a Blog that is publishing news.

    Best thing for me would be the following wish:

    Could it be possible to cross / strike through all words / sentences (incl. header) after expiration date?

    I don't want to remove (draft or delete) my posts I just want to strike through everything.

    Thx for your response in advance,

    Vince

    http://wordpress.org/extend/plugins/post-expirator/

  2. Marventus
    Member
    Posted 1 year ago #

    Hi.
    What you could do is set the expired posts to be switched to a different category or subcategory (say, expired), and then use Conditional Tags, more particularly, the is_category() function, and apply a specific CSS class to posts in that category only.
    Then in your style.css file, you would go:

    #content .expired p,
    #content .expired a,
    #content .expired h1{
        text-decoration: line-through;
    }

    You can expand the selector to include all the necessary HTML tags.
    Cheers!

  3. joshivince
    Member
    Posted 1 year ago #

    Hi.
    Thx a lot for your help.

    Very nice.

    Regards,
    Vince

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic