Fr3DBr Posted August 18, 2016 Share Posted August 18, 2016 Hi, Is there a way to add custom tabs without modifying the official templates ? Maybe through hooking or so ? (It loads these tabs from somewhere and it is done programatically, I'm interested in intercepting and modifying this part of the code). 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted August 18, 2016 Share Posted August 18, 2016 only using JavaScript code, it can be done but might be tricky based on what you like to achieve with it 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted August 18, 2016 Share Posted August 18, 2016 For back-end you could use AdminAreaHeaderOutput and ClientAreaHeaderOutput for front-end and attach a jquery script to add your HTML after a certain selector like follows: function AddStuffViajquery($vars) { $output .= "<script type=\"text/javascript\"> $(document).ready(function(){ $('#find-this-id').after('<p>I am sexy</p>'); }); </script>"; return $output; } add_hook("AdminAreaHeaderOutput",1,"AddStuffViajquery"); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.