Announcement

Collapse
No announcement yet.

HTML tags ( <ul><li> ) Not working in product descriptions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HTML tags ( <ul><li> ) Not working in product descriptions

    I have received a file of HTML descriptions for products from a Vendor. This is a large file and the formatting is very good, but for some reason Miva won't allow the tags <ul><li>, so the descriptions do not appear correctly. Is there any way of fixing this without me having to edit every single description to remove the offending tags?
    Last edited by TGCAdmin; 09-12-13, 10:15 AM. Reason: Typo

    #2
    Re: HTML tags ( &lt;ul&gt;&lt;li&gt; ) Not working in product descriptions

    Would need to see the description in context with the other code. Its most likely an issue with CSS styles that are overriding the normal bulleted list appearance. You will probably need to add something like this to the style sheet:

    .PROD ul {list-style:normal}
    .PROD ul li {list-style-type:square;}
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
    phosphormedia.com

    Comment


      #3
      Re: HTML tags ( &lt;ul&gt;&lt;li&gt; ) Not working in product descriptions

      Well... Thanks for pointing me in the right direction Bruce. Only problem is, our entire site is setup using <ul> and <li> for it's layout. I inherited this from the people before me who set it up, and they obviously took the lazy way. So finding the code wasn't hard, but it is in every bit of our site, from the Category Tree to the headers and footers.

      What you suggested did nothing, changing the code that blocks the ul and li tags in the CSS file simply paints the site in bullets and ruins the layout. Looks like I'll be editiing 200+ product descriptions over the weekend.

      Comment


        #4
        Re: HTML tags ( &lt;ul&gt;&lt;li&gt; ) Not working in product descriptions

        ...then you're doing it wrong<g>.

        My suggestion was just an 'example' not a direction. Since we can't see the site and look at the code, I have no idea of the specific code needed to make unordered lists appear in descriptions but not effect the other parts of the site. As for the "lazy" way, not really. Many site developers use this technique for items that need to be kept distinct, yet together. For example, a menu list. Using unordered lists for something like that is quite appropriate, if slightly miss-named.

        BTW: You'll find that others can assist you more directly is actual examples are provided (aka, link to the site).
        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment


          #5
          Re: HTML tags ( &lt;ul&gt;&lt;li&gt; ) Not working in product descriptions

          http://www.tacticalgearcommand-gov.com

          Forgive me, I think you mistook what I said as a stab at you. I simply meant that trying to override the CSS failed, and that changing the code in the CSS file made the site layout a mess. Call me old school, but actually using HTML / CSS to position elements and keep them in check was the norm a decade ago when I did design sites. Almost every element of this site is positioned and implemented using lists, not just a menu. This is a rather large and intensive site, for which they did not take steps accordingly when it was designed. The ultimate problem is I'm brand new to Miva, and the site is designed around Miva, so my knowledge of only using HTML and CSS falls a bit short. I can share whatever is needed, I just didn't want to do a wall of CSS and HTML when I started the post.
          Last edited by TGCAdmin; 09-13-13, 08:51 AM. Reason: Typo

          Comment


            #6
            Re: HTML tags ( &lt;ul&gt;&lt;li&gt; ) Not working in product descriptions

            no stab takin...just a poor attempt at humor.

            You SHOULD be able override ul/li settings within a specific area such as the product descriptions. You just have to determine which Outer CSS container can be used to define the over ride settings.
            Bruce Golub
            Phosphor Media - "Your Success is our Business"

            Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
            phosphormedia.com

            Comment


              #7
              Re: HTML tags ( &lt;ul&gt;&lt;li&gt; ) Not working in product descriptions

              Any suggestion on where I should start? Miva takes a bit of getting used to, and I was trying to discern earlier how the CSS and Miva link up with product pages, and then only affecting the area for the descriptions.

              Comment


                #8
                Re: HTML tags ( &lt;ul&gt;&lt;li&gt; ) Not working in product descriptions

                Try using the .product-description as the parent element.
                Bruce Golub
                Phosphor Media - "Your Success is our Business"

                Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                phosphormedia.com

                Comment


                  #9
                  Re: HTML tags ( &lt;ul&gt;&lt;li&gt; ) Not working in product descriptions

                  Well I tried playing around with the code there, and still no joy trying to revert the functionality. This is going to be something I'm going to outsource to someone who knows Miva. Thanks for the help trying to track this down Bruce.

                  Comment


                    #10
                    Re: HTML tags ( &lt;ul&gt;&lt;li&gt; ) Not working in product descriptions

                    Its really not a Miva issue. Its just plain CSS stuff. Of course, resolving it means trying to understand what Merchant established previously, and what, if any changes you/someone else made effect the item you are trying to work on, but its still basic CSS stuff. If you don't use Chrome, get it..and then use the Chrome inspection tool to walk through the CSS. (Its probably the best tool for looking at CSS, you can actually make changes to the CSS on the fly to see its effect, then copy the changes back into your site's style sheet.)
                    Bruce Golub
                    Phosphor Media - "Your Success is our Business"

                    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                    phosphormedia.com

                    Comment


                      #11
                      Re: HTML tags ( &lt;ul&gt;&lt;li&gt; ) Not working in product descriptions

                      The best thing you can do when you've come onto a site behind someone else is to check both CSS and HTML. Both in this site are a real mess, not to mention obsolete characters/tags/stray tags/etc. If the code is a mess, even in one section, it can mess up other sections. So before you go editing that product file, go through the HTML and CSS first.

                      After that, if the descriptions don't come out as you expect, you'll then have to have the CSS as Bruce suggested for the PROD ul/li, which will make your descriptions play nice as you want.

                      But...if you don't fix your HTML/CSS first, you will undoubtedly end up banging your head for a very, very long time...not to mention updating a large product file for (undoubtedly) nothing.

                      Just a tip!

                      Jamie
                      Jamie Donaldson
                      JSDVS Web Design / Development
                      Web Design | Web Development | E-commerce Design & Integration

                      Comment


                        #12
                        Re: HTML tags ( &lt;ul&gt;&lt;li&gt; ) Not working in product descriptions

                        Oh trust me, I know this site is a mess. I've been in the IT world almost my entire life, learning a lot even when I was a child. From grade school where I shadowed the Admin for all our IBM XT 286 school computers (they were dinosaurs even in the early 90's), my grandfather that made me learn Unix System V, Mac System 6, and Microsoft Dos starting around the age of 3 (no joke).


                        The problem is I have three jobs at the moment, and only one set of 8 man hours a day to devote to all three. I am the website design/maintenance admin, IT admin for the office, and you guessed it, Miva Admin. So there is always a huge amount of work to do, and only me to do it.


                        That's why I'm leaning towards trying to farm out the Miva. Just with the other two I have my hands full, and Miva is a pretty big bulky item I'm trying to balance on top of all that.
                        Last edited by TGCAdmin; 09-24-13, 06:33 AM.

                        Comment


                          #13
                          Re: HTML tags ( &lt;ul&gt;&lt;li&gt; ) Not working in product descriptions

                          Originally posted by TGCAdmin View Post
                          That's why I'm leaning towards trying to farm out the Miva. Just with the other two I have my hands full, and Miva is a pretty big bulky item I'm trying to balance on top of all that.
                          Definitely understand your situation. If you do decide to farm out the Miva, please email me through the forum. I'd be happy to send you a quote.

                          Jamie
                          Jamie Donaldson
                          JSDVS Web Design / Development
                          Web Design | Web Development | E-commerce Design & Integration

                          Comment


                            #14
                            Maybe the token needs to be changed? I can't see your site (the domain name was not found). But if you are referring to Product Descriptions - maybe look to see if in the PROD Page template > Product Display Layout look for
                            Code:
                            &mvte:product:descrip;
                            If it is
                            Code:
                            &mvte:product:descrip;
                            change it to
                            Code:
                            &mvt:product:descrip;
                            Keep in mind this is just a temporary fix until you can clean up the code in the product descriptions - if this is indeed the source of your issue.
                            Leslie Kirk
                            Miva Certified Developer
                            Miva Merchant Specialist since 1997
                            Previously of Webs Your Way
                            (aka Leslie Nord leslienord)

                            Email me: [email protected]
                            www.lesliekirk.com

                            Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                            Comment

                            Working...
                            X