Image Size in Portfolio

  • Posted in : Read WP
  • MarkerMaker
    Participant

    I cannot seem to get my images that I add to the portfolio to display at full size, instead all images are reduced. Does anyone know what is happening here as the CSS suggests the images should display at 100% their actual size?

    http://wp.mjcdesign.co.uk/portfolio/mycoracle/

    Mehmet S.
    Keymaster

    Do you have any code in your custom css box?

    MarkerMaker
    Participant

    Yes at the moment I have this but the second line does nothing…

    <code>h1.site-title a { border-bottom: none; }
    body.home .site-intro { font-size: 5em; }</code>

    ahmetsali
    Keymaster

    Hi, do you have any custom js code in your External JS box, then delete it and try again.

    bluewhisky23
    Participant

    Hi,

    I have a similar query. I was wondering if it was possible for me to set the size of portfolio items to be smaller than it currently is. If you check out my website’s portfolio page (http://pinakespress.com/books-2/), you’ll see that having a smaller image would work better. I tried reducing the featured image before upload, but it seems to then get enlarged again automatically?

    Cheers,

    ahmetsali
    Keymaster

    Hi @

    – you need to edit columns sizes for portfolio page. Edit js/main.js (in theme folder) in a text editor and find line : 351, you will see column sizes;

    			var viewports = [ {
    					width : 1600,
    					columns : 6
    				}, {
    					width : 1200,
    					columns : 5
    				}, {
    					width : 900,
    					columns : 4
    				}, {
    					width : 500,
    					columns : 3
    				}, { 
    					width : 320,
    					columns : 2
    				}, { 
    					width : 0,
    					columns : 2
    				} ];
    

    increase columns per row value to decrease item’s width;

    			var viewports = [ {
    					width : 1600,
    					columns : 7
    				}, {
    					width : 1200,
    					columns : 6
    				}, {
    					width : 900,
    					columns : 4
    				}, {
    					width : 500,
    					columns : 3
    				}, { 
    					width : 320,
    					columns : 2
    				}, { 
    					width : 0,
    					columns : 2
    				} ];
    
    bluewhisky23
    Participant

    Excellent. Took me a while to get what the numbers meant, but it works now on larger screens :)

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register