Set default featured image

This topic contains 11 replies, has 2 voices, and was last updated by  P O 9 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #38028

    P O
    Expired Member
    Post count: 501

    Hello. In each update I have to re upload my featured image because my sites are not in english.

    I am talking about “featured.png” inside assets.

    Is there a way to setup a default image for featured ?

    Thanks.

    #38087

    Simone
    Expired Member
    Post count: 3515

    Hello, try to add this in your style.css folder

    
    
     .geodir_featured_img {
        background: url(https://ayecode.b-cdn.net/images/featured.png) no-repeat !important;
    }

    change the url accordingly.
    Not tested, it should work, let us know.

    #38302

    P O
    Expired Member
    Post count: 501

    Thank you, I added something like that to my child theme and not its working.

    #38308

    Simone
    Expired Member
    Post count: 3515

    you can set the path to /images/featured.png

    (just saw your css and you’re using the “long” path)

    #38314

    P O
    Expired Member
    Post count: 501

    you can set the path to /images/featured.png

    That does not work. It seems as I have a child theme, its not picking the image from there and it looks for it from the parent theme.

    Thanks.

    #38319

    Simone
    Expired Member
    Post count: 3515

    I’m still seeing this path in your website

    background: url(//domain.com/wp-content/themes/domain-child/images/featured.png) no-repeat !important;

    and the image is taken from there, not from the default, i see “Destacada”

    #38320

    P O
    Expired Member
    Post count: 501

    If I use “/images/featured.png” it does not work, its a 404. Thats why I am using complete path, so it works.

    I am using that child theme, the image is there and that is the place it should be read from.

    Thanks.

    #38321

    P O
    Expired Member
    Post count: 501
    This reply has been marked as private.
    #38322

    Simone
    Expired Member
    Post count: 3515

    In this way I see it working, as the default ../images/featured.png is not longer active

    #38324

    P O
    Expired Member
    Post count: 501

    Oh, I see.

    Thank you, I added something like that to my child theme and not its working.

    That not was a “now”. Dam auto correct!

    Thanks.

    #38325

    Simone
    Expired Member
    Post count: 3515

    Ahah.. I was kinda scratching my head since then 🙂

    #38326

    P O
    Expired Member
    Post count: 501

    And I was getting so confused! haha

    It was working since that message 🙂

    Thank you.

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount