Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7990223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:56:43+00:00 2026-06-04T12:56:43+00:00

I have made a custom Magento theme by heavily customizing the base. I’ve made

  • 0

I have made a custom Magento theme by heavily customizing the base. I’ve made it responsive using Twitter bootstrap. On the homepage I am showing products in a 2column-right layout.

2column-right.phtml:

<div class="container">
    <div class="row">
        <div class="span12 page">
            <?php echo $this->getChildHtml('header') ?>
            <?php echo $this->getChildHtml('breadcrumbs') ?>
            <?php echo $this->getChildHtml('global_messages') ?>
            <div class="row">
                <div class="span9"><?php echo $this->getChildHtml('content') ?></div>
                <div class="span3"><?php echo $this->getChildHtml('right') ?></div>
            </div>
        </div><!-- ./page -->
    </div>
</div><!-- ./container -->

the list is shown using list.phtml:

<?php // Grid Mode ?>
<?php $_collectionSize = $_productCollection->count() ?>
<ul class="thumbnails">
    <?php $i=0; foreach ($_productCollection as $_product): ?>
    <li class="span3 item <?php if($i%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
        <div class="thumbnail clearfix">
            <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>">
                <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(260); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>"/><!--145x215-->
            </a>

            <?php
            $itemName = $_helper->productAttribute($_product, $_product->getName(), 'name');
            $limit = ($ilimit) ? $ilimit : 23;
            $pad=' &hellip;';
            $itemName = strip_tags($itemName);
            if(strlen($itemName) > $limit) {
                $itemName = substr($itemName,0,$limit);
            }
            $itemName = $itemName.$pad;
            ?>

            <h3><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $itemName; ?></a></h3>

            <div class="price-box">
                <span><?php echo $this->getPriceHtml($_product, true) ?></span>
            </div>

            <?php if($_product->isSaleable()): ?>
                <button type="button" class="btn btn-warning btn-medium pull-left" title="<?php echo $this->__('Add to Cart') ?>" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><?php echo $this->__('Add to Cart') ?></button>
            <?php else: ?>
                <button type="button" disabled="disabled" class="btn btn-medium pull-left"><?php echo $this->__('Out of stock') ?></button>
            <?php endif; ?>

            <?php if ($this->helper('wishlist')->isAllow()) : ?>
                <a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="btn btn-medium pull-right"><?php echo $this->__('Add to Wishlist') ?></a>
            <?php endif; ?>
        </div>
    </li>
    <?php endforeach; ?>
</ul>

Nowhere in my code is there a mention of a std or side-col or col-left but still the output HTML is:

<div class="std">
    <div class="col-left side-col">
        <p class="home-callout"><span></span></p>

        <ul class="thumbnails">
            <li class="span3 item  first">
                <div class="thumbnail clearfix">
                    <a href="http://localhost:8888/index.php/sony-vaio-vgn-txn27n-b-11-1-notebook-pc.html" title="Sony VAIO VGN-TXN27N/B 11.1&quot; Notebook PC">
                        <img src="http://localhost:8888/media/catalog/product/cache/1/small_image/260x/9df78eab33525d08d6e5fb8d27136e95/s/o/sony-vaio-vgn-txn27n-b-11-1-notebook-pc.jpg" alt="Sony VAIO VGN-TXN27N/B 11.1&quot; Notebook PC">
                    </a>

                    <h3><a href="http://localhost:8888/index.php/sony-vaio-vgn-txn27n-b-11-1-notebook-pc.html" title="Sony VAIO VGN-TXN27N/B 11.1&quot; Notebook PC">Sony VAIO VGN-TXN27N/B  …</a></h3>

                    <div class="price-box">
                        <span>
                            <div class="price-box">
                                <span class="regular-price" id="product-price-27">
                                    <span class="price">Rs2,699.99</span>
                                </span>
                            </div>
                        </span>
                    </div>

                    <button type="button" class="btn btn-warning btn-medium pull-left" title="Add to Cart" onclick="setLocation('http://localhost:8888/index.php/checkout/cart/add/uenc/aHR0cDovL2xvY2FsaG9zdDo4ODg4L2ZsYWlyYmFnL2luZGV4LnBocC8,/product/27/')">Add to Cart</button>
                    <a href="http://localhost:8888/index.php/wishlist/index/add/product/27/" class="btn btn-medium pull-right">Add to Wishlist</a>
                </div>
            </li>
        </ul>

        <p></p>
    </div>
</div>

I need to remove these extra wrappers (std, side-col & col-left). This is spoiling the layout in a few places. I don’t what files to change for this. I have googled a lot but didn’t find anything. I don’t completely understand the layout xmls but from what I saw it’s just giving stuff to the templates.

I don’t know what to do. I’m stuck. Please help.

Also there are these extra empty tags in places just bothering me for no reason like:

<p class="home-callout"><span></span></p> and another extra <p></p> at the bottom. Why are these here. Is there a way to remove these too? I would love it if I could.

I really appreciate all the help.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:56:44+00:00Added an answer on June 4, 2026 at 12:56 pm

    I’m sure you’ve solved it already, but for those ending up here with the same question:

    The problem is caused by the WYSIWYG editor and is easily fixed. On the page that displays this div and span(s) erroneously, go to CMS -> Pages and select your page. In the contents-section of this page, turn off the editor and manually remove the divs/spans as desired.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom module I made for Magento. From the admin, there is
I have made my custom module in magento, in which I have set discount
I am using JSF and have made a custom servlet for loading images dynamically.
I have made a custom textbox that inherits from textbox. using System.Drawing; using System;
I have made a custom block in Magento that contains some JS. I want
I have made a custom formwizard and incorporated it into my admin interface. Basically
I have made a custom suface button according this example: <Button> <Button.Template> <ControlTemplate TargetType=Button>
i have made my custom Static Library (.a) successfully. i have tested it in
I have made a custom NSView and have implemented the keyDown: method. However, when
Hello people I have made a custom title bar for my app. I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.