Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Donate/Purchase button in header #219089

    I get this error message … what am I missing?

    add_filter( 'wp_nav_menu_items', 'avia_append_paypal', 10, 2 );

    function avia_append_paypal ( $items, $args )
    {

    if ((is_object($args) && $args->theme_location == 'avia') || (is_string($args) && $args = "fallback_menu"))
    {
    global $avia_config;
    ob_start();
    ?>

    <!– <form action=”https://www.paypal.com/cgi-bin/webscr&#8221; method=”post” target=”_top”>
    <input type=”hidden” name=”cmd” value=”_s-xclick”>
    <input type=”hidden” name=”hosted_button_id” value=”EZHM85HZJNUKL”>
    <input type=”image” src=”https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif&#8221; border=”0″ name=”submit” alt=”PayPal – The safer, easier way to pay online!”>

    </form>

    –>
    ""

    <?php
    $paypal_link = ob_get_clean();

    $items .= '<li id="menu-item-paypal" class="noMobile menu-item">'.$paypal_link.'';
    }
    return $items;
    }

Viewing 1 post (of 1 total)