Add specific footer content to specific pages

Hi Themeco Team,

I need to add a line of HTML in the footer content, but it can only show on a specific page – not all pages, as it does by default. Can you suggest a way to accomplish this?

Thank you!

Hi,

The simplest way is to wrap your content in a div with a class.

For example

<div class="my content">
         My Content
</div>

Then hide and show it using css.

Add this in Theme Options > CSS

.my-content {
     display:none;
}

.page-id-1 .my-content {
     display:block;
}

Where 1 is the page id of the page you want to show your content.

Here is our guide on how to find the page id.

Hope this helps

Excellent, works great. Thank you!

You’re welcome!
We’re glad @Paul.r were able to help you out.

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