Results 1 to 2 of 2

Thread: Need help editing the code

  1. #1
    Join Date
    Mar 2012
    Posts
    1

    Need help editing the code

    The theme uses boxes, one of them is for price plans. The link to purchase the price plan is a button. The code that creates the button is:

    PHP Code:
    '' != $button_text do_shortcode"[et_lb_button size='medium' align='center' url='" esc_url$button_url ) . "' color='{$button_color}']{$button_text}[/et_lb_button]" ) : '' ) . 
    This code outputs a linked button with the link looking like this:

    PHP Code:
    <a href="http://businesswebsitedev.com/clients/cart.php?a=add&pid=1"
    I need you to edit the code so that it outputs a linked button with the link looking like this:

    PHP Code:
    <a href="http://businesswebsitedev.com/clients/cart.php?a=add&pid=1" onclick="_gaq.push(['_link', 'http://couponcodeelite.com']);return false;"
    I am using google analytics and need the onclick function added to the link so that it works properly. The problem is that I do not know how to edit the coding so that it will output the link like I have shown you above.

    Thank you

  2. #2
    Join Date
    Jan 2006
    Posts
    605

    Re: Need help editing the code

    Can you try to stack those codes in the onclick event like this:

    Code:
        <a href="javascript:void(0);" onclick="loadevent('http://www.EXAMPLESITE.com/course/4105/register.asp');pageTracker._link('http://www.EXAMPLESITE.com/course/4105/register.asp'); return false;">Register</a>
    It will be able to run all of the commands as long as they're separated by semi-colons.

Similar Threads

  1. About VBScript Editing
    By Modifier in forum Software Development
    Replies: 2
    Last Post: 02-09-2009, 05:04 PM
  2. PSP hex editing
    By Gorganzola in forum Video Games
    Replies: 2
    Last Post: 26-06-2009, 05:19 PM
  3. DVD Editing Software
    By Arval in forum Windows Software
    Replies: 4
    Last Post: 28-03-2009, 01:55 PM
  4. Editing font
    By Waztek in forum Customize Desktop
    Replies: 4
    Last Post: 04-02-2009, 08:11 PM
  5. Editing Keyboard
    By bayz in forum Hardware Peripherals
    Replies: 1
    Last Post: 08-12-2008, 02:03 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,638,001,229.98450 seconds with 17 queries