juanma Posted December 2, 2019 Share Posted December 2, 2019 Hi,I am trying to add this information in the clientareahome.tpl template and I can't do it, can you please help me with this?thank you very much 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 2, 2019 Share Posted December 2, 2019 1 hour ago, juanma said: I am trying to add this information in the clientareahome.tpl template and I can't do it, can you please help me with this? if you already have the html code that produces that output, have you tried copy&pasting it into clientareahome.tpl ?? you could add it to the bottom of the file, and then move it to suit your needs. 0 Quote Link to comment Share on other sites More sharing options...
juanma Posted December 4, 2019 Author Share Posted December 4, 2019 You don't do Hooks through? Is it just paste the HTML code only? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 4, 2019 Share Posted December 4, 2019 8 hours ago, juanma said: You don't do Hooks through? it depends where on the page you want to output this content - if you want to display it above the homepage panels, then you could use a ClientAreaHomepage hook and that would output the html between the MarketConnect banner (if you sell MC products) and the panels... <?php add_hook('ClientAreaHomepage', 1, function($vars) { return "Hello World"; }); if you don't offer MC products, then this output will appear between the knowledgebase search form and the panels - note that the hook can include html in it's output. however, I assumed that you would want to add the output to the bottom of the page, after the panels - you can't really use hooks to specify where on a page the output will be shown, the template will be designed to display the output of these hooks in a specific place... the only realistic workaround to that would be a jQuery hook, but then you would have to specify it display after a specific HTML tag, which may not be possible depending on where the output is going to be. 9 hours ago, juanma said: Is it just paste the HTML code only? without knowing your site, template and where exactly the output is supposed to be, adding HTML to the template is the simplest solution. 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.