If, for whatever reason, you wish to have the main content aea to the left and two columns to the right, you can do so by editing the index.php file in the templates/protostar/ directory. Always make a backup of the current index.php before editing it.

The default template for Protostar 3.2 has a section in the index.php file that looks like this:

<div class="row-fluid">
    <?php if ($this->countModules('position-8')) : ?>
    <!-- Begin Sidebar -->
        <div id="sidebar" class="span3">
            <div class="sidebar-nav">
                <jdoc:include type="modules" name="position-8" style="xhtml" />
            </div>
        </div>
    <!-- End Sidebar -->
    <?php endif; ?>
    <main id="content" role="main" class="<?php echo $span;?>">
        <!-- Begin Content -->
            <jdoc:include type="modules" name="position-3" style="xhtml" />
            <jdoc:include type="message" />
            <jdoc:include type="component" />
            <jdoc:include type="modules" name="position-2" style="none" />
    <!-- End Content -->
    </main>
    <?php if ($this->countModules('position-7')) : ?>
    <div id="aside" class="span3">
        <!-- Begin Right Sidebar -->
        <jdoc:include type="modules" name="position-7" style="well" />
        <!-- End Right Sidebar -->
    </div>
    <?php endif; ?>
</div>

The colored text is shown for clarification. The black lines are the HTML5. The red are the PHP and the blue are the <jdoc> calls.

To move the current left colum to be just to the right of the content, you need to cut an paste all of the lines from:

<?php if ($this->countModules('position-8')) : ?>

down to the corresponding endif for that first if

<?php endif; ?>

Notes:

Be sure to note that this is for Protostar that comes with Joomla 3.2. Earlier versions of Protostar for Joomla 3 were not using the HTML5 tag of <main>.

If you upgrade Joomla at a later date, you may need to edit the new index.php file in the templates/protostar/ directory in a similar manner.

Some additional styling with the stylesheets may be required for your columns to lay out as you wish them to.

 

 


Has BJ.Zemplate.com helped you with understanding Joomla?

If you would like to make a small contribution to help fund this resource, that would be great, but do not feel obligated in any way.

Donation Amounts


Still not finding a special topic?

Use Google's Search function below for search the content of bj.zemplate.com.