WordPress.org

Ready to get started?Download WordPress

Forums

Remove date from printable version of page (7 posts)

  1. sargibbons
    Member
    Posted 2 years ago #

    I work for a non profit who accepts donations through our website. Once a donation is made, donors are routed to a generic thank you page which explains that they will soon receive an email including their receipt. Except, many people still want to print this page for their records. And they freak out when they see a date at the top of the page from two years ado (as this is the date the page was published).

    This information is not on the actual page, only the "print" version. Is there any way to remove this from that page?

  2. deepbevel
    Member
    Posted 2 years ago #

    What is it that keeps it from showing on the live site? is it css? if so, one thing to try would be to remove the code which calls the date from the page or post template.

  3. sargibbons
    Member
    Posted 2 years ago #

    I think that line of code needs to be removed to keep the date from showing on the site pageā€”and it has been removed. But the print page seems to revert to show only some basic information, and the date (as well as author) shows up on that page.

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    If the line of code had been removed from the php template, it wouldn't display at all

    If it was being hidden in css, but a different print stylesheet was implemented, that may cause the date to show back up on print only

  5. sargibbons
    Member
    Posted 2 years ago #

    Problem is, I'm not sure where the "print stylesheet" is...

  6. deepbevel
    Member
    Posted 2 years ago #

    I just started using Mozilla Firebug to find css, could you find it that way and cancel it?

  7. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    Problem is, I'm not sure where the "print stylesheet" is...

    Unfortunately, neither are we without a link to your site

    What you can do to look for it is look in header.php for a .css link with media=print

    It may also be enqueued from functions.php or something... to see if it is enqueuing at all you can view your site's html output from within the browser - in IE you would just click view - source (other browsers have the feature, it's just worded differently) then you can look for a link in your output to a .css sheet with media pront

    or in style.css you may have a built in print sheet in a section starting with

    @media print {

Topic Closed

This topic has been closed to new replies.

About this Topic