Responsive WordPress Theme – Caliber

A theme with simple controls and limitless potential. Work fast and build an amazing website!   Find out more »

UpThemes – Beautiful WordPress Themes

Create a site your church, gallery, newspaper, blog, recipes, band and more!   See the themes »

Need a little help?  Find answers quickly by searching the forum.
Group Admins
  • andy
  • jeffw
  • admin

Support for: Moxie – Responsive Theme for WordPress

Moxie

Public Group  |  active 4 years, 4 months ago ago
Viewing post 1 to 10 (10 total posts)

Hide post date and author

  • basvankesteren

    said

    Hi,

    Is it possible to hide the post date & author in Moxie?

    Thanks.

  • jeffw

    said

    You can probably do it with some CSS in your Custom CSS box.

    If you use the Internet Explorer, Chrome or Safari browsers you can use their built-in developer tools to point at and “inspect” elements on a web page to find out what styles they use. You can even tweak the styles live to experiment with any changes you might fancy. If you use Firefox then there is an add-on named Firebug you can install which gives that browser the same functionality as the developer tools built into the other browsers.

    Exactly on what page is it that you are seeing the post date and author that you want to hide?

  • basvankesteren

    said

    Jeff,

    Thanks for the answer. I worked a lot with the mingle theme. In theme settings –> Blog –>
    Control the display of blog pages, posts and the content of these pages. So you can control what is displayed.

  • jeffw

    said

    You are correct, the Mingle theme does indeed have those options. The Moxie theme doesn’t. Exactly on what page is it that you are seeing the post date and author that you want to hide?

  • bembelrocker

    said

    Easily you can use a plugin called “disable comments” to disable it everywhere.

  • hafler

    said

    Sry for write on a old thread but I want to hide data of the blog post also, someone has managed to do that? From google search results because the date post showing is old but is updated almost every month…

  • jeffw

    said

    To hide the post date and author on all pages—in archive post lists as well as on single posts—you can use some custom CSS…

    article footer.entry-meta .date-meta,
    article footer.entry-meta .author-meta  { display: none }

    Go to Appearance > Theme Options > Custom CSS and add that CSS to your Custom CSS box.

    The post date displayed is the date the post was first made. If you want the date displayed to be the date a post was last modified you’d need to customise the theme’s ‘functions.php’ file. On line 339 of that file, or thereabouts, you’ll see this block of code…

    // Date
    $date = sprintf( '<span class="date-meta"><span class="meta-label">'. __( 'Date:', 'framework' ) .' </span><time class="entry-date" datetime="%1$s">%2$s</time>'.$sep.'</span>',
      esc_attr( get_the_date( 'c' ) ),
      esc_html( get_the_date() )
    );

    Change it to this…

    // Date
    $date = sprintf( '<span class="date-meta"><span class="meta-label">'. __( 'Date:', 'framework' ) .' </span><time class="entry-date" datetime="%1$s">%2$s</time>'.$sep.'</span>',
      esc_attr( get_the_modified_date( 'c' ) ),
      esc_html( get_the_modified_date() )
    );

    Save and upload.

    Keep in mind that if you modify core theme files then each time you update the theme you will need to make all of those modifications again to the updated theme files.

  • hafler

    said

    Thank You, it works, I’m thinking if the Custom CSS code is the same for the razor theme.

  • jeffw

    said

    No, it’ll be different CSS for Razor.

    If you use Internet Explorer, Chrome, Firefox, Safari or Opera you can use the browser’s built-in developer tools to point at and “inspect” elements on a web page to find out what styles they use. You can even tweak the styles live to experiment with any changes you might fancy.

Viewing post 1 to 10 (10 total posts)