How to hide search menu
Quote from Asgaros on October 26, 2019, 12:23 pmHello @suryoes
Have you tried to disable the search-functionality in the settings (Forum -> Settings -> Features)?
Hello @suryoes
Have you tried to disable the search-functionality in the settings (Forum -> Settings -> Features)?
Quote from tehnicus on December 28, 2019, 1:52 pm@suryoes if you want to delete that whole section at the top (what I did also), because it interferes with your layout just go to the plugin section in your WP dashboard, go edit the forum and look for INCLUDES/forum.php
At line 1631 you will find the following and you just need to comment it out like I did below.
/* echo ‘<div id=”forum-header”>’;
echo ‘<div id=”forum-navigation-mobile”>’;
echo ‘<a>’;
echo ‘<span class=”fas fa-bars”></span>’;
echo __(‘Menu’, ‘asgaros-forum’);
echo ‘</a>’;
echo ‘</div>’;echo ‘<span class=”screen-reader-text”>’.__(‘Forum Navigation’, ‘asgaros-forum’).'</span>’;
echo ‘<div id=”forum-navigation”>’;
echo ‘<a class=”home-link” href=”‘.$this->get_link(‘home’).'”>’.__(‘Forum’, ‘asgaros-forum’).'</a>’;$this->profile->myProfileLink();
$this->memberslist->show_memberslist_link();
$this->notifications->show_subscription_overview_link();
$this->activity->show_activity_link();$this->showLoginLink();
$this->showRegisterLink();
$this->showLogoutLink();do_action(‘asgarosforum_custom_header_menu’);
echo ‘</div>’;
$this->search->show_search_input();echo ‘<div class=”clear”></div>’;
echo ‘</div>’;*/I wish there was a way to disable this in the forum admin section.
@suryoes if you want to delete that whole section at the top (what I did also), because it interferes with your layout just go to the plugin section in your WP dashboard, go edit the forum and look for INCLUDES/forum.php
At line 1631 you will find the following and you just need to comment it out like I did below.
/* echo ‘<div id=”forum-header”>’;
echo ‘<div id=”forum-navigation-mobile”>’;
echo ‘<a>’;
echo ‘<span class=”fas fa-bars”></span>’;
echo __(‘Menu’, ‘asgaros-forum’);
echo ‘</a>’;
echo ‘</div>’;
echo ‘<span class=”screen-reader-text”>’.__(‘Forum Navigation’, ‘asgaros-forum’).'</span>’;
echo ‘<div id=”forum-navigation”>’;
echo ‘<a class=”home-link” href=”‘.$this->get_link(‘home’).'”>’.__(‘Forum’, ‘asgaros-forum’).'</a>’;
$this->profile->myProfileLink();
$this->memberslist->show_memberslist_link();
$this->notifications->show_subscription_overview_link();
$this->activity->show_activity_link();
$this->showLoginLink();
$this->showRegisterLink();
$this->showLogoutLink();
do_action(‘asgarosforum_custom_header_menu’);
echo ‘</div>’;
$this->search->show_search_input();
echo ‘<div class=”clear”></div>’;
echo ‘</div>’;*/
I wish there was a way to disable this in the forum admin section.
Quote from tehnicus on December 28, 2019, 2:16 pmOne more thing, if you comment the top section out the FORUM title can be commented out also… it’s just to wide to sit there.
So, I commented out line 720
$this->showMainTitleAndDescription();
in the same forum.php file.
One more thing, if you comment the top section out the FORUM title can be commented out also… it’s just to wide to sit there.
So, I commented out line 720
$this->showMainTitleAndDescription();
in the same forum.php file.