Jump to content
juanma

How to display this info

Recommended Posts

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

Screenshot_2019-12-02.png

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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