Support Center
Visit Demo
License manager
Buy @ envato
toggle menu
Categories
Discussions
Activity
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Activity
Sign In
·
Register
×
Home
›
Theme support
Hooks for a specific page only
beinir
May 2020
in
Theme support
Hello,
How can I add content to a hook only on a specific page and not in all pages of the theme ?
I would like to add something to the "mfn_hook_content_before" hook only on this page.
https://covid19.groupealliances.com/categorie-produit/gel-antibacterien/
Thanks
Comments
Pablo
May 2020
Hello,
Sadly, it will not be possible - Muffin Builder does not allow to do that kind of hooks on single pages only.
thanks
beinir
May 2020
Is there any other way to add content in this space, via the editor or anything else ?
If not, this is a huge fail for the theme... I will definetly give it a negative feedback on envato.
Pablo
May 2020
Sadly, there is no way to do that - as I said, you can only insert it globally.
But, it sounds like a good idea, please attach that suggestion in this topic:
https://forum.muffingroup.com/betheme/discussion/113/your-suggestions-for-future-updates#latest
For now, to achieve that, you would have to create new template in the wordpress settings to achieve that.
Thanks
beinir
May 2020
Can you still assign a template to a specific page ?
That would be a possible way to do that.
Otherwise, can I edit the functions.php of the CHild theme to add that hook to a specific page ?
Pablo
May 2020
Of course you can assign the template to specific page, this is basic wordpress functionality.
https://prnt.sc/sgim3v
You would have to use the Child Theme and attach the new template, see the codex of wordpress to understand how to do that:
https://developer.wordpress.org/themes/template-files-section/page-template-files/
This will be the most easy way, hook to specific page will not be a good solution at all.
thanks
Sign In
or
Register
to comment.
Comments