• 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: https://vmvbrands.com/category/portfolio/

    Let me know if more information is needed.

    Thank you,

    Judah

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

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

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Then on line 297, remove width: 640px;

    Thread Starter judah75

    (@judah75)

    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change php to list images in a row’ is closed to new replies.