New Landing How can we help? Themeforest Theme Support Dante Modifying PHP for Mega Menu

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Dante
  • #191095
    Jackcoldrick
    Member
    Post count: 84

    Hi Guys,

    I’m sorry to bother you again but I’m wondering where within the Theme the php for the mega menu functionality exists?

    I’d like to modify it slightly so that I can display the parent menu name within the mega menu itself.

    Could you please point me in the right direction for this?

    I was looking at the sf-megamenu folder in the swift-framework directory although I think that relates to the back end, am I correct?

    Thank you,

    #191099
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Yes the front end is in sf-header.php

    – Kyle

    #191101
    Jackcoldrick
    Member
    Post count: 84

    Is the sub menu constructed within sf_main_menu() function?

    #191103
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Yes

    – Kyle

    #191109
    Jackcoldrick
    Member
    Post count: 84

    I’m still having trouble locating the block of code relating to the mega menu construction, I’ve looked through the sf_main_menu() function a dozen times. If I want to edit the actual content of the mega menu where do I have to go?

    #191110
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ohh sorry, to Appearance > Menus

    – Kyle

    #191112
    Jackcoldrick
    Member
    Post count: 84

    No your grand Kyle, Appreciate the help, however I’m looking for the code within the actual php itself as I’d like to modify in Child theme. Does that make any sense?

    #191119
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Can you please explain what you’re trying to do? I’m completely lost

    – Kyle

    #191122
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    If you want to edit the html of the mega menu go to swift-framework/sf-megamenu

    – Kyle

    #191128
    Jackcoldrick
    Member
    Post count: 84

    I would like to find the code within the theme files responsible for building the mega menu. I’ve currently narrowed it down to the sf-header.php file, and from what you said above the sf_main_menu() function.

    I can see that this is controlling the output of the menu itself as I can modify the code and see the output is changed. Or including a die() statement prevents menu from being output. That’s all fine. However I am trying to find the code responsible for the actual mega menu. Where is the HTML for the mega menu generated within the php?

    The reason I would like to find this code is because I’d like my mega menu to look something like this: (see attached 1.png).

    I would like to output the parent menu name in the mega menu, like the “SHOP” in red in the attached image. In order to do this I need to modify the function responsible for generating the mega menu HTML surely?

    Attachments:
    You must be logged in to view attached files.
    #191134
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    See my previous reply

    – Kyle

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register