Jump to content

How to display this info


juanma

Recommended Posts

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.

Link to comment
Share on other sites

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";
});

HWx1bQk.png

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated