Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ben Meredith

    (@benmeredithgmailcom)

    Hey there!

    The good news is that the Old Post Date Remover css file is being loaded on that page (line 2299 of the source), so now we just have to get your theme to wrap the date in a span or div that makes it hide-able.

    Your theme is currently not putting any div or span around the date, simply wrapping it in an H6 heading.

    What that means is that I can’t issue a patch to hide the date on your site without it hiding any h6 headings on one of the other 5,000+ active sites where my plugin lives.

    In order to hide the date, I’d recommend wrapping the date in a div with a class of “date.” In most themes, that would happen in the content.php file.

    Let me know is you need extra help with that. For starters, never update php files through the dashboard editor, always use FTP, SSH, or some other method to transfer the edited files to your server. (I recommend using a staging site.)

    Thanks for using my plugin!

    Thread Starter russelljames913

    (@russelljames913)

    Hey Ben,

    I don’t seem to be able to find the date in the content.php file. Any other guesses?

    Plugin Author Ben Meredith

    (@benmeredithgmailcom)

    hmm. maybe single.php? It varies widely by theme developer, but If I were you, I’d poke around in all of the files in your Anatta-Theme Folder.

    Ben

    Thread Starter russelljames913

    (@russelljames913)

    My developer took a look at this and found the file. This is what they said:

    ======

    I added div in the following format:

    <div><h6><?php the_date(‘jS F, Y’); ?></h6></div>

    ======

    It doesn’t seem to have worked though. I have it set to get rid of dates older than 10 days.

    Plugin Author Ben Meredith

    (@benmeredithgmailcom)

    Hey Russell,

    Excellent! You found the file! You’ve got to give that div a class in orrder for my stylesheet to hide it. So <div class="date"><h6><?php the_date('jS F, Y'); ?></h6></div> would work.

    Try that, and let me know how it works!

    Ben

    Thread Starter russelljames913

    (@russelljames913)

    That worked! Thanks ??

    Plugin Author Ben Meredith

    (@benmeredithgmailcom)

    Sweet. Glad that worked!

    If my plugin (or top-shelf support!) have benefitted you, the best way to say thanks is a donation.

    The second best way is an honest review!

    Have a great day!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Dates still showing on custom theme’ is closed to new replies.