Results 1 to 1 of 1

Thread: Getting a correct URL when image is present in child theme

  1. #1
    Thread Starter
    igerry's Avatar
    Join Date
    Jul 2012
    Thanked 0 Times in 0 Posts

    Getting a correct URL when image is present in child theme

    In creating a child Theme, I'd like to be able to change the default listing thumbnail to something that is in the child theme instead of the one in the Vantage template.

    Currently, this is the code in Vantage:

    function get_the_listing_thumbnail( $listing_id = '' ) {
    if ( empty( $attachments ) ) {
    	return html( 'img', array( 'src' => get_bloginfo('template_directory') . '/images/no-thumb-sm.jpg', 'class' => 'listing_thumbnail' ) );
    With a simple change of get_bloginfo('template_directory') to get_stylesheet_directory_uri() it will make it automatically retrieve the correct default thumbnail image in the child theme if it is present.

    I've changed it in the code I'm using but it will really help me and other users as well if the change is done in the core Vantage code.

    Hope it will be in the next version since it's a simple enough change.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. child theme image slider problem
    By megelah in forum ClassiEstate
    Replies: 0
    Last Post: October 30th, 2013, 05:17 AM
  2. Dimitris Child Theme functions.php breaks WP image uploader
    By thehenplanner in forum Help Using Vantage (Legacy)
    Replies: 3
    Last Post: June 10th, 2013, 06:54 AM
  3. Facebook Share Image Not Correct
    By plivans in forum ClassiPress General Discussion
    Replies: 3
    Last Post: April 14th, 2013, 07:58 AM
  4. Child theme - image mapping?
    By rodeoramsey in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: August 26th, 2010, 06:09 AM