Jump to content

[SOLVED] How to Add useful links to homepage?


Recommended Posts

Hello everyone,

A rather simple question, but I didn't find how to add links to homepage.

 

Three columns are currently displayed on the bottom of my homepage: Categories, Information and, My Account. 

 

If possible, I'd like to add a fourth column with "Useful links" or "Products" as a title, and then display all the links I need under that column. Do you know how to do add those links?

 

Thanks in advance

Link to comment
Share on other sites

Hey vekia,

 

thanks for your reply. A couple of questions coming to mind right now:

 

1) Does this module re-write over the current links in the  footer? If it does, what about the links currently displayed?

 

2) Can I download the module from the back office?

 

3) Would you have an easy example on how to add links?

 

4) Is there another way to add links in Prestashop?

Link to comment
Share on other sites

1) module doesn't overwrite links in footer, if you don't want them - you can disable them in modules tab in back office

2) you can download module only from topic that i created on forum, and also from my website. 

3)

<div class="block_various_links" id="block_various_links_footer">
		<p class="title_block">Information</p>
		<ul>
			<li class="first_item"><a href="http://URL_TO_YOUR_WEBSITE_HERE/gb/prices-drop" title="Specials">Specials</a></li>			<li class="item"><a href="http://URL_TO_YOUR_WEBSITE_HERE/gb/new-products" title="New products">New products</a></li>
			<li class="item"><a href="http://URL_TO_YOUR_WEBSITE_HERE/gb/best-sales" title="Top sellers">Top sellers</a></li>			<li class="item"><a href="http://URL_TO_YOUR_WEBSITE_HERE/gb/stores" title="Our stores">Our stores</a></li>			<li class="item"><a href="https://apps.facepages.eu/prestashop/gb/contact-us" title="Contact us">Contact us</a></li>
												<li class="item"><a href="http://URL_TO_YOUR_WEBSITE_HERE/gb/content/3-terms-and-conditions-of-use" title="Terms and conditions of use">Terms and conditions of use</a></li>
																<li class="item"><a href="http://URL_TO_YOUR_WEBSITE_HERE/gb/content/4-about-us" title="About us">About us</a></li>
										<li><a href="http://URL_TO_YOUR_WEBSITE_HERE/gb/sitemap" title="sitemap">Sitemap</a></li>
			<li class="last_item">Powered by <a class="_blank" href="http://www.prestashop.com" target="_blank">PrestaShop</a>™</li>		</ul>
	
	</div>

4) you can use block links module and use it in footer section

Link to comment
Share on other sites

2) Downloaded your module, but when I want to add it as a module in prestashop, it says "unknown archive type". What am i missing?

 

4) Added a link in block links, but I can't see anything on the homepage. How do i make the link visible?

Link to comment
Share on other sites

20 instead of downloading archive try to use direct link to the archive with module (in module tab page you see probably field where you can use direct url instead of archive file)

 

4) you see block with links? or just you don't see one link?

Link to comment
Share on other sites

link block = block links 

 

what you mean by:

 

 

Second, should I select "display footer" from the list, as there's no "transplant" in the list?

 

let me explain, just follow these steps:

1) open modules > positions

2) click on transplant button: http://i.imgur.com/qnG127q.png

3) select link block module from dropdown, then select displayFooter module, click save http://i.imgur.com/4xPIX4x.png

Link to comment
Share on other sites

open file: modules/blocklink/blocklink.php

 

after this code:
 

public function hookRightColumn($params)
	{
		return $this->hookLeftColumn($params);
	}

add this one:

public function hookFooter($params)
	{
		return $this->hookLeftColumn($params);
	}

then try to transplant module once again

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Hi Milos,

 

I'm using PS 1.6.0.8 Default bootstrap theme. Just downloaded your excellent module, thanks. I have two questions however:

 

1) When adding code and hit save settings, the code changes with loads of quotes: 

<div class="\"\\"block_various_links\\"\"" id="\"\\"block_various_links_footer\\"\"">
<p class="\"\\"title_block\\"\"">Information</p>
<ul>
<li><a href="\"\\"#;\\"\"">Shipping</a></li>
<li>Repair Service</li>
<li>Paying Methods</li>
<li>Terms & Conditions</li>
<li>Product care & composition</li>
</ul>
</div>

I disabled the Use HTMLPurifier Library option.

 

2) I would like the module to be displayed on the right side, next to My Account block (see attachment). But I can't seem to find out how. Could it have to do with the issue stated in my first question?

 

Thanks in advance!

 

Cheers,

 

Steven

Link to comment
Share on other sites

Just moved to a newer server and indeed, problem solved. It must be a CSS thing but I can't get the module to be displayed on the right side, next to My Account block. Here's my code in your module:

<section class="footer-block col-xs-12 col-sm-2" id="block_various_links_footer">
<div>
<h4>F.A.Q.</h4>
<ul>
<li><a href="#">Shipping</a></li>
<li><a href="#">Repair Service</a></li>
<li><a href="#">Paying Methods</a></li>
<li><a href="#">Terms & Conditions</a></li>
<li><a href="#">Product care & composition</a></li>
</ul>
</div>
</section>

Cheers,

 

Steven

Link to comment
Share on other sites

×
×
  • Create New...