WordPress.org

Support

Support » How-To and Troubleshooting » How to add the output of a function in your template

How to add the output of a function in your template

  • Hi all

    I am trying to customize wp e-commerce dropshop to a vertical drop shop on a specific place in my template.

    for this i like to add the dropshop code right after
    <body ><page >here

    on default the drag_and_drop_cart is added at the footer. Now when i do:

    add_action('wp_head', 'drag_and_drop_cart');
    //add_action('wp_footer', 'drag_and_drop_cart');

    The dropshop code is before <body> tag of course.

    Any tips, info??

Viewing 1 replies (of 1 total)
  • found it

    add_action('drag_and_drop_cart','drag_and_drop_cart');
    do_action('drag_and_drop_cart');
Viewing 1 replies (of 1 total)
  • The topic ‘How to add the output of a function in your template’ is closed to new replies.