test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • theprofessor Friend
    #139696

    Hello,
    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.com

    Does 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 Moderator
    #298800

    If 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]

    wooohanetworks Friend
    #298804

    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.

    theprofessor Friend
    #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 Moderator
    #298814

    Glad it solved your problem, checked your website again now. it worked. Thanks for marking the best answer too, Thanks and have fun.

    cheers

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 3 voices, and was last updated by  Arvind Chauhan 15 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum