Weird behaviour for Popup Form

This topic contains 6 replies, has 3 voices, and was last updated by  Giri 8 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #252072

    alexi84
    Expired Member
    Post count: 38

    Hi,

    There seem to be a weird behaviour with the popup-form template. Firstly, I managed to override it by copying the template to my root template instead of the /geodirectory folder but when I test it out on a mobile divide (BlackBerry Z30) it uses the GeoDirectory’s plugin path template. When I check the Ajax function that’s being called it seems it uses “require_once(geodir_plugin_path() . ‘/geodirectory-templates/popup-forms.php’);” to include the form.

    How can I override this template without having to edit the GD plugin? When I try to remove the action and re-add it in my function.php I get an Error 500.

    #252613

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    I’m not 100% sure this is possible, I asked to a developer to let us know.

    Thanks

    #252615

    Giri
    Expired Member
    Post count: 3155

    Please provide the link to test the problem

    #252623

    Giri
    Expired Member
    Post count: 3155

    alexi84, If you want I can add a filter to override template path.

    #252702

    Giri
    Expired Member
    Post count: 3155

    Hi I have changed some code to override from theme. It will be available in the next version

    Please take a look at this changes and let me know if you need any help

    https://github.com/GeoDirectory/geodirectory/pull/274/files

    Please note you need new templates should go here

    
    
    
    /wp-content/themes/theme_name/geodirectory/popup-forms.php

    In other words Don’t put the files in theme root. Put inside geodirectory folder.

    #252850

    alexi84
    Expired Member
    Post count: 38

    Hi Giri,

    Thanks a lot. Your changes fixes my problem.

    #253125

    Giri
    Expired Member
    Post count: 3155

    You are welcome..

Viewing 7 posts - 1 through 7 (of 7 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