Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #24936

    Hello,

    Instead of removing the post info in the left column, I would like to edit it to the following:

    “category” (category)

    by (admin).

    Effectively, this removes the info “this entry has” (comments) and adds the word “category”.

    #125233

    Hi,

    Add this on your custom.css or Quick CSS

    .comment-container.minor-meta {
    display: none;
    }

    Then edit include > format-standard.php, find this code.

    echo '<span class="blog-categories minor-meta">'.__('In ','avia_framework');

    Replace it with:

    echo '<span class="blog-categories minor-meta">'.__('Category: ','avia_framework');

    You need to change it on all post formats like format-quote.php, format-link.php and format-gallery.php.

    Regards,

    Ismael

    #125234

    Hi Ismael,

    The first part was straightforward, but for the .php code changes, this line appears within two ‘if’ statements. One of them seemed to work, but do I need to change it for both?

    Thanks,

    Salim

    #125235

    Afaik there’s just one if statement (obviously this if statement can be found in all format files (format-quote.php, format-link.php and format-gallery.php and format-standard.php).

    Replace

    if(!empty($cats))
    {
    echo '<span class="blog-categories minor-meta">'.__('in ','avia_framework');
    the_category(', ');
    echo ' </span><span class="text-sep">/</span> ';
    }

    with

    if(!empty($cats))
    {
    echo '<span class="blog-categories minor-meta">'.__('Category ','avia_framework');
    the_category(', ');
    echo ' </span><span class="text-sep">/</span> ';
    }

    To remove the comments search for

    if(comments_open() || get_comments_number())
    {
    echo "<span class='comment-container minor-meta'>";
    comments_popup_link(__('this entry has','avia_framework')." <span>0 ".__('Comments','avia_framework')."</span>",
    __('this entry has','avia_framework')." <span>1 ".__('Comment' ,'avia_framework')."</span>",
    __('this entry has','avia_framework')." <span>% ".__('Comments','avia_framework')."</span>",'comments-link',
    __('Comments Off' ,'avia_framework'));
    echo "</span><span class='text-sep'>/</span>";
    }

    and delete this code block.

    #125236

    Thank you, I am marking this post as resolved.

    #125237

    Hey,

    Glad it is fixed now.

    Cheers,

    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Edit Post Info’ is closed to new replies.