cancel
Showing results for 
Search instead for 
Did you mean: 

Custom footers

Custom footers

Hello good people.

 

So I have 2 footers, both of them are widgets containing a static block.

one of them was set to (layout updates) Display on: all pages container: PageFooter.

The other is set to Display on: Specific Page, Page: CMS Pages (All).

 

It is the second one that is giving me a bit of a headache.

The second one needs to display on all CMS pages EXCEPT for the Home Page.

How would I go about doing this?

 

And there's another problem I have with Magento 2.

It happens quite often that a page loads and tries to fire JS functions BEFORE the required JS files are loaded.

I often have to use CTRL F5 and than all of a sudden it's fine again, I stroll through the pages and out of the blue it happens again.

It doesn't seem to happen solely on specific pages, but on all pages about 30% of the time.

I literally stay on the same page and press F5 a couple of times and I get the JS problem 3 out of 10 times.

 

Anyone aware of what causes this and how to solve it?

 

 

Cheers and thanks,

 

Mark

1 REPLY 1

Re: Custom footers

@MarkCarolus For CMS widget there are two ways.. If you have limited CMS pages then can create widget for specific page (I guess may now you've created for All pages) However if have more CMS pages then you need to write little piece of code..

 

Enable developer debug path hint from (System >> Configuration >> Developer  >> Enable template path hint) And check from which file content appear and put below condition on above of code.

 

if(Mage::getBlockSingleton('page/html_header')->getIsHomePage())
{
  .. . .
}

Good luck 

-
Magento Programmer | Was my answer helpful? You can accept it as a solution.