Webmaster's Community

Designing and Development => Open Source => SMF Support - Simple Machine Forums => Topic started by: TheStig on April 14, 2012, 10:26:32 AM

Title: remove search box and news line
Post by: TheStig on April 14, 2012, 10:26:32 AM
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?
Title: Re: remove search box and news line
Post by: Dilip on April 14, 2012, 11:25:26 AM
To remove news, simply delete it from Admin Control Panel.
Title: Re: remove search box and news line
Post by: TheStig on April 14, 2012, 12:16:56 PM
I do, but then there is only the row: news avalible

TheStig
Title: Re: remove search box and news line
Post by: Ricky on April 15, 2012, 03:01:55 PM
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: [Select]
<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>

and remove it.

Title: Re: remove search box and news line
Post by: TheStig on April 15, 2012, 07:24:53 PM
Fixed, the lines are gone.
No more questions :-)

Thanks Ricky
Title: Re: remove search box and news line
Post by: Ricky on April 21, 2012, 12:07:12 PM
I am glad problem is solved.

Hope to see you around.
Title: Re: remove search box and news line
Post by: DMF-NL on August 11, 2012, 04:30:08 PM
How can I add a facebook and twitter button with a link direct to the twitter (add) page and facebook page
Title: Re: remove search box and news line
Post by: Ricky on August 18, 2012, 06:56:48 PM
Where you want to add it , can you be little more specific ?