PDA

View Full Version : How to display all the menu buttons of main menu !



nirvano
December 28, 2017, 10:40 PM
hello ;)

please can you helpe me in this problem ! how to display all the menu buttons ?!
the script and configure it to hide the last button from main menu
how can I disable this feature
I want all the buttons to be displayed (4 buttons in all)
i use General Wide template
think you

Rudi
December 29, 2017, 04:58 AM
Hello,

As you can see on my screenshot there are more than 4 items in the main menu on demo wide

2671

it depends on the screen size of your device and item title length
it's better to shorten the titles of menu items

if you need to remove the add-listing button and free up some space for menu area
you should go to ftp > templates > your template > tpl > menus > main_menu.tpl
and remove or comment out {* ... *} the following peaces of code:



{foreach name='mMenu' from=$main_menu item='mainMenu'}
{if $mainMenu.Key == 'add_listing'}
<a class="add-property button" {if $mainMenu.No_follow || $mainMenu.Login}rel="nofollow" {/if}title="{$mainMenu.title}" href="{$rlBase}{if $pageInfo.Controller != 'add_listing' && !empty($category.Path) && !$category.Lock}{if $config.mod_rewrite}{$mainMenu.Path}/{$category.Path}/{$steps.plan.path}.html{else}?page={$mainMenu.Path }&amp;step={$steps.plan.path}&amp;id={$category.ID}{/if}{else}{if $config.mod_rewrite}{$mainMenu.Path}.html{$mainMen u.Get_vars}{else}?page={$mainMenu.Path}{/if}{/if}">{$mainMenu.name}</a>
{break}
{/if}
{/foreach}


and



{*if $mainMenu.Key == 'add_listing'}{assign var='add_listing_button' value=$mainMenu}{continue}{/if*}