Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • kj_wilson Friend
    #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 Moderator
    #550257

    Hi

    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>

    kj_wilson Friend
    #550280

    I 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 Moderator
    #550281

    Could you send me via Private Message a super user account to your backend ?

    pavit Moderator
    #550285

    Hi

    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

    kj_wilson Friend
    #550286

    Hi 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 Moderator
    #550288

    You can change any php file adding

    <?php $this->loadBlock('mainbody/one-sidebar-right') ?>

    where it says

    <?php $this->loadBlock('mainbody') ?>

    kj_wilson Friend
    #550289

    The 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.


    1. mainbody-home-with-sidebar2
    kj_wilson Friend
    #550388

    Can anyone else helps me with this? This is an urgent request. My client needs to see this page redone asap.

    Adam M Moderator
    #550477

    Hi @kj_wilson,

    I see that your question has been answered here already.

Viewing 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, 2 months ago.

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