Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2181886
CSS code for a default Thumbnail image not working in related_posts.php
Closed

Comments

  • CoastNewsGroup started the conversation

    We need a CSS Code to place a default image in place when no image is available in your Related Posts option of the PenNews Theme design in related_posts.php. No code is working to produce a default image in the Related Posts section of a post page.

  •  501
    Penci replied

    Hi,

    Please go to pennews/inc/extras.php file and go to line is 1361 and change default image as screenshot 

    https://prnt.sc/pioizn

    After you change code, please backup your file .


    Best Regards,

    PenciDesign

  •   CoastNewsGroup replied privately
  •   CoastNewsGroup replied privately
  •  501
    Penci replied

    Hi,

    It appears that your image default error. 

    https://www.thecoastnews.com/wp-content/themes/pennews/images/DSCF1743.jpg
    
    Please send me your image you want use to image default. I will check it help you. Best Regards, PenciDesign
  • CoastNewsGroup replied

    Here is the default image we would like to use. Thank you for helping us set our default image so our thumbnail images in the Related Posts will not be blank.

  •  501
    Penci replied

    Hi,

    I go to pennews/inc/extras.php file and go to line is 1361 and change default image  help you as screenshot  http://prntscr.com/pkck6y

    Please backup your file before you update PenNews theme and plugins come from  PenNews theme.

    Please check it again


    Best Regards,

    PenciDesign

  • CoastNewsGroup replied

    This is great! Thank you! 

    Another question ... Is there a way to create a code so if a story in related posts does not have image that it will not populate the related post section? Again, thank you for this help with the theme.

  •  501
    Penci replied

    Hi,

    I'm not clear about the question, please tell me about the question and send me screenshot the issue.


    Best Regards,

    PenciDesign

  • CoastNewsGroup replied

    Please look at the screen shot attached. You can see that the Key Words in the story and the Related Posts do not match. Is there a code we can add to our site that would actually give us Related Posts that actually Relate to the story's post page. Please go to our site at https://www.thecoastnews.com/childrens-museum-in-escondido-unveils-grin-land/ and look at how the Related Posts do not actually refer back to the stories posted. Please let us know how we can fix this so the Related Posts do make sense with the posted story?

  •  501
    Penci replied

    Hi,

    Please try  go to Customizer > Single Post Options then scrolldown and choose "Display Related Posts By" option as screenshot  http://prntscr.com/pmi783


    Best Regards,

    PenciDesign

  • CoastNewsGroup replied

    We do have it set to categories yet the stories coming up are not in the same categories...


  •  501
    Penci replied

    Hi,

    I checked on your site and i saw the post of related post show post of category.

    Post : https://prnt.sc/ppoimu

    Related post: https://prnt.sc/ppoj2nhttps://prnt.sc/ppojca, https://prnt.sc/ppojjhhttps://prnt.sc/ppojoa

    Please check it again and send me screenshot for the issue. I will check it help you.


    Best Regards,

    PenciDesign