Advertisement:

Author Topic: How to add menu  (Read 2311 times)

suresh1983

  • Jr. Member
  • **
  • Posts: 96
How to add menu
« on: February 19, 2014, 09:05:17 pm »
Hi,

Please let me know how I can add menu items to all my pages position should be just below the search fields in the home page.

This position should be the same for all the pages.

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: How to add menu
« Reply #1 on: February 20, 2014, 01:45:16 am »
@suresh1983
You can place it into search.php file in your theme folder.
Using FF Firebug you can track under which element it should be placed ;)

calinbehtuk

  • Sr. Member
  • ****
  • Posts: 450
Re: How to add menu
« Reply #2 on: February 20, 2014, 12:03:54 pm »
You can create a file called meniu.php where you enter the code for your menu. This file must you insert it in your theme. And here it is simple, you just need to put this line of code in the page you want it to appear that menu.
<?php osc_current_web_theme_path('meniu.php'); ?>
For example on the home page you enter it after
<?php osc_current_web_theme_path('inc.search.php'); ?> and should appear just below the search fields.
Do the same for the rest of the pages where you want to show this menu.

suresh1983

  • Jr. Member
  • **
  • Posts: 96
Re: How to add menu
« Reply #3 on: February 20, 2014, 06:35:07 pm »
@ frosticek

Hi,

Please let me know what should I place in search.php

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: How to add menu
« Reply #4 on: February 20, 2014, 07:42:16 pm »
@suresh1983

I supposte menu items.

Quote
Please let me know how I can add menu items to all my pages position should be just below the search fields in the home page.