Featured Wordpress Themes

php file to edit the topmenu bar in Aspiration theme
  • Hello People,

    For my website i want to use a main topmenu with 3 buttons, and when i click one of these buttons, this page gets a new menu with different buttons. But to make this possible, i have a few lines of code, that i must add to the file (php or html or something like that) where the main menu of the Apiration theme is coded. but my point is: In which file do i need to add this piece of code? I searched almost all the files, but i couldn't find the code of the main menu.

    So my question is: which file can i find the code that renders the main menu in the Aspiration Theme?

    Thank you in advance!

    Kind regards,

    J.bond


    For faster issue resolution please provide:
    URL to your website: http://109.70.3.233/~buitenhuis/
    Browser version: Firefox 13.0.1
    Theme version: Aspiration 1.5
  • 2 Comments sorted by
  • Hi, in this template menu is generated in file ./templates/main-layout.php.
    Here is the macro for creating menu:
    {menu 'theme_location' => 'primary', 'container' => 'nav', 'container_class' => 'mainmenu', 'menu_class' => 'menu clearfix' }.
    For generating menu is used default wordpress function wp_nav_menu
    http://codex.wordpress.org/Function_Reference/wp_nav_menu

    Regards, Ivan.


    AIT-Themes.com
    ivo@ait-themes.com
    Use please email above if your Admin or FTP credentials are required by me. Always paste url of conversation into mail.
    interesting links: how to update theme ? | How to modify css? | Shortcodes