Looking for geodir_full_page hook

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

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

Open Support Ticket
  • Author
    Posts
  • #158694

    EH
    Expired Member
    Post count: 96

    If I wanted to put something before the class geodir_full_page, what hook would I use?

    Thanks!

    #158732

    EH
    Expired Member
    Post count: 96

    Or better yet can someone point me the the direction of the available hooks to use?

    #158733

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you can use something like:

    
    
    add_action('geodir_top_content', 'my_function', 30, 1);
    function my_function($page) {// your code here}

    That should work, if it doesn’t, try changing priority from 30 to 10.

    Let us know,

    Thanks

    #158783

    EH
    Expired Member
    Post count: 96

    This didn’t work its still putting the content below this class geodir_full_page. I created a third navigation and I’m putting the change location inside in. I would like it to appear above the map on the location page.

    Do you have a listed of available hooks for me to try out?

    #158786

    Paolo
    Site Admin
    Post count: 31206

    Please try :

    
    
    add_action('geodir_wrapper_open', 'my_function', 4, 1);
    function my_function($page) {// your code here}

    This will put it before the GeoDir wrapper.

    Let us know if this works.

    Thanks

    #158796

    EH
    Expired Member
    Post count: 96

    That didn’t seem to work either. Here is the site: http://new.electronichouse.com/location/

    #158845

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    please provide admin credentials and we will have a look.

    Thanks

    #158874

    EH
    Expired Member
    Post count: 96
    This reply has been marked as private.
    #158882

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you should have mentioned that you are using Genesis. For compatible themes we already moved things around.

    I believe you should use : genesis_after_header

    Not a GD hook in this case…

    Cause that is what we are using to add back the top section:

    
    
    add_action('genesis_after_header', 'gd_genesis_compat_add_top_section_back', 11);
    

    Thanks

    #158888

    EH
    Expired Member
    Post count: 96

    The only problem with that is then it will show up on sections outside the directory. The directory is only one piece of this site. Can I limit it somehow?

    #158890

    EH
    Expired Member
    Post count: 96

    I have another idea. Change I have the location switch show in the advanced search options?

    #158938

    Paolo
    Site Admin
    Post count: 31206

    hi,

    no that is not possible. The location switcher cannot appear in the advance search filters.

    Given that is a menu, why don’t you add it as a widget at the top of the top section?

    Otherwise you can use a conditional tag to add it to genesis_after_header.

    if(geodir_is_geodir_page()) {// add the menu }

    Let us know how you went,

    Thanks

    #158952

    EH
    Expired Member
    Post count: 96

    I was doing it through the CSS on the body class .geodir-page but your way will work too. Thanks!

    #159023

    Paolo
    Site Admin
    Post count: 31206

    You are welcome 🙂

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

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

Open Support Ticket