when i add a new banner from the admin page, it shows a small button in the banner from the front end view and when the button is clicked it redirects them to a certain link.

i want to remove this button and instead of click on the button to redirect i want it to be on the image.

Current code in the banner configuration:

<?php if($banner->getUrl()): ?>
                                <button onclick="setLocation('<?php echo $banner->getUrl();?>')" class="button btn-readmore" title="<?php echo $this->__('Shop Now');?>" type="button"><span><span><?php echo $this->__('Shop Now');?></span></span></button>
                            <?php endif; ?>

thank you

  • You can just remove above code add anchor tag to image with href="<?php echo $banner->getUrl();?>". – Pawan Oct 13 at 13:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.