Home Forums WordPress Themes – Premium Encounters Customizing Post Meta Data

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14802
    Brian Tabios
    Member

    Hello,

    I’d like to make a modification to the look of each post. I’ve hidden the entry-date-box on all of my posts because my users are getting confused between when the post was posted, and the date of the event that the post describes.

    I’ve attached a screenshot of what I’m trying to achieve.

    In the Functions.php file I’ve found encounters_post_meta_data();
    How do i insert a new span like “Posted on: Mar 01 2014”? I’ll also neet to append a &#8226 separator.

    Thanks!
    Post.png

    Attachments:
    You must be logged in to view attached files.
    #14803
    Sushil Adhikari
    Moderator

    Yikes! Very carefully actually. This unfortunately is something you will need to be very comfortable in writing php code plus know how WordPress gets the info and displays it because that code for post_meta_data is only part of the process; the rest happens behind the scenes with WordPress. In a nutshell, you would have to take that batch of code out and write your own. You would also need to modify the code in the content.php file…basically you have some coding to do.

    You may want to see what other themes have that does that kind of layout and look at their code. Perhaps start with the WP default themes. You would have to take my code out from the content.php to replace it with yours.

    If you plan on making these kinds of code changes (any code changes), it’s recommended you switch the theme to the child theme for this so that you can get parent theme (Encounters) updates without losing your modification that would be done in the child theme.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.