• Resolved chinatownlee

    (@chinatownlee)


    Hi,

    I would like to remove the introductory text block in the homepage and focus on displaying the actual photos of my portfolio.

    By removing the unnecessary text block I would free up some space so that I could also increase the width of the photos.

    Anyone care to help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    This code should do the trick:

    /* Hides portfolio page content */
    div.portfolio-content {
    	display: none;
    }
    
    /* Makes portfolio page content area wider */
    div.portfolio-projects {
    	width: 100%;
    }
    
    /* Makes portfolio thumbnails bigger on desktop screens */
    @media screen and (min-width: 1020px) {
    
    body:not(.single-jetpack-portfolio):not(.search) .jetpack-portfolio.hentry {
    		width: 47%;
    	}
    }

    I’d recommend going with a percentage for resizing the thumbnails so they’ll dynamically adjust based on screen size. 47% works well in my testing to have two images side-by-side, or 30% for three. That does cause some jerkiness when resizing the screen, but for the average site visitor that shouldn’t pose an issue, as they’re unlikely to be resizing their browsers while looking at your site.

    You can also set a fixed width if you prefer. Around 450px appears to work best.

    Thread Starter chinatownlee

    (@chinatownlee)

    I had to fiddle with the percentages a bit under each media query, but that worked fine, thank you!

    Glad I could help ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Homepage: Intro text block removal’ is closed to new replies.