Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16811

    Hi there, working for a client using the propulsion theme.

    I would like to have the main menu positioned under the slider.. Is this possible?

    If so how can i change it’s position?

    Thank you…

    Ben

    #92963

    This is not easily possible because it would require a complex logic in the background (you’d need to check if a standard page template, a blog template, etc, is used or if a dynamic template is used and if it contains a slideshow, etc.). In addition some css adjustments would be required and you’d need to add the various slideshow configurations to header.php (which requires conditionals, etc.).

    #92964

    Hi Dude!

    It concerns a dynamic template called “front page” which i found when i installed the demo version.

    Eventually i want to have this lay-out at every page…

    Please have a look at the following page:

    http://onzekindertherapeut.nl/wp1979/

    Thanx again!

    #92965

    Hi,

    Duplicate the header.php then rename the duplicated header.php to header-dynamic.php. Edit header-dynamic.php then find this code and remove it

    echo "<div class='main_menu' data-selectname='".__('Select a page','avia_framework')."'>";
    $args = array('theme_location'=>'avia', 'fallback_cb' => 'avia_fallback_menu', 'max_columns'=>4);
    wp_nav_menu($args);
    echo "</div>";

    Open template-dynamic.php and find this code

    get_header();

    Replace it with this

    get_header( 'dynamic' );

    Now find this code

    $template -> display();

    Below it paste this one

    echo "<div class='main_menu' data-selectname='".__('Select a page','avia_framework')."'>";
    $args = array('theme_location'=>'avia', 'fallback_cb' => 'avia_fallback_menu', 'max_columns'=>4);
    wp_nav_menu($args);
    echo "</div>";

    Note that the menu will be place below any element you set on the Template Builder.

    Regards,

    Ismael

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

The topic ‘Change position main menu’ is closed to new replies.