Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 11 months, 4 weeks ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

Remove Metadata from Top of Posts

  • This topic has 3 replies, 2 voices, and was last updated 7 years, 4 months ago by Christian Wach.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 18, 2015 at 9:59 am #5839
    Greg Acuna
    Participant

    I’m using CBOX and the CBOX Theme. Is it possible to remove the metadata from above posts?

    <span class=”post-author”>This is what I’m talking about just under the title: </span>

    <span class=”post-author”>greg </span><span class=”post-category”> Video </span><span class=”time-posted”> <time class=”entry-date” datetime=”2015-11-18T18:15:21+00:00″>November 18, 2015</time></span><span class=”post-comments”> No Comments » I’ve attached an image.</span>

    I would like to know how to remove all that from both individual posts and all posts.

    Thanks, Greg

     

     

    Attachments:
    You must be logged in to view attached files.
    November 18, 2015 at 5:12 pm #5843
    Christian Wach
    Participant

    You’ll need to create a child theme and override the loop-single.php template.

    See the CBOX Theme Developer Guide and in particular Overwriting theme templates and using hooks.

    Cheers, Christian

    November 21, 2015 at 1:17 am #5847
    Greg Acuna
    Participant

    Thanks Christian…I did create a child theme…but nothing I’ve tried has had any effect. So this all is going WHOOSH…right over my head. 🙂

    November 21, 2015 at 1:51 pm #5848
    Christian Wach
    Participant

    Hi Greg, in order to change or remove the markup of the post metadata, you need to override the ‘loop-single.php’ template by copying the one in the CBOX theme to the same relative position in your child theme (I’m going to call its enclosing folder ‘cbox-child’ below).

    In this instance it means copying ‘cbox-theme/templates/loops/loop-single.php’ to ‘cbox-child/templates/loops/loop-single.php’ where you can remove the metadata completely by commenting out the line that reads:

    infinity_get_template_part( 'templates/parts/post-meta-top');

    For you, it should then read:

    //infinity_get_template_part( 'templates/parts/post-meta-top');

    If you want finer control of what’s in the metadata section itself, copy ‘cbox-theme/templates/parts/post-meta-top.php’ to ‘cbox-child/templates/parts/post-meta-top.php’ and edit its content to your requirements. As long as your child theme is the active theme, this will take precedence over the one in ‘cbox-theme’.

    Cheers, Christian

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 274

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    274 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register