lepusa Posted June 10, 2015 Share Posted June 10, 2015 How would we add a custom line of text such as this below the Store Information block on the right side of the footer?Office Hours: Monday - Friday, 9am - 4 pm Pacific Here is our site: http://leadingedgeproducts.com/store/ Link to comment Share on other sites More sharing options...
pishkus Posted June 10, 2015 Share Posted June 10, 2015 Edit file themes/default-bootstrap/modules/blockcontactinfos/blockcontactinfos.tpl Link to comment Share on other sites More sharing options...
lepusa Posted June 10, 2015 Author Share Posted June 10, 2015 Thanks, I tried that with no luck. Here is what I did: <!-- MODULE Block contact infos --> <div id="block_contact_infos"> <h4 class="title_block">{l s='Contact us' mod='blockcontactinfos'}</h4> <ul> <i class="icon-map-marker"></i> {$blockcontactinfos_company|escape:'html':'UTF-8'}{if $blockcontactinfos_address != ''}, <br /> {$blockcontactinfos_address|nl2br}{/if} {if $blockcontactinfos_address != ''}<li><pre>{$blockcontactinfos_address|escape:'html':'UTF-8'}</pre></li>{/if} {if $blockcontactinfos_phone != ''}<li>{l s='Tel' mod='blockcontactinfos'} {$blockcontactinfos_phone|escape:'html':'UTF-8'}</li>{/if} {if $blockcontactinfos_email != ''}<li>{l s='Email:' mod='blockcontactinfos'} {mailto address=$blockcontactinfos_email|escape:'html':'UTF-8' encode="hex"}</li>{/if} </ul> <p>Leading Edge Products<br /> 4867 Mercury Street<br /> San Diego, California 92111<br /> Office Hours: Monday - Friday, 9am - 4 pm Pacific </p> </div> <!-- /MODULE Block contact infos --> Why isn't that working? And the bigger question... why in the #@%% can't you just include things like phone number, business hours, etc. in the footer via the admin GUI? I'm sure there are plenty of people who would like to have more than just the address showing! Link to comment Share on other sites More sharing options...
Paulito Posted June 10, 2015 Share Posted June 10, 2015 (edited) Hello themes/default-bootstrap/modules/blockcontactinfos/blockcontactinfos.tpl <i class="icon-envelope-alt"></i>{l s='Email:' mod='blockcontactinfos'} <span>{mailto address=$blockcontactinfos_email|escape:'html':'UTF-8' encode="hex"}</span> </li> {/if} <li><h5>Office Hours: Monday - Friday, 9am - 4 pm Pacific</h5></li> (add this line) </ul> </div> </section> <!-- /MODULE Block contact infos --> Of course you can only use one language doing it this way Result http://screencast.com/t/OL7H6Ltc Paul Edit: Sorry pishkus i had not realised you had already answered Edited June 10, 2015 by Paulito (see edit history) Link to comment Share on other sites More sharing options...
pishkus Posted June 10, 2015 Share Posted June 10, 2015 Did you clear the cache? And another thought - instead of adding separate text to the tpl file, maybe you should add the working hours into the address field? Link to comment Share on other sites More sharing options...
lepusa Posted June 10, 2015 Author Share Posted June 10, 2015 Did you clear the cache? And another thought - instead of adding separate text to the tpl file, maybe you should add the working hours into the address field? Yes, I cleared cache. Turns out I was editing the wrong file: modules/blockcontactinfos/blockcontactinfos.tpl Instead of this file as you mentioned: themes/default-bootstrap/modules/blockcontactinfos/blockcontactinfos.tpl I'm still baffled as to why this option would be hidden in the admin. I did find this commented out code in the above file: <!-- {if $blockcontactinfos_company != ''} <li> <i class="icon-map-marker"></i>{$blockcontactinfos_company|escape:'html':'UTF-8'}{if $blockcontactinfos_address != ''}, {$blockcontactinfos_address|escape:'html':'UTF-8'}{/if} </li> {/if} {if $blockcontactinfos_phone != ''} <li> <i class="icon-phone"></i>{l s='Call us now:' mod='blockcontactinfos'} <span>{$blockcontactinfos_phone|escape:'html':'UTF-8'}</span> </li> {/if} {if $blockcontactinfos_email != ''} <li> <i class="icon-envelope-alt"></i>{l s='Email:' mod='blockcontactinfos'} <span>{mailto address=$blockcontactinfos_email|escape:'html':'UTF-8' encode="hex"}</span> </li> {/if} --> I had previously tried adding the Hours info to the Address, but it didn't work; any line breaks I entered via the admin got stripped out during save. So apparently the address info can only contain three lines, how lame for people with longer addresses. 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