-
AuthorPosts
-
September 20, 2014 at 9:55 pm #201484
I need to shift the main content with spotlights 1 and 2 to the left and have a sidebar on the right on the Home Page. I have duplicated the mainbody php file and am trying to shift the Main Content block to the left. How do I do that?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
September 21, 2014 at 6:13 am #550257Hi
You should load inside your layout php file as mainbody the block one-sidebar-right.php contained in templatesja_biztplsblocksmainbody folder
Example :
assuming your layout is loading the default.php file then you should edit templatesja_biztplsdefault.php
<div class="t3-wrapper"> <!-- Need this wrapper for off-canvas menu. Remove if you don't use of-canvas -->
<?php $this->loadBlock('top-header') ?>
<?php $this->loadBlock('header') ?>
<?php $this->loadBlock('mainbody') ?>
<?php $this->loadBlock('masshead') ?>
<?php $this->loadBlock('navhelper') ?>
<?php $this->loadBlock('footer') ?>
</div>
Should change to
<div class="t3-wrapper"> <!-- Need this wrapper for off-canvas menu. Remove if you don't use of-canvas -->
<?php $this->loadBlock('top-header') ?>
<?php $this->loadBlock('header') ?>
<?php $this->loadBlock('one-sidebar-right') ?>
<?php $this->loadBlock('masshead') ?>
<?php $this->loadBlock('navhelper') ?>
<?php $this->loadBlock('footer') ?>
</div>
September 21, 2014 at 2:52 pm #550280I cloned the home style and created one called home-sidebar2. It is loading the mainbody-home.php file. If I change the loadBlock from ‘mainbody-home’ to ‘one-sidebar-right’ as you suggest I get a “Block not found!” in the Layout when I reload.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
September 21, 2014 at 2:55 pm #550281Could you send me via Private Message a super user account to your backend ?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
September 21, 2014 at 5:55 pm #550285Hi
There was my mistake in the code showed above it should be
<?php $this->loadBlock('mainbody/one-sidebar-right') ?>
instead of
<?php $this->loadBlock('one-sidebar-right') ?>
Btw i applied this code to the default.php file and it loads correctly in the JA Biz Default style
It doesn’t loads in your modified style
September 21, 2014 at 6:30 pm #550286Hi there,
It is the home.php that needs to be revised not the default.php. I need the spotlight1 and spotlight2 positions and sidebar2.Thanks for your help.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
September 21, 2014 at 6:43 pm #550288You can change any php file adding
<?php $this->loadBlock('mainbody/one-sidebar-right') ?>
where it says
<?php $this->loadBlock('mainbody') ?>
September 21, 2014 at 7:16 pm #550289The home.php and default.php have much different components. home.php contains the block ‘mainbody-home.php that contains the spotlight1 and 2 components and the sidebar1.
I have been trying to figure out how to move the components to the left and have the sidebar2 on the right. See attached image.
thanks.
September 22, 2014 at 3:04 pm #550388Can anyone else helps me with this? This is an urgent request. My client needs to see this page redone asap.
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
September 23, 2014 at 7:03 am #550477Hi @kj_wilson,
I see that your question has been answered here already.
AuthorPostsViewing 10 posts - 1 through 10 (of 10 total)This topic contains 10 replies, has 3 voices, and was last updated by Adam M 10 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum
need Home page layout: content left – sidebar2 right
Viewing 10 posts - 1 through 10 (of 10 total)