3 Questions for editing the Category Page (Blog)

Support Area Forums Progress 3 Questions for editing the Category Page (Blog)

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question:
  • Author
    Posts
  • #11741
    Patrick Markut
    Participant

    Hi Bill,

    last time I was very satisfied with your help as well as I’m still satisfied with your theme.

    Due to some changes I have to edit some things now.
    I got 3 Questions and all of them are for a Category Page (Blog):

    1. How can I change the Line under the Title so it only shows the “Date” instead of
    “Date / Author / Make A Comment / Categories”?

    2. Is there a way to display all the Post Thumbnails with the same size in case I uploaded some of them in different Sizes? Right now some are bigger then others and it looks weird.

    3. How do I justify the Preview Text?

    Thank you in advance in case your first answer helps me already!

    Sincerely,
    Patrick

    #11742
    Bill Robbins
    Moderator

    Good morning Patrick. Let’s find you some answers:

    Post Meta

    You can edit that line (it’s called the Post Meta data). Here’s how:

    1. Go to the Appearance section and select Edit.
    2. From the list of files on your right, choose archive.php.
    3. Look for this line:
      
      <p class="post-meta"><?php the_time('F j, Y'); ?>&nbsp;/&nbsp;<?php the_author_posts_link(); ?>&nbsp;/&nbsp;<a href="<?php the_permalink(); ?>#comments"></a>&nbsp;/&nbsp;<?php the_category(', ') ?></p>
      

      and replace that with this:

    4. Save your changes.
    5. Repeat that same process in the single.php file.

    That will remove everything but the date for you.


    Featured Image Size

    You can change that. It’s set now so you can upload portrait or landscape images without them being cropped, but you can force them to have the same maximum size. WordPress won’t scale images up if they are too small, so you’ll need to upload images larger that whatever size you choose.

    Here’s how to change it:

    1. Go back to the theme editor and select images.php
    2. Find this line:
      
      add_image_size('feature', 624, 999);
      
    3. Replace it with something like this:
      
      add_image_size('feature', 624, 400, true);
      
    4. The first number is the width in pixels; the second number is the height. Adding true forces the images to be cropped so they are no larger than those sizes.
    5. Save your changes.

    That will affect all future uploads. To change any images you’ve already uploaded, you’ll need to install and use the Regenerate Thumbnails plugin.


    Justify Text

    You can justify the text of your excerpts. Go to the Theme Options page and select the Styling tab. At the top, make sure you’ve selected “Yes” to include custom styling. Then scroll down to the Custom CSS box and paste this:

    
    .archive .post p {
    	text-align: justify;
    }
    

    Then update your settings. That will affect the excerpts themselves and leave the titles as left aligned.


    If you have any questions or trouble, let me know.

    Enjoy your weekend,
    Bill

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘3 Questions for editing the Category Page (Blog)’ is closed to new replies.