Jump to content

How to edit presta alt theme (modul position and styling)


Recommended Posts

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.

post-273115-0-89382000-1311630380_thumb.jpg

Link to comment
Share on other sites

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

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

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

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

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

  • 3 weeks later...
  • 3 weeks later...
  • 8 months later...

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...