Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2010
    Posts
    16
    Plugin Contributions
    0

    application error BlueCart template HTML Issues

    Hi All,
    I've posted about this once before and am still having problems nailing down exactly where my problem is. I am having a display issue on my main page. I am using a customized version of BlueCart for my theme. Below is the link to my page.

    http://www.mountbaldybrewing.com/zencart/

    If the above link does not get you an error, try this...

    http://mountbaldybrewing.com/zencart...ath=25_3_19_31

    I have ran the code through the HTML validator and all of my errors appear to be within the code that is in my product descriptions. I have tried editing this code in the admin section but am seemingly unable to resolve the issue.

    An example of said error is as follows:

    Code:
    Line 356, Column 549: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
    
    …"100" height="100" /></a><br /><p><div><b>Usage:</b></div><div>Gentle, malty c…
    
    
    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
    
    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
    Any suggestions are greatly appreciated!

    Cheers,

    Joe Gill
    Mount Baldy Brewing, LLC

  2. #2
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: BlueCart HTML Issues

    The description section errors are caused by, You have a div inside a paragraph, no no no

    you can have paragraph inside a div, but not a div inside a paragraph

    you also have unclosed spans and divs in the descriptions, which may be causing the issue


    as for the layout problem


    these divs and spans should all be closed up, they are not

    Code:
    <div class="centerBoxContentsNew" >
    <div class="product_title">
    	<a href="http://mountbaldybrewing.com/zencart/index.php?main_page=product_info&amp;cPath=25_3_19_31&amp;products_id=50">Weyermann® CARARED®
    	</a>
    </div>
    	<a href="http://mountbaldybrewing.com/zencart/index.php?main_page=product_info&amp;cPath=25_3_19_31&amp;products_id=50"><img src="images/carared.jpg" alt="Weyermann® CARARED®" title=" Weyermann® CARARED® " width="100" height="100" />
    	</a>
    <br />
    <p>
    <div>
    <span style="font-family: sans-serif; font-size: 13px; line-height: 19px;" class="Apple-style-span">
    	<div>
    	 <b>Usage:</b>
    	</div>
    <div>Perfect for adding red color values to red ale...
    </p> 
    	<div class="price">
    		$1.50
    	</div>
    	<div class="product_detail">
    		<a href="http://mountbaldybrewing.com/zencart/index.php?main_page=product_info&amp;cPath=25_3_19_31&amp;products_id=50">
    		<img src="includes/templates/bluecart/images/details.gif" alt="" width="91" height="22" />
    		</a>
    	</div>
    </div>
    Webzings Design
    Semi retired from Web Design

  3. #3
    Join Date
    Dec 2010
    Posts
    16
    Plugin Contributions
    0

    Default Re: BlueCart HTML Issues

    How can you fix them? Can I fix them within the admin section of my site when I add the descriptions to the items? Is there any way to modify the products pages outside of the admin section? Any advice is appreciated.

  4. #4
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: BlueCart HTML Issues

    This product

    http://mountbaldybrewing.com/zencart...products_id=50


    Just temporarily, completely remove its description in admin, and see if it makes a difference to the page, as i tested it here and it partially fixed it

    Makesure you check the description is completely empty

    --------------------------- Edit -----------------------------

    If it works this page here should look a bit better

    http://mountbaldybrewing.com/zencart...ath=25_3_19_31
    Webzings Design
    Semi retired from Web Design

  5. #5
    Join Date
    Dec 2010
    Posts
    16
    Plugin Contributions
    0

    Default Re: BlueCart HTML Issues

    Thanks for the replies! I was able to figure out why my page got so messed up. I had been coding with the HTML editor on the admin page. I turned it off yesterday but never logged out and was seeing what looked like the correct code. This morning when I re-logged in to my admin, I took one look at the code and noticed all of the markup that was not correct. I've since corrected a lot of it but I still have a lot to do. I'm still getting a few errors but at least my format looks much much better now.

    The moral of the story: Turn off the editor and hard code everything. No more <div>'s out of place. :-)

    Thanks for the advice! It made me see what I needed to find. :-)

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: BlueCart HTML Issues

    Quote Originally Posted by mountbaldybrewing View Post

    The moral of the story: Turn off the editor and hard code everything. No more <div>'s out of place. :-)
    Couldn't agree more. HTML and CSS aren't so hard to learn that anyone needs to rely on crutches like built-in editors.

 

 

Similar Threads

  1. v151 BlueCart template: getting blank page
    By deannab in forum Addon Templates
    Replies: 4
    Last Post: 20 Mar 2013, 07:23 AM
  2. Bluecart template question
    By soundmachine in forum Addon Templates
    Replies: 15
    Last Post: 1 Nov 2011, 03:59 AM
  3. Specials Not Showing in bluecart template
    By dbjsi83474 in forum Addon Templates
    Replies: 1
    Last Post: 4 Feb 2011, 10:48 AM
  4. Header in Bluecart Template
    By dbjsi83474 in forum Addon Templates
    Replies: 9
    Last Post: 4 Feb 2011, 08:59 AM
  5. Welcome to BlingTheme in BlueCart template
    By frizzo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Oct 2010, 08:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg