Topic Closed
marcel
26 Posts

Hi,

I would like to add an ID to the first ul of the menu (<ul class="menu_top">). Since this is the only output <?php gpOutput::Get('TopTwoMenu'); ?> when building a new template, is there a way to add the ID "menu'' to the ul?

Gr, Marcellus

5 years ago#7518

juergen
1.5K Posts
55.9K Downloads
16 Plugins
design, web development & visual effects

Look e.g. here /themes/Bootswatch_Flatly/4_Sticky_Footer/template.php

<?php
  $GP_ARRANGE = false;
  $GP_MENU_CLASSES = array(
    'menu_top'            => 'nav navbar-nav',
    'selected'            => '',
    'selected_li'        => 'active',
    'childselected'        => '',
    'childselected_li'    => '',
    'li_'                => '',
    'li_title'            => '',
    'haschildren'        => 'dropdown-toggle',
    'haschildren_li'    => 'dropdown',
    'child_ul'            => 'dropdown-menu',
    );
  gpOutput::Get('TopTwoMenu'); //top two levels
?>

I don't know a possibility to add an ID but a unique classname should also do the trick.

 

Edited: 5 years ago#7521

marcel
26 Posts

Hi Juergen,

Thanks! this will work.

Grt. Marcellus

5 years ago#7523

juergen
1.5K Posts
55.9K Downloads
16 Plugins
design, web development & visual effects

You're welcome.

BTW: You could also wrap the navigation with a <div id="mymenu"> in the template and target it using

CSS:

#mymenu ul {
  /* your styles */
}

jQuery:

$("#mymenu ul>li").hover( function() {
  /* do sth. on mouseover */
}, function() {
  /* do sth. on mouseout */
});
Edited: 5 years ago#7525

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register