Author Topic: remove search box and news line  (Read 53098 times)

TheStig

  • Newbie
  • *
  • Posts: 3
remove search box and news line
« 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?

Dilip

  • Full Member
  • ***
  • Posts: 119
Re: remove search box and news line
« Reply #1 on: April 14, 2012, 11:25:26 AM »
To remove news, simply delete it from Admin Control Panel.

TheStig

  • Newbie
  • *
  • Posts: 3
Re: remove search box and news line
« Reply #2 on: April 14, 2012, 12:16:56 PM »
I do, but then there is only the row: news avalible

TheStig

Ricky

  • Full Member
  • ***
  • Posts: 180
Re: remove search box and news line
« Reply #3 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.

« Last Edit: April 15, 2012, 03:18:11 PM by Ricky »

TheStig

  • Newbie
  • *
  • Posts: 3
Re: remove search box and news line
« Reply #4 on: April 15, 2012, 07:24:53 PM »
Fixed, the lines are gone.
No more questions :-)

Thanks Ricky
« Last Edit: April 15, 2012, 07:32:29 PM by TheStig »

Ricky

  • Full Member
  • ***
  • Posts: 180
Re: remove search box and news line
« Reply #5 on: April 21, 2012, 12:07:12 PM »
I am glad problem is solved.

Hope to see you around.

DMF-NL

  • Newbie
  • *
  • Posts: 1
Re: remove search box and news line
« Reply #6 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

Ricky

  • Full Member
  • ***
  • Posts: 180
Re: remove search box and news line
« Reply #7 on: August 18, 2012, 06:56:48 PM »
Where you want to add it , can you be little more specific ?

 

X

Do you know?

IfandBut.com helps you to keep yourself updated with latest internet business trends.
Join Now!
anything