Designing and Development > SMF Support - Simple Machine Forums
remove search box and news line
TheStig:
I use the template PremiumMGC on my forum but I whant to remove some items at the top.
I will remove the line search and News.
What code do i need to remove?
Dilip:
To remove news, simply delete it from Admin Control Panel.
TheStig:
I do, but then there is only the row: news avalible
TheStig
Ricky:
You can disable news from Admin --> Configuration --> Current theme
Disable Enable random news line in the forum header:
Or you can remove complete code from template file..
To remove news search for following in Themes/premiummgc/index.template.php
--- Code: --- <div class="news normaltext">';
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<strong>', $txt['news'], ': </strong>', $context['random_news_line'], '';
echo '
</div>
--- End code ---
and remove it.
TheStig:
Fixed, the lines are gone.
No more questions :-)
Thanks Ricky
Navigation
[0] Message Index
[#] Next page
Go to full version