- This topic has 7 replies, 3 voices, and was last updated 2 years ago by David.
November 19, 2019 at 1:24 pm #1067786Michael
Howdy! This is probably a dumb question, but I am trying to figure out a simple way to hook AFTER the copyright? I am currently using the “generate_before_copyright” hook in order to add something to the footer without having to modify template files, but I was wondering if there might be a way to have something like a “generate_after_copyright” hook?
Thanks so much, the work you guys do is amazing! I’ve been working with this theme now for about a year and I have been consistently impressed by numerous aspects.November 19, 2019 at 4:06 pm #1067878DavidStaffCustomer Support
after_footerhook will do the trick.
You can see all the main hooks here:
Glad to hear you’re enjoying the Theme 🙂November 19, 2019 at 9:55 pm #1068020Michael
Right, and I actually looked at that hook initially. The problem is that I actually want the content to appear inside the footer element, just like the “generate_before_copyright” allows. The “after_footer” content doesn’t appear until after the footer element has been closed out, which makes sense given the hook name.
That’s why I’m hoping for something that basically does the same thing as “generate_before_copyright” except that I want it after the copyright. I’d still like the content to be inside the containing footer itself.
Sorry I wasn’t more specific! I know the hook I want doesn’t actually exist, at least based on the current documentation… but I’m curious as to why that is? Or perhaps there is just another way to accomplish this that I’m missing? Perhaps I can filter the copyright itself and just append my content? Or maybe I can create a custom hook somehow to accomplish this? Or maybe there’s another hook I’m missing!
Even when I tried using the “generate_credits” hook, my content was still rendered just before my site’s copyright message. But there may be a way to leverage that hook I’m just not seeing.November 20, 2019 at 4:26 am #1068245LeoStaffCustomer Support
after_footerhook should work as David pointed out.
We might just need to add some style in to match with the copyright.
Can you add the content in so we can see the issue?
Let me know 🙂November 20, 2019 at 9:06 am #1068715Michael
Thanks for the followup!
Unfortunately, the site is still sitting on my local dev environment so sharing it would be difficult. I know, annoying. But I took some screenshots of the scenario source codes to help better illustrate my issue/request. The content I’m adding with the hook in each example is the highlighted “EVERYTHING IS GREAT” div.
Here is what I’m getting with “generate_after_footer”
And here is what I’m getting with “generate_before_copyright”
I could style the “generate_after_footer” version to match the footer style, sure! But because of the way I’m hoping to style some of the site content (and some other issues which I’ll spare you of detailing), it would really be a lot easier overall if I could have my modified content appear inside the footer just like the “generate_before_copyright” hook supports. I just want it after the “copyright-bar” div instead of before it.
So this is what I’m shooting to accomplish:
Thanks again for taking the time to even read through this! I know it’s a nit-picky request. At the end of the day I can always resort to modifying the footer via a template file. I was just really hoping to avoid that.November 20, 2019 at 9:19 am #1068733DavidStaffCustomer SupportNovember 20, 2019 at 9:28 am #1068744Michael
Nice, I’ll definitely settle for having it inside the copyright-bar div if I can’t have it after it!
Great idea, and thanks so much for the help on this 🙂November 20, 2019 at 9:34 am #1068754
- You must be logged in to reply to this topic.