• Jennifer_NM

    (@jennifer_nm)


    From what I’ve read on deleting the the date and time from posts, I need to remove this code:<?php the_time('F j, Y'); } ?> and something similar for the date.

    I can’t find comparable code for the date in my page.php file.

    What I do have is this:

    <?php } ?><?php if (get_option('fr_date_meta_display') == "Yes") { ?><?php echo get_option('fr_byline_date_text'); ?> <?php the_time('F j, Y'); } ?>

    What should I take out? When I removed <?php the_time('F j, Y'); } ?> I got this error message:

    “Parse error: syntax error, unexpected T_ENDWHILE in /home/noones6/public_html/wp-content/themes/frugal_30/single.php on line 56”

    I’m confused about what the “fr_date” code means.

    THANKS!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Michael

    (@alchymyth)

    <?php the_time('F j, Y'); } ?>

    the code above also includes a closing bracket of a conditional statement;

    just remove the_time('F j, Y'); and leave this behind <?php } ?>

    the ‘option’ lines are probably referring to theme option settings in ‘admin’ ‘appearance’ (?)

    Thread Starter Jennifer_NM

    (@jennifer_nm)

    Thanks, Alchymyth. I removed the code you suggested. Here’s what happened:

    -First post on home page still has the regular date (until I hit the title link), then…
    -All other posts have “div class=”byline”> instead of the date.

    Any ideas?

    Michael

    (@alchymyth)

    which template did you edit to remove/change the code?

    was it single.php?

    it sounds as if the front page is using a different code, probably the_date().

    look into index.php (or home.php, if your theme uses this for the front page)

    if in doubt, you could paste the code from index.php into a http://wordpress.pastebin.com/ and post the link to it here.

    check http://codex.wordpress.org/Template_Hierarchy for the possible templates that might be used to show your posts.

    Thread Starter Jennifer_NM

    (@jennifer_nm)

    I edited page.php before.

    I searched through the other templates and also removed the same snippet of code from archives.php and blog.php just now. Same error message.

    Um, this stuff is a little over my head, that’s for sure. I pasted my code into pastebin, but don’t understand what that’s for. Read through the Template Hierarchy and that helped me try archives and blog.

    I’m using the frugal theme and my index.php is completely blank. Is that weird? Doesn’t seem like it should be blank! No home.php to be found.

    Thanks for your help, Alcymyth. I really appreciate it.

    My site is here: http://www.noonesthebitch.com/

    Michael

    (@alchymyth)

    after you submitted your code to the pastebin, you would need to copy the address in the browser and post it here in the thread – http://wordpress.pastebin.com/E16dFZcg

    always make a backup copy of your theme files before editing, and keep a copy of the original theme in a safe place – just in case

    there should at least be a < at the start of the first line of your code, like so:
    <div class="byline">
    try and restore this in all the files that you edited (probably at least in single.php)

    try to remove all this from the code that you pasted into the pastebin:
    <?php if (get_option('fr_date_meta_display') == "Yes") { ?><?php echo get_option('fr_byline_date_text'); ?><?php the_time('F j, Y'); } ?>

    (where the_time('F j, Y'); might already be missing)

    (if in doubt, paste the code of blog.php into the pastebin and post the link to it here for help)

    as this is a premium theme, i can’t just download it and have a look at the files 🙁

    your theme seems to have a support forum as well – try to ask your question there, as someone there might have direct experience with what you want to achieve.

    ps: some of the code looks as if there are theme option settings in the dashboard – check there again if showing the time stamp is not one of these otions.

    Thread Starter Jennifer_NM

    (@jennifer_nm)

    Oh no! I pasted the long block of code that I was working with onto my notepad, but must have deleted it from my page.php file. Now I’m not sure where it goes.

    Would it go in between these two lines?

    <?php frugal_hook_before_container(); ?>
    
    <div id="content">

    Sorry to be a pain!

    You’re right though – there was a missing bracket in div class="byline">. Must not have copied it right.

    I’ll try to figure out what you’re describing for pastebin and I’ll track down the forum for the Frugal theme as well….

    Thanks again!

    Michael

    (@alchymyth)

    Would it go in between these two lines?

    unfortunately, i cannot help there, as i haven’t seen the full code before.

    hopefully, you have the original theme files somewhere.

    Thread Starter Jennifer_NM

    (@jennifer_nm)

    Does anyone know why, when I put the code back from notepad into the template, there are all these spaces in the code? Will the code still work with all the spaces in it?

    God, I suck at this stuff.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Please help – how to remove timestamp?’ is closed to new replies.