Guest Posted January 27, 2015 Share Posted January 27, 2015 (edited) Hi everyone, I can't for the life of me figure this small problem out. For some reason an extra <a></a> is being added to the first item only on the contact page. Any ideas? I've searched through the blockcms.tpl file and contact-form.tpl but I can't find anything. Edited February 9, 2015 by Guest (see edit history) Link to comment Share on other sites More sharing options...
ajaxthemestudios Posted January 27, 2015 Share Posted January 27, 2015 Hi Can you give a link to the affected page. Otherwise, you should check your blockcms.tpl file inside your theme's module's folder to ensure the problem is not in there. Link to comment Share on other sites More sharing options...
vekia Posted January 27, 2015 Share Posted January 27, 2015 i see that its customized one (theme) so, if it is possible - please attach contents of your .tpl file here Link to comment Share on other sites More sharing options...
Guest Posted February 1, 2015 Share Posted February 1, 2015 (edited) Thanks for the suggestions! I still cannot find anything unfortunately. Here is the affected page: https://shopiwillbringchange.com/en/contact-us Here is my blockcms.tpl: {* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if $block == 1} <!-- Block CMS module --> {foreach from=$cms_titles key=cms_key item=cms_title} <section id="informations_block_left_{$cms_key}" class="block informations_block_left"> <p class="title_block"> <a href="{$cms_title.category_link|escape:'html':'UTF-8'}"> {if !empty($cms_title.name)}{$cms_title.name}{else}{$cms_title.category_name}{/if} </a> </p> <div class="block_content list-block"> <ul> {foreach from=$cms_title.categories item=cms_page} {if isset($cms_page.link)} <li class="bullet"> <a href="{$cms_page.link|escape:'html':'UTF-8'}" title="{$cms_page.name|escape:'html':'UTF-8'}"> {$cms_page.name|escape:'html':'UTF-8'} </a> </li> {/if} {/foreach} {foreach from=$cms_title.cms item=cms_page} {if isset($cms_page.link)} <li> <a href="{$cms_page.link|escape:'html':'UTF-8'}" title="{$cms_page.meta_title|escape:'html':'UTF-8'}"> {$cms_page.meta_title|escape:'html':'UTF-8'} </a> </li> {/if} {/foreach} {if $cms_title.display_store} <li> <a href="{$link->getPageLink('stores')|escape:'html':'UTF-8'}" title="{l s='Our stores' mod='blockcms'}"> {l s='Our stores' mod='blockcms'} </a> </li> {/if} </ul> </div> </section> {/foreach} <!-- /Block CMS module --> {else} <!-- MODULE Block footer --> <section class="footer-block col-xs-12 col-sm-3" id="block_various_links_footer"> <h4>{l s='Information' mod='blockcms'}</h4> <ul class="toggle-footer bullet"> <li class="item"> <a href="{$link->getCMSLink('4', 'about-us')}" title="{l s='About Us'}">{l s='About Us' mod='blockcms'}</a> </li> {if $show_contact} <li class="item"> <a href="{$link->getPageLink($contact_url, true)|escape:'html':'UTF-8'}" title="{l s='Contact us' mod='blockcms'}">{l s='Contact Us' mod='blockcms'}</a> </li> {/if} {if $display_stores_footer} <li class="item"> <a href="{$link->getPageLink('stores')|escape:'html':'UTF-8'}" title="{l s='Our stores' mod='blockcms'}">{l s='Our stores' mod='blockcms'}</a> </li> {/if} <li class="item"> <a href="{$link->getCMSLink('2', 'privacy-policy')}" title="{l s='Privacy Policy' mod='blockcms'}">{l s='Privacy Policy' mod='blockcms'}</a> </li> <li> <a href="{$link->getPageLink('return')|escape:'html':'UTF-8'}" title="{l s='Return Policy' mod='blockcms'}">{l s='Return Policy' mod='blockcms'}</a> </li> {if $show_sitemap} <li> <a href="{$link->getPageLink('sitemap')|escape:'html':'UTF-8'}" title="{l s='Sitemap' mod='blockcms'}">{l s='Sitemap' mod='blockcms'}</a> </li> {/if} <li class="item"> <a href="{$link->getCMSLink('3', 'terms-and-conditions-of-use')}" title="{l s='Terms & Conditions' mod='blockcms'}">{l s='Terms & Conditions' mod='blockcms'}</a> </li> </ul> {$footer_text} </section> <section class="footer-block col-xs-12 col-sm-3" id="block_various_links_footer"> <h4>{l s='Products' mod='blockcms'}</h4> <ul class="toggle-footer bullet"> {if $show_best_sales && !$PS_CATALOG_MODE} <li class="item"> <a href="{$link->getPageLink('best-sales')|escape:'html':'UTF-8'}" title="{l s='Top sellers' mod='blockcms'}">{l s='Top sellers' mod='blockcms'}</a> </li> {/if} {if $show_price_drop && !$PS_CATALOG_MODE} <li class="item"> <a href="{$link->getPageLink('prices-drop')|escape:'html':'UTF-8'}" title="{l s='Specials' mod='blockcms'}">{l s='Specials' mod='blockcms'}</a> </li> {/if} {if $show_new_products} <li class="item"> <a href="{$link->getPageLink('new-products')|escape:'html':'UTF-8'}" title="{l s='New products' mod='blockcms'}">{l s='New products' mod='blockcms'}</a> </li> {/if} </ul> {$footer_text} </section> <!-- /MODULE Block footer --> {/if} Edited February 1, 2015 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2015 Share Posted February 9, 2015 Sorry to bump this thread but I cannot figure this out for the life of me! It's only on the contact page. I see now it starts at footer-container-inner and then shows at every div/ul/li until the main problem then stops. Do you guys have any ideas for directions that I can pursue? Link to comment Share on other sites More sharing options...
tuk66 Posted February 9, 2015 Share Posted February 9, 2015 Try to disable CCC for a while. Link to comment Share on other sites More sharing options...
helldog2004 Posted February 9, 2015 Share Posted February 9, 2015 (edited) easiest solution edit your css file and add this code: section.footer-block:nth-child(2) > ul:nth-child(2) > li:nth-child(2) > a:nth-child(1) {display: none;} That should remove the extra bullet. Edited February 9, 2015 by helldog2004 (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2015 Share Posted February 9, 2015 Hey tuk, I have disabled CCC except for apache optimization. Nothing has changed in spite of clearing cache. You said keep it off for a while, will anything change with time despite me clearing the cache? Thanks hell dog but unfortunately the CSS did not work (I verified it was in the stylesheet). Link to comment Share on other sites More sharing options...
tuk66 Posted February 9, 2015 Share Posted February 9, 2015 It is your theme! Nested <a> tags. The pop-up is for the "About us" element. Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2015 Share Posted February 9, 2015 Hi tuk, Thanks for checking that out for me. I'm not sure I understand what to do with that. I don't see any improper nesting in the code of blockcms.tpl: <li class="item"> <a href="{$link->getCMSLink('4', 'about-us')}" title="{l s='About Us'}">{l s='About Us' mod='blockcms'}</a> </li> Link to comment Share on other sites More sharing options...
tuk66 Posted February 9, 2015 Share Posted February 9, 2015 Check the source code of the page, not template. Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2015 Share Posted February 9, 2015 Hi tuk, I'm not seeing any of those errors when I view page source. <ul class="toggle-footer bullet"> <li class="item"> <a href="http://shopiwillbringchange.com/en/content/4-about-us" title="About Us">About Us</a> </li> Link to comment Share on other sites More sharing options...
tuk66 Posted February 9, 2015 Share Posted February 9, 2015 I'm using Firefox and the <a> element is red on my source code page. The pop-up will appear on it. So there is an unclosed <a> tag somewhere on the page. That is the problem. You need to check all <a> tags on the page. Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2015 Share Posted February 9, 2015 Ah! Wow, I feel so stupid now. How could I have missed something so simple. Thank you my friend! Much appreciated. Link to comment Share on other sites More sharing options...
tuk66 Posted February 9, 2015 Share Posted February 9, 2015 You have missed nothing. I have seen that strange issue and the red element the first time as well. We can always learn something new. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now