test
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • sweiss Friend
    #203915

    This is a question that was caught up in the server/db issue so I’m asking it again.

    We use template 5 to achieve the full length banner across the browser width on the home page and to make the main menu sticky. But when we go to any other page of the site the top portion of the banner (about 100 pixels) used for the home page is displayed on the top every other webpage on the site.

    How do I remove the 100 pixel area on the top of every page of the site except the home page. Ultimately we only want the sticky main menu on the top of all sub pages of the site.

    Mike
    Style: JS Jason – Home Style 5
    Template: ja_Jason – Home Style 5

    See image attached.

    Mike


    1. top-section-on-subpages
    Saguaros Moderator
    #560087

    I need a closer look at your site, could you PM me the admin & FTP account of your site?

    sweiss Friend
    #560154

    Just sent PM with info, but it’s not in my sent box so I hope you received it.

    Saguaros Moderator
    #560196

    I couldn’t access backend of your site, kindly recheck and update for me again.

    sweiss Friend
    #560547

    Is anybody else able to help me with this thread? I’m not getting any assistance with it. Support?:((

    This ticket was originally post two weeks ago and was caught up in the forum crash so we had to re-enter it.

    Can the header used in (Style: JS Jason – Home Style 5 AND Template: ja_Jason – Home Style 5) be removed from the sub-pages?

    Mike

    Saguaros Moderator
    #560639

    Hi Mike,

    Thanks for update the login info, I can access your site now.

    And as I can see that you’re using Ja_Jason – Home Style 5 template style for almost pages on your site. If you want to keep header for homepage only, you can assign this style to homepage only and duplicate another style for other pages.

    To achieve that, you can try with my tweak here:
    Duplicate template style:
    Go to template manager, duplicate above ‘Ja_Jason – Home Style 5’ to have new template style and name it as ‘Ja_Jason – Home Style 5 – Sub pages’ and assign this new template style for other pages except for home page
    Duplicate layout
    Access file/folder on your site (use FTP client or log into cPanel in your hosting):
    – Go to directory: /templates/ja_jason (default template)/local/tpls/custom-layout, duplicate this to have a new file: custom-layout-sub
    – Open the PHP file of this layout and see which header block it’s loading. In our demo site, the Ja_Jason – Home Style 5 will load ‘header-5’ in: /templates/ja_jason/tpls/blocks/header-5.php

    You don’t send me the FTP so that I don’t know you also custom ‘header-5’ block or not. If yes, open the same file in local folder, then duplicate that file to have a new block called ‘header-5-sub

    Open this new file and remove this snippet of code:


    <!-- HEADER -->
    <header id="t3-header" class="wrap t3-header <?php if($headerimage || $headervideo): echo 't3-header-mask'; endif; ?>" <?php if($headerimage): echo $style; endif; ?> >
    <div class="container">
    <?php if ($this->countModules('intro-1')) : ?>
    <!-- Features Intro -->
    <div class="clearfix ja-intro ja-intro-1<?php $this->_c('intro-1') ?>">
    <jdoc:include type="modules" name="<?php $this->_p('intro-1') ?>" style="raw" />
    </div>
    <!-- //Features Intro -->
    <?php endif ?>
    </div>
    </header>
    <!-- //HEADER -->

    Go back above block file: ‘custom-layout-sub’ and load the new ‘header-5-sub’, it will look like this:


    <body class="ja-home-5">

    <div class="t3-wrapper"> <!-- Need this wrapper for off-canvas menu. Remove if you don't use of-canvas -->

    <?php $this->loadBlock('header-5-sub') ?>

    <?php $this->loadBlock('mainbody-home') ?>
    <?php $this->loadBlock('section-home') ?>
    <?php $this->loadBlock('footer') ?>
    </div>
    </body>
    </html>

    sweiss Friend
    #560734

    Wow, I’m so close as this makes a lot of sense to me.

    What I’ve done so far per your instruction:

    1. I created a new template style named ‘Ja_Jason – Home Style 5 – Sub pages’ and assign this new template style for other pages except for home page.

    2 I duplicated the custom-layout-sub.php and named it, “custom-layout-sub.php” in the /templates/ja_jason/local/tpls/ and changed the block var to following <?php $this->loadBlock(‘header-5-sub‘) ?> Then uploaded it into the /templates/ja_jason/local/tpls/ folder on the server.

    3. I duplicated the header-5.php and named it, “header-5-sub.php” and removed the header code you recommed. Then uploaded it into the /templates/ja_jason/tpls/blocks/ folder

    I seem to be missing something because the top header is still there. It’s almost as if the style assignment is not working.

    Saguaros Moderator
    #560735

    You can PM me FTP account of your site, I will check this for you.

    sweiss Friend
    #560845

    I sent the FTP info to you.

    Saguaros Moderator
    #561069

    Hi Mike,

    Could you check again the FTP account? as I can’t access with info you sent

    sweiss Friend
    #561950

    I sent it again. I’m able to connect with the information I sent.

    Saguaros Moderator
    #562196

    I checked the ‘custom-layout.php’ file but it still loads ‘header-5’ block. I tried to change to ‘header-5-sub’ block but it also hides in homepage.

    There is problem with the assignment section in template manager, PM me the admin account also, I will check this for you.

    sweiss Friend
    #562280

    I sent PM to you

    Saguaros Moderator
    #562369

    It works now.

    What I do is:
    – Assign ‘Home – 5’ layout for ‘Ja_Jason – Home Style 5’ to use in homepage
    – Assign ‘custom-layout’ layout for ‘Ja_Jason – Home Style 5 – Sub pages’. In this custom-layout, load the ‘header-5-sub’ block and remove the code snippet as mentioned in this thread.

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

This topic contains 14 replies, has 2 voices, and was last updated by  Saguaros 9 years, 9 months ago.

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