Hi,
I am trying to include HTML in my banner slideshow title to create HTML text on the banner, but it is outputting the code as code. For example, instead of creating a h1, it displays: <h1>text</h1>
Any ideas how I can allow it to output the actual HTML?
Also, for some reason, my banners are being compressed slightly. Is there a way I can stop this from happening?
Thanks!
I am trying to include HTML in my banner slideshow title to create HTML text on the banner, but it is outputting the code as code. For example, instead of creating a h1, it displays: <h1>text</h1>
Any ideas how I can allow it to output the actual HTML?
Also, for some reason, my banners are being compressed slightly. Is there a way I can stop this from happening?
Thanks!
A quick fix for this would to edit catalog\view\theme\default\template\module\slideshow.tpl
Change
to somthing like
What do you mean by "compressed slightly"? Do you mean dimensions or file size?
Change
Code: Select all
<a href="<?php echo $banner['link']; ?>"><img src="<?php echo $banner['image']; ?>" alt="<?php echo $banner['title']; ?>" /></a>
Code: Select all
<a href="<?php echo $banner['link']; ?>"><img src="<?php echo $banner['image']; ?>" alt="" /></a>
<?php echo $banner['title']; ?>
This fix may help with that. You may need to clear the image cache after doing the changes.
https://github.com/opencart/opencart/co ... df2971ff86
https://github.com/opencart/opencart/co ... df2971ff86
I would try to keep you banners under 300k as bigger images will take a long time to load.
If you do need lager files you will have to edit admin\controller\common\filemanager.php and change this line.
If you do need lager files you will have to edit admin\controller\common\filemanager.php and change this line.
Code: Select all
if ($this->request->files['image']['size'] > 300000) {
Who is online
Users browsing this forum: No registered users and 11 guests