Submit Listing Button on Add Listing Page

This topic contains 5 replies, has 4 voices, and was last updated by  Stiofan O’Connor 5 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #480693

    BJ Bowen
    Full Member
    Post count: 73

    We’d like custom text at the top of the Add Listing Page.

    We can’t modify the add-listing.php like we did before.

    We added text to the Page> Add Listing.

    When the form is submitted (Submit Listing Button), the page refreshes to the same URL but with an alert. The problem is that our text “Welcome…” is still there because it’s on the page.

    Possible solutions:
    Option 1: We hook into the button and make that button go to a different page (like a confirmation page).
    Option 2: We hook into “geodir_add_listing_form_start” and add All of our copy in the functions.php file. This is NOT what my client wants.

    I have successfully hooked into “geodir_add_listing_form_start”, removed and replaced “add_listing_mandatory_note” .

    I cannot successfully hook into the add_listing_form function and change that button — I can’t find any documentation on where this is hooked.

    Can you think of any other options that I haven’t considered?

    Thanks

    #480741

    Kor
    Moderator
    Post count: 16516

    Hi BJ Bowen,

    Thanks for your post. Are you using GDV2? If you’re, you can now customize the “Add Listing” page easily by editing the “Add listing” page template https://wpgeodirectory.com/docs-v2/geodirectory/page-design/

    #480815

    BJ Bowen
    Full Member
    Post count: 73

    I have read that page 100 times by now.

    Please read what I wrote.

    Basically, when the add listing form is submitted, we have a confirmation box that shows up, but it keeps the Page Content of the Add Listing Page because it does not go to a different URL.

    This is confusing to the USER.

    Please read my question and respond again.

    #480860

    Kor
    Moderator
    Post count: 16516

    Hi there,

    I will forward this to a developer for a second opinion.

    Thanks!

    #480940

    Alex Rollin
    Moderator
    Post count: 27815

    It is true that text added to the add listing page will show on the confirmation page.

    In V2 there isn’t a confirmation page template. I will flag your question for the developers in case they have a workaround.

    #481094

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Next release the add listing will have a param for specifying the container to replace so you can set it to replace the outer wraper (including other text) something like this:

    [gd_add_listing container=".entry-content"]

    Thanks,

    Stiofan

Viewing 6 posts - 1 through 6 (of 6 total)

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

Open Support Ticket