Filters in on map treeview menu

This topic contains 8 replies, has 2 voices, and was last updated by  Paolo 8 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #135625

    Silks
    Full Member
    Post count: 305

    Hello, I understand that this may be a long shot but is there any way i can add custom fields (e.g. pet friendly) to the treeview categories menu on the map?

    it would be nice to be able to use some other filters on the map other than just categories.

    or are there hooks available now so that i might be able to add pet friendly to the map bubble without editing core files that will be overwritten with updates?
    as in https://wpgeodirectory.com/support/topic/show-full-address-in-map-bubble/

    Thank you

    #135954

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    sorry that’s not possible without a major customization.

    Thanks

    #136284

    Silks
    Full Member
    Post count: 305

    ok thanks thought so

    1.) https://wpgeodirectory.com/support/topic/link-to-post-from-map-bubble-infowindow/
    I tried the code above and it worked! only thing i noticed is that when there is a large amount of content in the bubble a scroll bar is added to the side of the bubble, but Read More was below the scrollable content and hence not visible. can it be moved to be part of the scrollable content??

    2.) does this mean there are now hooks to add content to the map bubble??
    i would really like to get pet friendly to show in the map bubble, can i do it from my child themes functions.php?

    do you mind providing an example of the code i might need to use. HTML varialble name = Pet_Friendly

    #136341

    Silks
    Full Member
    Post count: 305

    1.) Nevermind i added some css adding padding to the bottom of the scroll section and made the fade height a little shorter as elements under the fade are unclickable

    
    
    .geodir-bubble-meta-side{
        padding: 0 5px 15% 5px;
    }
    .geodir-bubble-meta-fade{
        height: 10%;
    }

    only problem is there is a little more white space in the bubbles with little content (not requiring the scroll bar) not sure if there is a solution for this?

    2.) still has me stumped… help here would be much appreciated thank you

    #136692

    Paolo
    Site Admin
    Post count: 31206
    #137609

    Silks
    Full Member
    Post count: 305

    Thanks for the link @paolo

    looks like recent updates have moved the position of the code in the php file. do you mind stipulating between what lines of code i need to copy?

    Thank you

    #137967

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    just search for

    function geodir_get_infowindow_html

    Thanks

    #138177

    Silks
    Full Member
    Post count: 305

    Thanks for your time but unfortunately i think its a little advanced for me, already tried copying that function but when i do there are a bunch of syntax errors that break my site. Thought maybe there might have been only specific lines within that function i needed.

    #138483

    Paolo
    Site Admin
    Post count: 31206

    If you wish I can move this in the Job sections of the forum.

    Let us know,

    Thanks

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