• Resolved Abe

    (@abu117)


    I am having an issue where I post a Facebook link from a vehicle details page and rather than posting the information about the vehicle in the details page, it posts information about a vehicle in the “Other Great Deals”.

    Is there a way to simply remove the call for this? If so, what page and code would I be removing?

    Thanks for any help.

    Abe

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author theverylastperson

    (@theverylastperson)

    Hi Abe,

    Unfortunately there is no built in option to turn off the ‘Other Great Deals’ in the included templates files.

    The best method to accomplish this is to create your own custom single-cars_for_sale.php file and put it in the root of your theme. You can use the one from Car Demon as a template to get you started. You’ll find it in the theme-files folder.

    Copy it over to your theme, then go to line 115 and remove it. It should look like this;

    <?php echo car_demon_display_similar_cars($vehicle_details['decoded_body_style'], $post_id); ?>

    Then go to Dashboard->Appearance->Car Display Options
    set Vehicle Display Style to ‘Content Replacement’
    Then go to Dashboard->Cars For Sale->Car Demon Settings
    Under ‘Style Options’ make sure ‘Use included theme files’ is set to yes.

    In theory this should force Car Demon to use your themes Vehicle Page while still allowing it to use the included vehicle listing pages.

    Hope this helps,
    -j

    Thread Starter Abe

    (@abu117)

    hmmm..I tried that….didn’t work out. So, I reverted back.

    Here’s what I am seeing, going back to my original issue. For an example, please go to this page: http://creditdrivers.ca/cars-for-sale/2011-kia-forte5-sx-luxury – you will see a light brown coloured Kia Forte. Now, using this same url, paste that same link into any Facebook post. What seems to come up for me (and others who I’ve asked to try) is a red Forte which has been deleted from the car inventory. How can it be pulling this vehicle information from the inventory, when it no longer exists?

    Thanks for any help again Jay 🙂

    Abe

    Thread Starter Abe

    (@abu117)

    In fact, when I try to post any vehicle’s url, that same red Kia Forte comes up. Is this maybe a weird Facebook caching issue, where it pulls the red vehicle from its cache because we posted from this same domain before?

    I have tried this same thing in my own Facebook account – the same thing. I tried a different browser, that I have never used for Facebook before and the same thing occurs.

    Plugin Author theverylastperson

    (@theverylastperson)

    Oh, I see what’s happening. The link and title to the vehicle are correct, but Facebook is getting the wrong vehicle photo. Sorry for the confusion, I never fully logged into facebook so it never showed me the photo, just the title and description of the link.

    We had an issue like this about a year ago after Facebook made some changes. Let me dig into the code a bit and see if I can find a solution.

    brb

    Thread Starter Abe

    (@abu117)

    you rock 🙂

    Plugin Author theverylastperson

    (@theverylastperson)

    Bob Dylan rocks, I just roll 😉

    Let’s give this a try. Go to your theme’s function.php file and add the following snippet of code.

    add_action('wp_head', 'car_demon_facebook_meta');

    You may need to try this on a vehicle you haven’t checked yet, my understanding is that FB will cache images for an specified time and if you’ve already tried sharing then it might pull from its cache.

    Let me know if that works.

    -j

    Thread Starter Abe

    (@abu117)

    Yup, it seems to be working now. And I still think you rock !

    According to a post on this page, it could take 3 to 5 years for the Facebook Cache to be flushed? Yikes. http://stackoverflow.com/questions/3845095/how-long-is-facebook-caching-the-sharing-thumbnails

    On a completely unrelated matter (unrelated to you) could I ask one more question? I am getting no replies at wordpress.org on this. I have another site, http://parksvilleoilchange.com/ – it is built using the Customizr theme. I have numerous sites using this same theme, but for some reason this one is messing up. The home page loads fine, but any other page seems to have lost it’s styling? Any idea where I can get help on this? Or any thoughts on what I can check? I know this is not within your scope of work…but maybe you may have an idea of what I can check or who / where I can ask?

    Thanks again for all your help Jay. Is there a place where I can post a testimonial?

    Plugin Author theverylastperson

    (@theverylastperson)

    Thanks for the kind words, they’re much appreciated.

    I took a quick look at http://parksvilleoilchange.com/

    It doesn’t look like jQuery-ui is loading.
    It’s trying to load it from;
    wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.10.4

    But that isn’t correct. I believe it should be;
    wp-includes/js/jquery/ui/core.min.js?ver=1.10.4

    I would assume it’s a conflict with a plugin, you might try disabling them one at a time (with fingers crossed). I’ll bet that solves it or at least tells you which one is causing the issue.

    If that doesn’t work try adding a plugin like;
    https://wordpress.org/plugins/jquery-ui-widgets/

    It should force it to load for you…but it’ll still be trying to load the bad file, so it isn’t a 100% fix it’ll just (hopefully) get the theme to work, you should still debug the issue.

    hope that helps.

    Thread Starter Abe

    (@abu117)

    I tried that – no joy. I also disabled all plugins and tried a default theme, still messed up.

    Then I tried this: I set my permalinks back to default, saved and then saved back to “post name”. All is working again. Go figure.

    I can sleep now 🙂

    Thanks Jay,

    Abe

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Remove the "Other Great Deals" area?’ is closed to new replies.