New Topic

Where do I set the amount of images?

Home › Forum › Help › Where do I set the amount of images?

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #696
    trotsig
    Participant

    What I have on index page:

    post with 1 image shows 1 image.

    post with 5 images shows 5 images.

    What I have on single post:

    post with 1 image shows 1 image.

    post with 5 images shows 5 images.

     

    What I need on index page:

    post with 1 image shows 1 image.

    post with 5 images shows 1 image.

    what I need on single post:

    post with 1 image shows 1 image.

    post with 5 images shows 5 images.

    #698
    StartupWP
    Keymaster

    Thank you, the issue is very clear. Can we get a link to the website in question to see if we can investigate further?

    Likely an issue of Summary vs Full Content under Settings > Reading.

    #699
    trotsig
    Participant

    Here is the blog (posts) page

     

    http://sfpontona.se/nyheter/

     

    the third post down has 5 images,  4 are post images and one is set as “featured” so it became  duplicated. there should be 1 image on the main page & 4 images on the single page.

    Thank you!

     

    #701
    StartupWP
    Keymaster

    Add the following CSS and only the images you specifically set as the featured images will appear on the blog page:

    `.blog .entry-content img{display:none}
    .blog .entry-content .attachment-post-thumbnail{display:inline}`

    https://startupwp.com/topic/customizing-your-theme/

    #708
    trotsig
    Participant

    Thank you that worked, but now there are duplicate images on the single view of the post.  http://sfpontona.se/forsta-andra-tredje/

    #709
    StartupWP
    Keymaster

    `.single-post .entry-content .attachment-post-thumbnail{display:none}`

    #710
    trotsig
    Participant

    Thank you.

     

    #711
    StartupWP
    Keymaster

    You’re welcome.

    #1902
    trotsig
    Participant

    I have upgraded to the newer theme (StartupPro 1.1.6) and this fix is no longer working in the dreaded IE 8, but still good in Firefox, Safari, Chrome and IE 9, 10 & 11. I am getting double sets of images in the news feed as well as duplicate images in single posts as well. The .blog class does not seem to exist anymore.
    The site URL is News What will fix the duplicate images in Internet Explorer 8?

    #1903
    StartupWP
    Keymaster

    The other alternative is to not set featured images and instead manually place them in the post content.

    From what version of StartupPro did you upgrade from?

    #1904
    trotsig
    Participant

    Sorry that was wrong, I upgraded from 1.1.6 to 2.5.1, so I am running the new version of course, 2.5.1 at this time. I was thinking that a fix could be made using class ie8 …

    .ie8 .attachment-post-thumbnail {display:none;}
    but that didn’t work.

    #1906
    StartupWP
    Keymaster

    See how to use browser-specific CSS hacks here:

    http://css-tricks.com/snippets/css/browser-specific-hacks/

    #1908
    trotsig
    Participant

    What did work ( finally) was this:

    /* IE8 and below */
    .wp-post-image {display:none\9;}

    #1909
    StartupWP
    Keymaster

    Excellent, thanks for the update.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.