cancel
Showing results for 
Search instead for 
Did you mean: 

Adding banners to Catalog Advanced Search page

SOLVED

Adding banners to Catalog Advanced Search page

HI,

I want to add a banner to the Advanced search page. But I can seem to find the cms page to do this. I have found the Form.html but not sure how I would add the banner to this page which is Catalog Advanced Search.

Any help would be great Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Adding banners to Catalog Advanced Search page

You need to just create one Static block and set image inside those block.

Now you have found which phtml file is called when catalog advanced search page is rendered, Now you need to call those static block in phtml file by below way,

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_identifier')->toHtml(); ?>

Where block_identifier is your static block id address.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

View solution in original post

1 REPLY 1

Re: Adding banners to Catalog Advanced Search page

You need to just create one Static block and set image inside those block.

Now you have found which phtml file is called when catalog advanced search page is rendered, Now you need to call those static block in phtml file by below way,

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_identifier')->toHtml(); ?>

Where block_identifier is your static block id address.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial