-
AuthorPosts
-
theprofessor Friend
theprofessor
- Join date:
- March 2009
- Posts:
- 365
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 47
- Thanked:
- 64 times in 18 posts
March 29, 2009 at 4:57 am #139696Hello,
I am trying to make some minor modifications to the OPAL template, and I would like to remove the Breadcrumbs and Search modules from the HOME page, but would like to keep them for all other pages.I tried simply unpublishing the Breadcrumbs and Search modules, but that doesn’t remove the physical box from the page.
You can see what I mean here:
http://www.sypfantasyhockey.comDoes anyone know how I can accomplish this? I have searched, fiddled, tried….must be something simple I am not seeing.
Thanks in advance for any help! 😎
Arvind Chauhan ModeratorArvind Chauhan
- Join date:
- September 2014
- Posts:
- 3835
- Downloads:
- 74
- Uploads:
- 92
- Thanks:
- 1240
- Thanked:
- 1334 times in 848 posts
March 29, 2009 at 5:20 am #298800If you want to remove the whole Breadcrumbs body along with the search module, from all the pages
Take backup of your template index.php before trying this :
OPen your templates/ja_opal/index.php and around line 163 :
Remove the following block of code :
[PHP]<!– PATHWAY –>
<div id=”ja-pathway” class=”wrap”>
<div class=”main”>
<div class=”inner clearfix”><div class=”ja-pathway-text”>
<strong>You are here:</strong><jdoc:include type=”module” name=”breadcrumbs” />
</div><?php if ($this->countModules(‘user4’)) { ?>
<div id=”ja-search”>
<jdoc:include type=”modules” name=”user4″ style=”raw” />
</div>
<?php } ?></div>
</div>
</div>
<!– //PATHWAY –>[/PHP]2 users say Thank You to Arvind Chauhan for this useful post
wooohanetworks Friendwooohanetworks
- Join date:
- September 2008
- Posts:
- 1239
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 148
- Thanked:
- 138 times in 41 posts
March 29, 2009 at 5:34 am #298804I think this would remove the modules from all the pages, to disable the display of the modules only from the frontpage or a particular page you have to use php module overrides.
Take a look over the forum here, search for php module overrides etc.. and same with on Joomla.org. It is kind of easy when got the right tutorial. It was just a topic recently here.
You will have to insert a certain code to the existing codes defining where the modules will not be displayed in the index.php of the template.
1 user says Thank You to wooohanetworks for this useful post
theprofessor Friendtheprofessor
- Join date:
- March 2009
- Posts:
- 365
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 47
- Thanked:
- 64 times in 18 posts
March 29, 2009 at 6:22 am #298812<em>@wooohanetworks 121207 wrote:</em><blockquote>I think this would remove the modules from all the pages, to disable the display of the modules only from the frontpage or a particular page you have to use php module overrides.
Take a look over the forum here, search for php module overrides etc.. and same with on Joomla.org. It is kind of easy when got the right tutorial. It was just a topic recently here.
You will have to insert a certain code to the existing codes defining where the modules will not be displayed in the index.php of the template.</blockquote>
Thanks, yes you are correct — it removed the modules completely from all pages of the site. Ultimately, it’s ok though. I’m not sure I need a search option on my website anyways, but will look over what you suggested so that I can understand how to do it in case I want to keep these mods on other pages.
Arvind Chauhan ModeratorArvind Chauhan
- Join date:
- September 2014
- Posts:
- 3835
- Downloads:
- 74
- Uploads:
- 92
- Thanks:
- 1240
- Thanked:
- 1334 times in 848 posts
March 29, 2009 at 6:32 am #298814Glad it solved your problem, checked your website again now. it worked. Thanks for marking the best answer too, Thanks and have fun.
cheers
-
AuthorPosts
This topic contains 5 replies, has 3 voices, and was last updated by Arvind Chauhan 15 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum