1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress navbar/time/date/author help

Discussion in 'Web Design' started by mindmaster, Feb 23, 2011.

  1. mindmaster

    mindmaster Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 16, 2010
    Messages:
    2,501
    Likes Received:
    1,135
    Location:
    at my new office
    I can't find any help on google or wordpress forum with this theme.

    I just upgraded wp to 3.1 and I changed to this theme:
    Code:
    hxxp:// wordpress.org/extend/themes/black-n-white
    I can't get rid of the: "published at..."(upper page), "Posted in: xxxx by Theme Admin Comments off ".

    I would appreciate some help.
    Thanks
     
  2. mindmaster

    mindmaster Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 16, 2010
    Messages:
    2,501
    Likes Received:
    1,135
    Location:
    at my new office
    ...meanwhile I got rid of the "published at.."

    I still got on every posts "Posted in: by XxX" and "Comments Off".

    Still in need.. :confused:
     
  3. cjbmeb14

    cjbmeb14 Regular Member

    Joined:
    Jul 17, 2008
    Messages:
    228
    Likes Received:
    276
    Occupation:
    Self Employed
    Location:
    Worcester,UK
    In your themes functions .php add the following to the end this will remove the comments off.

    function comment_style() {
    global $post;

    // please enter the Pages ID's below,
    // you can see the ID when you goto edit page in the URL address bar,
    // ... domain.com/wp-admin/post.php?post=2&action=edit
    // [ the Page ID here is 2 ] //

    $no_comment_pages = array(2, 3, 5);

    if(in_array($post->ID, $no_comment_pages))
    {
    ?>
    <style type="text/css">div.feedback, .feedback {visibility:hidden;}</style>
    <?php
    }
    }
    add_action('wp_print_styles', 'comment_style');
     
    • Thanks Thanks x 1
  4. mindmaster

    mindmaster Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 16, 2010
    Messages:
    2,501
    Likes Received:
    1,135
    Location:
    at my new office
    Thanks for your time, but can you be more precises, I can't get it to work.
    My post page id is 8.
     
  5. mindmaster

    mindmaster Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 16, 2010
    Messages:
    2,501
    Likes Received:
    1,135
    Location:
    at my new office