WordPress.org

Forums

How to add the output of a function in your template (2 posts)

  1. DDT
    Member
    Posted 5 years ago #

    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??

  2. DDT
    Member
    Posted 5 years ago #

    found it

    add_action('drag_and_drop_cart','drag_and_drop_cart');
    do_action('drag_and_drop_cart');

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags