Jump to content

Customize "blockrss" Module


Recommended Posts

I've installed prestashop 1.6.1.4, and blockrss module.

I have a blog in wordpress and I want to add the last entries to the displayright hook in store. I did with blockrss, It worked and it shows the titles of last entries.

But I Want to show featured image of post and title both.

How can I do that?

Edited by Rosha (see edit history)
Link to comment
Share on other sites

  • 1 month later...

Hi,
For show the featured image, in blockrss.tpl replace this code:
 

<!-- Block RSS module-->
<div id="rss_block_left" class="block">
	<p class="title_block">{$title}</p>
	<div class="block_content">
		{if $rss_links}
			<ul>
				{foreach from=$rss_links item='rss_link'}
					<li><a href="{$rss_link.url}"><img src="{$rss_link.image}">{$rss_link.title}</a></li>
				{/foreach}
			</ul>
		{else}
			<p>{l s='No RSS feed added' mod='blockrss'}</p>
		{/if}
	</div>
</div>
<!-- /Block RSS module-->

The featured image code is "<img src="{$rss_link.image}">" .

 

You can add style to it.

Edited by Siaavash (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Hi,

For show the featured image, in blockrss.tpl replace this code:

 

<!-- Block RSS module-->
<div id="rss_block_left" class="block">
	<p class="title_block">{$title}</p>
	<div class="block_content">
		{if $rss_links}
			<ul>
				{foreach from=$rss_links item='rss_link'}
					<li><a href="{$rss_link.url}"><img src="{$rss_link.image}">{$rss_link.title}</a></li>
				{/foreach}
			</ul>
		{else}
			<p>{l s='No RSS feed added' mod='blockrss'}</p>
		{/if}
	</div>
</div>
<!-- /Block RSS module-->

The featured image code is "<img src="{$rss_link.image}">" .

 

You can add style to it.

 

Oh, Thank You,

Link to comment
Share on other sites

  • 2 years 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...