Jump to content
Sign in to follow this  
tuanma

Help find code for metabar.

Recommended Posts

tuanma

I'm looking for the file that contains the code for the meta bar. I want to change the <?php the_date(); ?> to the following <?php the_time_ago(); ?>. Any help is greatly appreciated.

Share this post


Link to post
Share on other sites
catrina
The file you need to look at is library.templates.php, but you need to make sure that you have PlatformBase activated (this is where the file needs to be copied to so that it can be edited). Do you already have it?

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
tuanma
I probably do not have PlatformBase activated. Is this just another theme that needs to be installed? Sorry, I'm pretty green with pagelines. Thanks, Tuan

Share this post


Link to post
Share on other sites
catrina
PlatformBase accompanies PlatformPro. It is the child theme, so it is based on PlatformPro, but the only difference is that it's where you can make advanced customizations (in the files, for example). You'll need to copy library.templates.php to the platformbase folder (from the platformpro folder) and edit the file there. The theme is downloadable from your LaunchPad account: http://pagelines.com/launchpad.

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
tuanma
@catrina I've uploaded the platformbase theme to wordpress. Do I activate that or keep the basic theme activated (will I lose all my customization if I activate the new theme?

Share this post


Link to post
Share on other sites
catrina
You shouldn't lose the customization if PlatformPro is still installed (PlatformBase and PlatformPro are designed to work together). Did you implement many Custom CSS customizations in PlatformPro?

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
tuanma
I've gone ahead and activated platformbase and everything seems to look ok. However, under themes in wordpress it shows platformpro still activated. Is this suppose to be the case?

Share this post


Link to post
Share on other sites
catrina
PlatformBase is supposed to be the theme shown as active (at the top of the Themes page). Can you take a screenshot of the page, upload it to imgur.com post the direct image link here?

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
tuanma
I tried activating platformbase ??“ gives success prompt ??“ but platformpro continues to stay as activated theme. http://i.imgur.com/YZba3.png

Share this post


Link to post
Share on other sites
catrina
Hm, that is strange. When you go to Appearance > Editor, what do you see? Does the stylesheet for PlatformBase show up?

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
tuanma
Catrina got the theme to change over after multiple tries. Thanks for your help. I will now copy the other file over.

Share this post


Link to post
Share on other sites
tuanma
Catrina I have library.templates.php file in platformbase do you know which line of code I switch out?

Share this post


Link to post
Share on other sites
catrina
The line that should be modified is: [code]$metabar .= sprintf( '%s [post_date] ', __('On','pagelines') );[/code] Is your shortcode supposed to show how many hours since the post was published?

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
tuanma
Yes, I downloaded a plugin which allows me to replace to the following for hours published. Plugin link: http://wpsplash.com/wordpress-timeago-fuzzy-dates-plugin/

Share this post


Link to post
Share on other sites
tuanma
Unfortunately, the change in code doesn't do anything.

Share this post


Link to post
Share on other sites
catrina
If it's not working, you can try this plugin instead: http://wordpress.org/extend/plugins/dynamic-dates/

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
tuanma
Do you know what their short code for minute, hours and days ago would be? Also, it seems that changes in library.templates.php file in platformbase is not effecting the site but the file in platformpro does.

Share this post


Link to post
Share on other sites
catrina
You'll need to contact the plugin creator about the short code since I am unsure of what it would be.

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×