logo

Extra Block Types (EBT) - New Layout Builder experience❗

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

❗Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll

How to correctly insert a search form into the top menu?

22/02/2025, by Anonymous (not verified)
Forums

Hello. Could you please tell me how to correctly insert a search form into the top menu in the AT Subtheme theme, if it is not originally provided there?

Here's a screenshot with the block regions.

[URL=http://www.radikal.ru][IMG]http://i058.radikal.ru/1305/ef/104716d693d3.jpg[/IMG][/URL]

I read online that I need to insert the line page.tpl.php in the appropriate section: <?php print $search_box?>, but the thing is, for someone who doesn't know PHP, like me, this turned out to be quite complicated. When I tried to insert it in the right place, the search form still appeared either above or below the menu.

This is the part of the file page.tpl.php

<!-- Navigation elements -->

<?php print render($page['menu_bar']); ?>

  

<?php if ($primary_navigation): print $primary_navigation; endif; ?>

  

    <?php if ($secondary_navigation): print $secondary_navigation; endif; ?>