Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Remove date on pages and posts


  #1  
Old Mar 6, 2013, 11:33 AM
letsfigurethisout
 
5 posts · Mar 2013
I'm trying to remove pages on posts and pages on the Montezuma Theme (1.1.3).

I'm not too savvy with code, but I really like the theme and am trying to figure out how to remove the date.

Can anyone help?
Please...thanks!
  #2  
Old Mar 6, 2013, 12:09 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
look thru the theme options
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 6, 2013, 12:48 PM
letsfigurethisout
 
5 posts · Mar 2013
Hi,

Can you please be a bit more specific. I have and I can't seem to find anything.
  #4  
Old Mar 6, 2013, 12:53 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
In the theme option look at the postformat.php in "Sub Templates".
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Mar 6, 2013, 01:20 PM
letsfigurethisout
 
5 posts · Mar 2013
Ah, I see it. Can you tell me exactly what code I am supposed to remove?

Thanks so much for your help!

This is what i see:
<div id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?>>

<h2>
<span class="post-format"></span>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
<?php bfa_comments_popup_link( '0', '1', '%' ); ?>
</h2>

<?php bfa_thumb( 620, 180, true, '<div class="thumb-shadow"><div class="post-thumb">', '</div></div>' ); ?>

<div class="post-bodycopy cf">

<div class="post-date">
<p class="post-month"><?php the_time( 'M' ); ?></p>
<p class="post-day"><?php the_time( 'j' ); ?></p>
<p class="post-year"><?php the_time( 'Y' ); ?></p>
</div>

<?php bfa_excerpt( 55, ' ...' ); ?>

</div>

<div class="post-footer">
<a class="post-readmore" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php _e( 'read more &rarr;', 'montezuma' ); ?></a>
<p class="post-categories"><?php the_category( ' &middot; ' ); ?></p>
<?php the_tags( '<p class="post-tags">', '', '</p>' ); ?>
</div>

</div>

Last edited by letsfigurethisout; Mar 6, 2013 at 01:55 PM.
  #6  
Old Mar 6, 2013, 02:45 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
take a look of that code and tell me what part you think has to do with the date.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Mar 6, 2013, 03:40 PM
letsfigurethisout
 
5 posts · Mar 2013
So I removed:

<div class="post-date">
<p class="post-month"><?php the_time( 'M' ); ?></p>
<p class="post-day"><?php the_time( 'j' ); ?></p>
<p class="post-year"><?php the_time( 'Y' ); ?></p>
</div>

and it didn't work. I then went back in and did something wrong and had to access my database to restore wordpress (thanks to youtube video).

Did I take out too much? Not enough?
  #8  
Old Mar 6, 2013, 05:17 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
that is exactly the code you should have taken out. (good job, pat your self on the back)

What did you do that was wrong causing you to need a db restore?

What is the url?
did you have a caching plugin active?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Mar 10, 2013, 12:28 AM
angelosbg
 
9 posts · Mar 2013
Sorry for getting into the conversation but this topic proved to be very helpful to me. I had also a problem with a cashing plugin and every time I was making changes I had to log out and login again in order to take effect.

What I would like to do is remove the date in the beginning of the article but put it in the end. In the beginning my code was like this

<div class="post-bodycopy cf">

<div class="post-date">
<p class="post-month"><?php the_time( 'M' ); ?></p>
<p class="post-day"><?php the_time( 'j' ); ?></p>
<p class="post-year"><?php the_time( 'Y' ); ?></p>
</div>

<?php bfa_excerpt( 55, ' ...' ); ?>

</div>

<div class="post-footer">
<a class="post-readmore" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php _e( 'read more &rarr;', 'montezuma' ); ?></a>
<p class="post-categories"><?php the_category( ' &middot; ' ); ?></p>
<?php the_tags( '<p class="post-tags">', '', '</p>' ); ?>
</div>


Should I do it like this? Or else where should I put the date text?

</div>


<div class="post-bodycopy cf">

<?php bfa_excerpt( 55, ' ...' ); ?>

</div>

<div class="post-date">
<p class="post-month"><?php the_time( 'M' ); ?></p>
<p class="post-day"><?php the_time( 'j' ); ?></p>
<p class="post-year"><?php the_time( 'Y' ); ?></p>
</div>

<div class="post-footer">
<a class="post-readmore" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php _e( 'read more &rarr;', 'montezuma' ); ?></a>
<p class="post-categories"><?php the_category( ' &middot; ' ); ?></p>
<?php the_tags( '<p class="post-tags">', '', '</p>' ); ?>
</div>

</div>


Thanks a lot
  #10  
Old Mar 10, 2013, 04:43 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
why don't you try it and report back?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #11  
Old Mar 10, 2013, 08:05 AM
angelosbg
 
9 posts · Mar 2013
But this way I noticed that we can remove the date from the articles on main page and not in the article. What I am interested to do is put the date inside the article at the end of it.
  #12  
Old Mar 10, 2013, 11:38 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
the 'index.php' is used when looking at a multi post page. The 'single.php' is used when looking at a single post page.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #13  
Old Mar 10, 2013, 05:02 PM
angelosbg
 
9 posts · Mar 2013
Thanks a lot once again for your quick replies. The thing is that I still do not know how I can put the date of the post in the end of it.
  #14  
Old Mar 10, 2013, 06:21 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
ok you have to understand how the WordPress hierarchy works and how this relates to Montezuma.

on a multi post page, index.php is run and it calls postformat.php
when a single post is displayed, it calls single.php
when a page is displayed, it calls page.php

so if you want to change the location for single posts and pages, you have to modify both single.php and page.php.

I hope this helps, now play with things, move some code around and remember is you really mess a template up, you can always press the button to reset that template (don't accidentally press the 'Reset all' button because that will reset everything.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by lmilesw; Mar 11, 2013 at 06:40 AM.

Bookmarks

Tags
montezuma theme, removing date

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Date Timestamp from Search Results joshuamu Center area post/pages 10 Dec 9, 2012 01:17 PM
CSS Date Icon on posts CypherUK Header configuration & styling 2 Jun 22, 2011 09:55 AM
[SOLVED] How to remove comment date link only sober Comments, trackbacks & pings 7 Feb 14, 2011 07:20 PM
Grouping posts by date. grimbles Center area post/pages 1 Jun 17, 2010 05:20 AM


All times are GMT -6. The time now is 04:32 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.