Are custom footers always global?

Hi,

I’m very familiar with WordPress but it seems X Theme has a lot more options when it comes to sidebars and footers and I find implementing them confusing.

I’ve been given some Javascript tracking code that should be added to individual form pages. Thus, I can’t put it in the global JS box because that would apply it to every page, and I want to apply the code only to the page that has that form.

So, since we aren’t using the custom footers at all, I thought I could make a footer just for the page with the form and add the javascript to the HTML text widget. However, when I tried this it seemed to add the widget to the home page, which was not the page I wanted to edit. Here’s what I did:

  1. In Sidebars, I created a new sidebar and only checked the box next to the page with the Contact form.
  2. I added the text to the HTML widget, as well as another widget, because the first widget is invisible I added the second widget just to see visually that the new Footer is showing up.
  3. ???
  4. Profit.

I am missing a step or two, obviously. My first question: Can I have different footers on different pages? Second question: how would I go about doing that; what would be the next steps? Or third, is there a better way to add some javascript to a single page?

Thanks!

Hello There,

Thanks for posting in!

The unlimited Sidebars in Appearance > Sidebars is good for creating widgets areas. You can create a sidebar and assign it as your footer widget area. Once it is assigned, it will be set as global as always. There is no option that you can have a different footer widget areas in other pages.

What you can do is to edit the page in Cornerstone and in the Cornerstone custom js section, Custom JS, you may insert the javascript code so that it will only appear or take effect on that page alone.

Hope this helps.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.