WordPress.org

Ready to get started?Download WordPress

Forums

Change php to list images in a row (4 posts)

  1. judah75
    Member
    Posted 1 year ago #

    Hello,

    I am rather new to WordPress. I need to change my boss' Portfolio page to list all of the images in rows of four, rather than a single column.

    The Portfolio Page Template php is calling all of the posts with the portfolio category and displaying the associated Featured Image.

    Here is the code in question:

    <ul>
    			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    					<li class="portfolioItem">
                        	<a href="<?php the_permalink() ?>"><?php the_post_thumbnail(); ?></a>
    
    					</li>
    			<?php endwhile; ?>
    
       	 </ul>

    This is the page I'm working on: http://vmvbrands.com/category/portfolio/

    Let me know if more information is needed.

    Thank you,

    Judah

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    line 315 style.css, remove width: 100%;

  3. Andrew
    Forum Moderator
    Posted 1 year ago #

    Then on line 297, remove width: 640px;

  4. judah75
    Member
    Posted 1 year ago #

    Thank you, thank you, thank you, anevins! You are the man!

    That's exactly what I needed. Now I just need to get all of the logo containers the same size, on one page (instead of spilling over to a second) and surrounded by a border (or two).

    Once again, thank you, I have an exciting weekend ahead of me.

    P.S. Should I mark this as resolved and bring up the other issues in a new thread (if I can't figure them out myself) or leave it open for now?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags