Help with Slider image

  • ABasketballJones

    #3608

    In my slider, i have it showing 5 blog posts i made. Now not every blog has a picture in it, but i have it set so the slider shows ‘first image in post’ for the blogs that don’t have an image in the slider it just shows an x.

    I’d like it show something generic, like a logo i can upload, not an x. is this possible? or do i just have to add a photo every time?

    Admin

    Syahir Hakim

    #25178

    I don’t see any x in the slider without an image. What browser do you use?

    ABasketballJones

    #25179

    For this post: Derrick Rose Denies Request Of Pau Gasol Trade // it shows an X for me. What does it show for you?

    I am using Intertnet Explorer 9.

    Link to site http://abasketballjones.com/

    Admin

    Syahir Hakim

    #25180

    OK, try adding this to your child theme’s functions.php file:

    function graphene_custom_generic_slider_img(){
    return '<img src="/path/to/image.file" alt="" />';
    }
    add_filter( 'graphene_generic_slider_img', 'graphene_custom_generic_slider_img' );

    ABasketballJones

    #25181

    Thanks for the help. I don’t have child themese set up yet, do you think it’s a must?

    Admin

    Syahir Hakim

    #25182

    If you want to change the generic header image, then yes it’s a must.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Do NOT follow this link or you will be banned from the site!