Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Reply To: ItemActive on page load with extra PHP vars

Home Forums Older releases 1.0.x ItemActive on page load with extra PHP vars Reply To: ItemActive on page load with extra PHP vars

#8644
RonP
Participant

That is ideed what I did:

Added extra ID to <a> element of menu items (id=menuItem_1, id=menuItem_2, id=menuItem_3, etc.)

Then alter style of menu item via js at the end of php script:

echo("
  <script> 
	$(document).ready(function() { 
	  $('#menuItem_4').css({'background-color': '#2d8ebb', 'color': '#fff'});
	}); 
  </script>
");