Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Modify output of get_navigation
#4
(2015-08-30, 08:42:30)vallhund Wrote:
(2015-08-30, 00:41:32)frixelsolutions Wrote: Please let me know how to do this in GetSimple, if it is even possible. Thank you!

In my one-page theme, I used the menu_data():



PHP Code:
$menu "";

foreach (
menu_data() as $page) {
 
 $menu .= "<li class='".$page['slug']."'><a href='#'>".$page['menu_text']."</a></li>";
}

echo 
$menu


Quite useful and easy.

Thank you - that's the solution I was looking for. Will update the theme with doing this right tomorrow.
Reply


Messages In This Thread
RE: Modify output of get_navigation - by shawn_a - 2015-08-30, 03:36:18
RE: Modify output of get_navigation - by vallhund - 2015-08-30, 08:42:30
RE: Modify output of get_navigation - by frixelsolutions - 2015-08-31, 03:26:53



Users browsing this thread: 1 Guest(s)