mobmaster Posted July 25, 2011 Share Posted July 25, 2011 Hi to all. I'm new to presta and smary is a nightmare for me. I need to remove "categories block (top)" from presta alt theme because i have to much categories and cant fit on the screen. But in place of that module i need to put some cms content for eg i can put home, contact, about us etc? Styling is ok youst content to change. I attach picture of what I need to do. Please help because I tray and no luck for now. Thanks in advance. Link to comment Share on other sites More sharing options...
mobmaster Posted July 26, 2011 Author Share Posted July 26, 2011 any one please? Link to comment Share on other sites More sharing options...
Snade Posted July 26, 2011 Share Posted July 26, 2011 Hi you can edit the file blockcategoriestop.tpl (modules/blockcategoriestop) like this: <div> <a href="{$base_dir}" class="v2-blockcategoryhome"> </a> <ul class="v2-blockcategoriestop"> <li> <a href="http://www.LINK-TO-THE-CMS-PAGE.com/"> <span>MENU TITLE HERE</span> </a> </li> <li> <a href="http://www.LINK-TO-THE-CMS-PAGE.com/"> <span>MENU TITLE HERE</span> </a> </li> <li> <a href="http://www.LINK-TO-THE-CMS-PAGE.com/"> <span>MENU TITLE HERE</span> </a> </li> <ul> <div class="flatclear"> </div> </div> it will do the job. Link to comment Share on other sites More sharing options...
mobmaster Posted July 27, 2011 Author Share Posted July 27, 2011 THX Snade but it dont do the job. I try it and nothing happens. Do I need to change blockcategoriestop.php and how? Link to comment Share on other sites More sharing options...
Snade Posted July 27, 2011 Share Posted July 27, 2011 THX Snade but it dont do the job. I try it and nothing happens. Do I need to change blockcategoriestop.php and how? dont know where you've done wrong, but I've copied this code from working site with the alt theme. Maybe you can try to add links by yourself, just keep the structure <ul> <li></li> <li></li> <li></li> </ul> Link to comment Share on other sites More sharing options...
mobmaster Posted July 27, 2011 Author Share Posted July 27, 2011 I try but still nothing! I can delete whole content of blockcategoriestop.tpl or write any code i want and there is no changing. Always the same. But changings made in blockcategoriestop.php are visible or end up with error. How can I add tohse link in blockcategoriestop.php? This really kills me. Link to comment Share on other sites More sharing options...
mobmaster Posted July 28, 2011 Author Share Posted July 28, 2011 Thenk you Snabe. That simple code do the job. My fault is because i did not turn on force compile. I was tortured for days because I forgot to turn it on. Snabe you have beer from me:) THX 1 Link to comment Share on other sites More sharing options...
mobmaster Posted July 30, 2011 Author Share Posted July 30, 2011 or you can do like this but ti needs some styling: <div style="margin-top:8px"> <a href="{$base_dir}" class="v2-blockcategoryhome"> </a> <ul class="v2-blockcategoriestop"> <li> <a href="{$blockcategoriestop_category.link}"> <span>{$blockcategoriestop_category.name}</span> </a> </li> <ul> <div class="flatclear"> </div> <div> <a href="{$base_dir}" class="v2-blockcategoryhome"> </a> <ul class="v2-blockcategoriestop"> <li><a href="{$link->getPageLink('contact-form.php', true)}" title="{l s='Contact us' mod='blockpermanentlinks'}">{l s='Contact us' mod='blockpermanentlinks'}</a></li> <li><a href="{$link->getPageLink('stores.php')}" title="{l s='Our stores' mod='blockpermanentlinks'}">{l s='Our stores' mod='blockpermanentlinks'}</a></li> <ul> <div class="flatclear"> </div> </div> </div> Link to comment Share on other sites More sharing options...
Ugyen Posted August 3, 2011 Share Posted August 3, 2011 Thenk you Snabe. That simple code do the job. My fault is because i did not turn on force compile. I was tortured for days because I forgot to turn it on. Snabe you have beer from me:) THX Hi, i got the same problem. But I didn't get from where to turn on force compile. Lucky you, can you please help me, please... Thanks Link to comment Share on other sites More sharing options...
mobmaster Posted August 5, 2011 Author Share Posted August 5, 2011 sory if I'm late. Go to admin panel and Back Office >Preferences >Performance force compile: yes Cache: no 1 Link to comment Share on other sites More sharing options...
spirals Posted August 24, 2011 Share Posted August 24, 2011 OH MY GOD!!!! No wonder I can never see changes! Thank you so much. Link to comment Share on other sites More sharing options...
Ugyen Posted September 8, 2011 Share Posted September 8, 2011 thank you very much, mob Link to comment Share on other sites More sharing options...
maylat Posted May 11, 2012 Share Posted May 11, 2012 sory if I'm late. Go to admin panel and Back Office >Preferences >Performance force compile: yes Cache: no i love uuu mobmaster my changes work now with these changes 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