Removing the author and date from the Optimal Theme posts

Homepage Community Forums Optimal Theme Support Removing the author and date from the Optimal Theme posts

  • This topic has 3 replies, 2 voices, and was last updated 12 years ago by Wes.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1541
    pecographe
    Customer

      Hi Wes,

      I am trying to remove the author and date from my posts on my website http://www.pecographe.com/shop but can’t locate the code in the Optimal CSS files to do this? Can you advise? Or is there another way to do this without touching the code?

      Thanks

      Pecographe

      #1543
      Wes
      Moderator

        The post info can actually be removed from the functions file (not css) by adding this code –

        /** Remove the post info function */
        remove_action( 'genesis_before_post_content', 'genesis_post_info' );

        To customize it, add the following code, and remove the shortcodes you don’t want to use –

        /** Customize the post info function */
        add_filter( 'genesis_post_info', 'post_info_filter' );
        function post_info_filter($post_info) {
        if (!is_page()) {
        $post_info = '[post_date] by [post_author_posts_link] at [post_time] [post_comments] [post_edit]';
        return $post_info;
        }}

        For more info – http://www.studiopress.com/tutorials/customize-post-info#remove

        #1555
        pecographe
        Customer

          Worked brilliantly, thanks!

           

          #1557
          Wes
          Moderator

            You’re Welcome!

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The topic ‘Removing the author and date from the Optimal Theme posts’ is closed to new replies.