Forum Support

 
Advanced Search


New Posts
FAQs for Wordpress
If you have a question about Wordpress products please read through a list of our most commonly asked questions here.
[1]

Offline Matt Friend
Free Member
Posts: 12
Posted on: March 25, 2012, 07:53:56 PM

I would like to remove the post dates from my pages when i create content in them. I would still like the post dates to appear in blog posts on the main page, but I feel it is just not necessary on the about us page.

You can see it here...http://haiti.chipsnetwork.com/wordpress/index.php/about-us/

Thanks!
Logged

Offline Tristan Rineer
Free Member
Posts: 3858
Posted on: March 26, 2012, 09:04:21 AM

There's no easy way to explain how to make that change on that specific theme; newer themes have been modified to have a per-page toggle to enable/disable showing the date.

If you would like to PM me login/FTP information, I can adjust it so the date will only show on "pages" that have multiple posts, and not on ones that are a single item.
Logged

Offline Tristan Rineer
Free Member
Posts: 3858
Posted on: March 27, 2012, 10:34:38 AM

Thanks for PMing the FTP info.

Just in case anyone else would like to do something similar, I'll post the solution here and lock the thread:

I changed line 148 of "s5_admin/s5_fw.php" (the last line of "s5_inject_date()") from
Code:
     return $return; 
to
Code:
     if(!is_singular()){return $return;}else{return '';} 

What this does is check to see if the current "page" being loaded only has a single post or page worth of content, and if it does, instead of injecting the date, it erases the area where the date would go.
Logged
[1]

Jump to:  


Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Page created in 0.016 seconds with 22 queries.
Need some help getting your site up and running? Be sure to check out our tutorials area, post on the forum or hire us
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.