Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • Pankaj Sharma Moderator
    #1057773

    Hi
    Do you have any custom module positions?
    Can u share more details in a screenshot and let me know what issue you are facing?
    I checked above page and it look like you have custom work in the mainbody php file.

    Regards

    timpennington Friend
    #1057794

    Here are two screenshots; the position home-2 is going under the sidebar-1 area


    1. Screen-Shot-2017-08-21-at-10.22.53-PM
    2. Screen-Shot-2017-08-21-at-10.22.05-PM
    Pankaj Sharma Moderator
    #1057801

    Hi
    You have to define the style classes in your module position code.
    At this time its using full width.
    Add class col-md-9 so it will use the same space as the main body container.
    Or you can remove the container class from the module position code to get the same width as the main body.

    Regards

    timpennington Friend
    #1057932

    Can you suggest how to do that?

    What the coding would be, and what file to insert it in?

    Thank you for the help

    Pankaj Sharma Moderator
    #1058014

    Hi
    The path of the file is template folder/tpls/blocks/mainbody.php
    On your site, its customised file and there are new module position added by you on this file.
    Just remove the container class from these module positions.

    Regards

    timpennington Friend
    #1058051

    This is what I have:

    <?php if ($this->countModules(‘home-2’)) : ?>
    <div class="wrap <?php $this->_c(‘home-2’) ?>">
    <div class="container">
    <jdoc:include type="modules" name="<?php $this->_p(‘home-2’) ?>" style="raw" />

    <?php endif ?>

    So what gets removed??

    Pankaj Sharma Moderator
    #1058054

    Just remove the container class from these module positions.

    container

    Regards

    timpennington Friend
    #1058147

    Do I just remove this:
    <div class="container">

    Or do I remove both of these:
    <div class="container">
    <jdoc:include type="modules" name="<?php $this->_p(‘home-2’) ?>" style="raw" />

    Thank you

    timpennington Friend
    #1058198

    If I remove this line:
    <div class="container">

    Then the sidebar-1 on the right disappears

    If I remove this line:
    <jdoc:include type="modules" name="<?php $this->_p(‘home-2’) ?>" style="raw" />

    It removes the home-2 block altogether

    If I remove both lines:
    <div class="container">
    <jdoc:include type="modules" name="<?php $this->_p(‘home-2’) ?>" style="raw" />

    It removes the home-2 block altogether

    So can you be specific in what lines to remove?

    Here is what I have, and could you tell me what it should be?

    <?php if ($this->countModules(‘home-2’)) : ?>
    <div class="wrap <?php $this->_c(‘home-2’) ?>">
    <div class="container">
    <jdoc:include type="modules" name="<?php $this->_p(‘home-2’) ?>" style="raw" />

    <?php endif ?>

            <?php if ($this->countModules('home-3')) : ?>
            <div class="wrap <?php $this->_c('home-3') ?>">
                <div class="container">
                    <jdoc:include type="modules" name="<?php $this->_p('home-3') ?>" style="raw" />
                </div>
            </div>
            <?php endif ?>
    timpennington Friend
    #1058206

    Thank you; I removed the word "container"

    Sorry if that wasn’t clear to me

    Thanks

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

This topic contains 10 replies, has 2 voices, and was last updated by  timpennington 7 years ago.

The topic ‘Width of Home-2 module block position’ is closed to new replies.