geodirectory-functions/

This topic contains 7 replies, has 3 voices, and was last updated by  Alex Rollin 5 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #466582

    Marcel Warenburg
    Expired Member
    Post count: 24

    Hello,

    I I want to customize the functions in the geodirectory-functions/ map how do I go about that?

    Thank you,
    marcel

    #466595

    Kor
    Moderator
    Post count: 16516

    Hi Marcel,

    Thanks for your post. Could you tell us what exactly are you trying to achieve so that we could point you the right direction?

    Thanks!

    #466615

    Alex Rollin
    Moderator
    Post count: 27815

    We have a doc about customizing here: https://wpgeodirectory.com/docs/customizing-geodirectory-templates/

    Let us know if you have any specific questions

    #466639

    Marcel Warenburg
    Expired Member
    Post count: 24

    De doc is about templates. The function files contain pieces of code (for example the review buttons, favorite buttons etc . .). I want to change those pieces of code without editing the core files. Can the function files be added to the child theme the same way you can add the template files? Or be overridden some other way?

    #466679

    Alex Rollin
    Moderator
    Post count: 27815

    How do you want to change the favorite button? The review button?

    Usually overrides are done with filters and hooks and actions.

    You can try our codex or search our forum for ‘favorite hook’ for examples:
    https://wpgeodirectory.com/codex/codex/

    #467571

    Marcel Warenburg
    Expired Member
    Post count: 24

    Hello,

    Thank you, I a not the familiar yet with filters hooks and actions. can you give an example for this:

    I want to move the H1 title of a detail-page form the top of the slider to the bottom. How would I do that using a filter?

    Can you give any suggestion?

    #467572

    Marcel Warenburg
    Expired Member
    Post count: 24

    file enclosed

    #467679

    Alex Rollin
    Moderator
    Post count: 27815

    You should really upgrade to GDV2 which makes this possible with shortcodes or blocks in the WP Pages used as templates.
    You can search our forum for hundreds of examples of this kind of customization:
    https://www.google.com/search?q=site:wpgeodirectory.com+move+title+detail

    https://wpgeodirectory.com/try-geodirectory-v2/

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

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

Open Support Ticket