• Resolved MoniqueOReilly

    (@moniqueoreilly)


    I can not get rid of the disclaimer in my car entries. I’ve tried clearing cache, deleting and adding the cars, and reinstalling car demon. Help!
    here is the text. I want it gone.
    ALTHOUGH THIS SITE CHECKS REGULARLY WITH ITS DATA SOURCES TO CONFIRM THE ACCURACY AND COMPLETENESS OF THE DATA,
    IT MAKES NO GUARANTY OR WARRANTY, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY WARRANTY OR MERCHANTABILITY
    OR FITNESS FOR PARTICULAR PURPOSE, WITH RESPECT TO THE DATA PRESENTED IN THIS REPORT. USER ASSUMES ALL RISKS IN USING ANY
    DATA IN THIS REPORT FOR HIS OR HER OWN APPLICATIONS. ALL DATA IN THIS REPORT ARE SUBJECT TO CHANGE WITHOUT NOTICE.
    thanks

    https://wordpress.org/plugins/car-demon/

Viewing 1 replies (of 1 total)
  • Plugin Author theverylastperson

    (@theverylastperson)

    Hi Monique,

    There is no pre-built option for editing the disclaimer.

    You will need to filter the single vehicle page and change it with some custom code.

    Here’s a quick example of some code you can add to your theme’s functions.php file.

    //= Filter the single vehicle page
    add_filter('car_demon_single_car_filter', 'my_custom_disclaimer_filter',10,2);
    
    function my_custom_disclaimer_filter($content,$post_id) {
    	// set your custom disclaimer to a variable
    	$custom_disclaimer = "This is what I want my disclaimer to say"; // change this text to your new disclaimer
    
    	// If new dislaimer isn't empty then replace the default
    	if (!empty($custom_disclaimer)) {
    		// $content is the default vehicle listing
    		// $post_id is the id for the vehicle being displayed
    		// Replace the first line with our $custom_disclaimer
    		$content = str_replace('ALTHOUGH THIS SITE CHECKS REGULARLY WITH ITS DATA SOURCES TO CONFIRM THE ACCURACY AND COMPLETENESS OF THE DATA,<br />', $custom_disclaimer, $content);
    		// Remove the rest of the original disclaimer
    		$content = str_replace('IT MAKES NO GUARANTY OR WARRANTY, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY WARRANTY OR MERCHANTABILITY<br />', '', $content);
    		$content = str_replace('OR FITNESS FOR PARTICULAR PURPOSE, WITH RESPECT TO THE DATA PRESENTED IN THIS REPORT. USER ASSUMES ALL RISKS IN USING ANY<br />', '', $content);
    		$content = str_replace('DATA IN THIS REPORT FOR HIS OR HER OWN APPLICATIONS. ALL DATA IN THIS REPORT ARE SUBJECT TO CHANGE WITHOUT NOTICE.', '', $content);
    	}
    	//return our changed content
    	return $content;
    }

    If you have any further questions please swing by our website and let us know.

    We only check this forum for bug reports right before and right after a new version has been released.

    Hope this helps,
    -j

Viewing 1 replies (of 1 total)
  • The topic ‘remove disclaimer from description’ is closed to new replies.