add link to custom field

This topic contains 2 replies, has 2 voices, and was last updated by  fbernall 6 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #453038

    fbernall
    Expired Member
    Post count: 53

    I have a custom field called “Board Certification” the user would enter the name of their board on the add listing page. What I would like to have, is a link, not set by the user, but one that appears on that particular custom field to the end user (site visitor), which when clicked, a pop up would inform them why it is important their practitioner is board certified. I’ve tried the url field, but it shows on the add listing page. I’m not sure if this has to be hardcoded into the template or if I can do it with one of those hooks you offer..

    I’ve searched for a filter, or action, or function, not sure which, and can’t seem to find it.

    Thank you..

    #453048

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    I am not sure there is a built in solution that meets your needs exactly, certainly not with regard to launching a popup.

    My first idea for how to go about this is that you should write some custom HTML in a text widget and place the widget to display on the detail page. You would have total control over the elements and markup. That could be accomplished without editing templates.

    If you want a project then you could also make a predefined field that does exactly what you want, and an example of that is here: https://wpgeodirectory.com/custom-field-improvements-in-new-v1-6-6/

    Either one of those will get you part way, but you may still need additional pieces for the popup. You can also edit the listing-detail.php template and add what you need in there. You can find instructions for modifying templates here: https://wpgeodirectory.com/docs/customizing-geodirectory-templates/

    Let us know how it goes, and write back if you have more questions

    #453051

    fbernall
    Expired Member
    Post count: 53

    Thanks Alex. This gets me going… Will report back..

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