-
AuthorPosts
-
February 18, 2015 at 5:07 pm #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 5See image attached.
Mike
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 20, 2015 at 7:49 am #560087I need a closer look at your site, could you PM me the admin & FTP account of your site?
February 20, 2015 at 11:07 pm #560154Just sent PM with info, but it’s not in my sent box so I hope you received it.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 21, 2015 at 9:08 am #560196I couldn’t access backend of your site, kindly recheck and update for me again.
February 24, 2015 at 4:44 pm #560547Is 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 25, 2015 at 10:33 am #560639Hi 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.phpYou 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>
1 user says Thank You to Saguaros for this useful post
February 26, 2015 at 12:23 am #560734Wow, 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 26, 2015 at 1:20 am #560735You can PM me FTP account of your site, I will check this for you.
February 26, 2015 at 6:53 pm #560845I sent the FTP info to you.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 1, 2015 at 2:01 pm #561069Hi Mike,
Could you check again the FTP account? as I can’t access with info you sent
March 6, 2015 at 8:04 pm #561950I sent it again. I’m able to connect with the information I sent.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 9, 2015 at 8:11 am #562196I 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.
March 9, 2015 at 7:32 pm #562280I sent PM to you
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 10, 2015 at 8:26 am #562369It 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.1 user says Thank You to Saguaros for this useful post
AuthorPostsViewing 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
Removal of the top section
Viewing 14 posts - 1 through 14 (of 14 total)