Front Page Slider

  • craigh

    #6703

    Hi, i have most of my site working how i want, but have come across a peculiarity with the front page slider.

    The slider is setup to pull in posts from a particular category, however for some of the posts it does not display the included image and the only way around this is to set the slider image (at a global level) to be featured image, then for each of the individual posts add the picture as a featured image.

    Any ideas on what i have done to cause this?

    cheers

    Prasanna SP

    #35299

    Link to your site?

    craigh

    #35300

    Here you go Prasanna

    http://www.truthjuice.co.uk/

    Admin

    Syahir Hakim

    #35301

    Which slider post exactly that is not displaying the included image?

    craigh

    #35302

    Hi, it is the top one, which is the Graphene default slider, currently have got the setting to be featured image, then for each of the individual posts add the picture as a featured image. Only way I could ensure the pictures were displayed

    craigh

    #35303

    Hi, any ideas on this?

    I did have a play around with image sizes and for the one I reduced the image size on it seemed to display ok when I removed it from feaured images

    Is there a size limit restriction with the images that can be displayed within the slider?

    cheers

    Admin

    Syahir Hakim

    #35304

    If you want to use the “First image in post” option, the image will have to be uploaded for the post, and not merely selected from the gallery.

    craigh

    #35305

    Hi, i’m still having some issues with my site regarding header images.

    an example of this is the Tag Archive page (which populates the post image with the header image)

    http://www.truthjuice.co.uk/?tag=truthjuice-gathering-2013

    any guidance would be very welcome

    Mod

    Kenneth John Odle

    #35306

    @craigh: please feel free to start a new thread for this, as this is a completely different issue.

    Also, please explain what you mean by “some issues”. What is that you want and what is that you are actually getting?

    craigh

    #35307

    Hi Kenneth

    sort of related area as it is to do with displaying posts

    the page below is an example

    http://www.truthjuice.co.uk/?tag=truthjuice-gathering-2013

    whereby the header image from the post is displayed in each of the post summaries rather than the picture from the post itself

    for example the top post summary “TruthJuice Gathering 2013 – Santos Bonacci” should display the image from “http://www.truthjuice.co.uk/?p=3833” and not the header image from this post.

    really struggling to get my head around this for some reason

    craigh

    #35308

    also on the original theme of this topic of Slider image weirdness

    on the front page of the site, the top default slider only displays post images (one that have one), if it is set up to use “featured image.”

    TruthJuice Article – How dangerous are Vaccines?

    if i change this for example to be “first image in post” then things get peculiar.

    an example being Thomas Sheridan, who is appearing at several venues. There is a post for each and each post uses te same image, information and configuration, but setting the slider to use “first image in post” causes the image to disappear for Leicester and Hull, but stay for Birmingham.

    have probably overlooked something really fundamental, but struggling to find a solution

    Admin

    Syahir Hakim

    #35309

    The post excerpt thumbnail will be the featured image set for that post. If you set the featured image so that it will be displayed as the header image when that post is displayed, that featured image will also be the thumbnail for that post’s excerpt.

    Right now there’s no option to use the featured image for the header and another image for the post thumbnail, so you’ll have to either resort to a separate plugin for the thumbnail excerpt, or manually set the header image for those posts via a child theme and leave the featured image for the post excerpt thumbnail.

    craigh

    #35310

    Many thanks Syahir

    I’m currently in the process of setting up a child theme to avoid my current changes from being overwritten, so will probably go via this route,

    unless there is a plugin you can recommend?

    How easy is it to manually set the header image?

    Apologies if I am a bit vague at times, has been 10 or so years since i worked with html and css, just starting to find my feet again

    cheers

    craigh

    #35311

    Hi,

    have installed child theme now and I managed to find the following in another thread

    <?php  /* Only add this line if you're working on an empty functions.php file */
    /**
    * Manually set different header image for individual pages
    */
    function graphene_custom_header_image( $img_url ){
    /* Replace page-slug with the actual page slug */
    if ( is_page( 'page-slug' ) ) return 'http://www.new-image.url';

    return $img_url;
    }
    add_filter( 'graphene_header_image', 'graphene_custom_header_image' );

    however have not seen anything different to enable me to manually set headers

    any help would be welcome

    Admin

    Syahir Hakim

    #35312

    Replace the http://www.new-image.url with the URL to the image, and page-slug with the actual slug of the page you want to apply the header image to.

Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in to reply to this topic.