Support » Theme: Portfolio Press » Change grid on homepage to 4 images per row

Viewing 1 replies (of 1 total)
  • I did the following to get this result:
    in ‘style.css’ section /* Portfolio Posts */
    – changed ‘#portfolio .portfolio-item:nth-of-type(3n)’ to ‘…(4n)’
    – set the width in ‘#portfolio .portfolio-item’ to 23.5%

    in ‘content-portfolio.php’:
    – changed ‘if ( $count % 3 == 0 )’ to ‘if ( $count % 4 == 0 )’ for the correct line break after 4 entries
    – you may also edit the number in ‘apply_filters( ‘portfoliopress_posts_per_page’, ‘9’ ) from 9 to a number which is divisible by 4

    repeated the last point in ‘functions.php’ in the function ‘wpt_portfolio_custom_posts_per_page’

Viewing 1 replies (of 1 total)
  • The topic ‘Change grid on homepage to 4 images per row’ is closed to new replies.