Jump to content

[SOLVED] Issue with Elation Liquid Theme Showing Tags


Recommended Posts

Hi,

I have the Elation Liquid theme installed and it isn't bad but I'm having issues with the descriptions of the Sub Category listings on the Category pages.

 

You go to a head category page that lists it's subcategories.

 

The descriptions of the subcategories are all displaying their html tags eg:

<h2>Ladies Hand and Shoulder Bags</h2> <p class="western" style="margin-bottom: 0cm; text-alig

 

In the template I found :

**********************************************************

        <!-- Subcategories -->
        <div id="eb-subcategories" class="clearfix">
            <ul>
            {foreach from=$subcategories item=subcategory}
                <li class="clearfix">
                    <article class="clearfix">
                        <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="img">
                            {if $subcategory.id_image}
                                <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_liquid')}" alt="{$subcategory.name|escape:'htmlall':'UTF-8'}" />
                            {else}
                                <img src="{$img_cat_dir}default-medium.jpg" alt="{$subcategory.name|escape:'htmlall':'UTF-8'}" />
                            {/if}
                        </a>
                        <section class="clearfix">
                            <header>
                                <h1><a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name">{$subcategory.name|escape:'htmlall':'UTF-8'}</a></h1>
                            </header>
                            {if $subcategory.description}
                                <p>{$subcategory.description|truncate:110:'...'|escape:html:'UTF-8'}</p>
                            {/if}
                        </section>
                    </article>
                </li>
            {/foreach}
            </ul>
            <br class="clear"/>
        </div>

*****************************************************

 

In the above:  <p>{$subcategory.description|truncate:110:'...'|escape:html:'UTF-8'}</p>

I tried removing <p></p>

I tried removing |escape:html:'UTF-8'

 

Now when I removed the [ |escape:html:'UTF-8' ] that remove the tags BUT the layout was 

adversely effected so that you could not read the description anyway.

 

I've tried getting hold off the Author but his site is down and has not answered in a couple of weeks. Hope he is OK.

 

Any ideas on fixing this?

 

Thanks

 

 

Edited by IeM (see edit history)
Link to comment
Share on other sites

can you try with:

 

instead of:

{if $subcategory.description}
                                <p>{$subcategory.description|truncate:110:'...'|escape:html:'UTF-8'}</p>
                            {/if}

use

{if $subcategory.description}
<p>{$subcategory.description|strip_tags|truncate:110:'...'|escape:htmlall:'UTF-8'}</p>
{/if}
Link to comment
Share on other sites

Hi,

Yes, I'm using Prestashop 1.5.6.1


 

I'm not planning on updating to 1.6 for quite a while as I have too many modifications that where required for integration with an affiliate application.


 

My last big head ache that has been unsuccessfully attempted a couple times by developers will be to override the multi store functionality so that I can use on the fly subdomains. The subdomains are the affiliate codes. The way Prestashop is now, means if you have a single store and the user goes to code.domain.com the app reloads as www.domain.com  (I grab the code first though) and if you go to code.domain.com/1-product you get a 404 error. So affiliates can not promote links directly to products or categories. Unfortunately I have to save for a while to try fixing this again. Maybe V1.6 has the solution.

 

Anyway, thanks again for you great assistance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...