Site logo

Archived topic

Add Custom Footer Class that applies on a particular custom post type

7 replies · Started by Maria Rowena on August 26, 2020

Viewing posts 1–8 of 8

Hello Support Team,

Is there a way to add custom footer class that only applies in a particular custom post type? or custom post categories? I'm trying to find a way that I can hide a sticky banner footer using CSS.

And this is my work around to do it. I will target the custom footer class together with the sticky footer bar and hide it using CSS. This will let me show it to other post or categories. Do you think this is the best way?

Thank you so much! :)

Hello David,

Actually, I am using a plugin to display a sticky banner footer. It doesn't have a short code or widget that I can use to insert in generate press hook.

By the way, can I put CSS code in the hook element? I am really wondering how to do this. Sorry, not an expert developer here.

What I am thinking right now is to display the sticky banner in Custom post type "courses" and conditionally hide it depending on course categories or specific course post.

What do you think?

Thank you so much in advance. :)

Which plugin are you using ?

I use announcer plugin.

https://wordpress.org/plugins/announcer/

It has filter display function but it does not work on custom post type categories or per post basis.

Really appreciate your help David

Thanks

David you're a rockstar!

It works! I failed to see that PHP function in the Plugin author's website.

Thank you so much for your help! :)

Awesome - glad to be of help :)

This archived topic is closed to new replies.