- This topic has 7 replies, 2 voices, and was last updated 6 months, 1 week ago by
David.
-
AuthorPosts
-
August 26, 2020 at 6:05 am #1418849
Maria Rowena
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! π
August 26, 2020 at 7:06 am #1418917David
StaffCustomer SupportHi there,
how are you adding the ‘sticky banner’ to your site ?
You could insert it using a Hook Element and the set Displays Rule to control where its displayed.
https://docs.generatepress.com/article/hooks-element-overview/
Let me know
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 27, 2020 at 7:28 am #1420421Maria Rowena
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. π
August 27, 2020 at 7:55 am #1420613David
StaffCustomer SupportWhich plugin are you using ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 27, 2020 at 7:59 am #1420622Maria Rowena
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
August 27, 2020 at 8:06 am #1420628David
StaffCustomer SupportFound this:
https://www.aakashweb.com/forum/topic/announcer-shortcode/
The author provides instructions and PHP which could be added to a Hook Element.
The element will allow you to set its display rulesGive that a shot – let me know.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 27, 2020 at 9:06 am #1420727Maria Rowena
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! π
August 27, 2020 at 9:24 am #1420750David
StaffCustomer SupportAwesome – glad to be of help π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.