Nav menu (Max Mega Menu & Elementor) / Hook

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

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

Open Support Ticket
  • Author
    Posts
  • #480509

    maria
    Expired Member
    Post count: 35

    hello,

    I need help !!

    I built a site with V1. I built a new site with V2.
    In the new site:

    1. Nav menu – Max Mega Menu
    In V1 I used the plugin Max Mega Menu and it worked. Now, I have an error in the theme editor and the location (#location-switcher) doesn’t link. I deactivated all plugins except Max Mega Menu and Geodirectory and I had the same result.

    2. Nav menu – Elementor
    In V2 I used the plugin Elementor to have a submenu in pages and it worked. Now, it works but without formats (only as a list) in some GD pages.
    Search & Location & Add listing– OK
    Archive & Detail – without format
    But if I link to archive & search from location page categories (featured area) it works with list and also format – it duplicates !!??

    3. Nav menu – Conditional Menus
    I use the plugin Conditional Menus. Selecting * GD Archive / GD Details / Location / Search page * it works only in some GD pages.
    Search & Location & Add listing pages – OK
    Archive & Detail – without format

    4. Hook
    DETAIL PAGE // ADD WIDGET SIDEBAR → CODE SNIPPET
    register_sidebar( array(
    ‘id’ => ‘geodir-details-sidebar-top’,
    ‘name’ => ‘GD Detail Top Sidebar’,
    ‘before_widget’ => ‘<div class=”geodir-company_info geodir-details-sidebar-top”>’,
    ‘after_widget’ => ‘</div>’,
    ) );

    // Add Detail Top Sidebar Widget to Page
    function details_sidebar_top ( $sidebar_top_content ) {
    dynamic_sidebar(‘geodir-details-sidebar-top’);
    return $sidebar_top_content;
    }
    add_filter( ‘geodir_detail_page_more_info_html’, ‘details_sidebar_top’,10,1);

    I used this snippet in V1 and I would like to add a top sidebar before header, so I must change ‘geodir_detail_page_more_info_html’ but I don’t know what’s the hook…
    Can I have several top sidebars for each CPT?

    Thanks !!

    #480547

    Alex Rollin
    Moderator
    Post count: 27815

    1. The Change Location feature is a menu item now, like a menu link. You can add it to the menu easily. Open WP – Appearance – Menus – At the top of the screen select GeoDIrectory endpoints, and then the change location menu item.

    2. Are you using Elementor Pro theme builder? You can add whatever you want into your layouts. What is the problem exactly? It is a menu, right? So use Elementor to style the menu?

    3. You can use WP conditional tags for Single CPT and Archive CPT, or Search CPT. Is that what you are looking for?

    4. If you are using Elementor why do you need snippets to add layout options?

    #480566

    maria
    Expired Member
    Post count: 35

    Hello,

    Thanks. But…

    1. I know and the #location-switcher works. But if I use Mega Menu it doesn’t work. And the plugin editor do not display correctly too.

    2. Nav menu – Elementor
    I used Elementor to style a menu but it works only in some GD pages.
    Search & Location & Add listing– OK
    Archive & Detail – without format
    But if I link to archive & search from location page categories (featured area) it works with list and also format – it duplicates !!??

    3. Well, I dont know how to use WP conditional tags for Single CPT and Archive CPT, or Search CPT. So, I use a plugin – Conditional Menus – but I have the same problem: it works only in some GD pages.

    #480599

    maria
    Expired Member
    Post count: 35
    This reply has been marked as private.
    #480749

    Kor
    Moderator
    Post count: 16516

    Hi Maria,

    Thanks for your reply. Could you share your Website WP admin access here in private reply and also share those URL of page links you’re referring to?

    Thanks!

    #480818

    maria
    Expired Member
    Post count: 35
    This reply has been marked as private.
    #480956

    Alex Rollin
    Moderator
    Post count: 27815

    When I try to login I see ERROR: The password you entered for the username geodirectory is incorrect. Lost your password?

    #481021

    maria
    Expired Member
    Post count: 35
    This reply has been marked as private.
    #481093

    maria
    Expired Member
    Post count: 35

    hello

    5. I marked the cpt cinema – no location. Export listings and import the same file (update listing if post ID already exists):

    Total 74 item(s) found.

    74 / 74 item(s) could not be added due to blank title/invalid post type/invalid characters used in data.

    Row 2 Error: Not enough location info for address.

    Row 3 Error: Not enough location info for address.

    Row 4 Error: Not enough location info for address.

    Row 5 Error: Not enough location info for address.

    Row 6 Error: Not enough location info for address.

    #481151

    maria
    Expired Member
    Post count: 35
    This reply has been marked as private.
    #481176

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #481181

    maria
    Expired Member
    Post count: 35

    sorry. done.

    #481214

    Alex Rollin
    Moderator
    Post count: 27815

    Please disable that coming soon feature and any cache plugins on the site so we can take a look.

    If you need to hide the site choose a plugin that does not hide the site for admins after login so we can actually see the issue.

    #481215

    maria
    Expired Member
    Post count: 35
    This reply has been marked as private.
    #481223

    Alex Rollin
    Moderator
    Post count: 27815

    About the template rendering, you are not using Elementor Theme Builder. You must use Elementor theme builder on Archive, Search, and Detail page templates.

    About Max Mega Menu, I have flagged your topic for the developers to let us know if the “Change Location” feature can be used in a Max Mega Menu.

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