Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 27-03-2012
Member
 
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
Reply With Quote
  #2  
Old 15-06-2012
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Need help editing the code"
Thread Thread Starter Forum Replies Last Post
About VBScript Editing Modifier Software Development 2 02-09-2009 05:34 PM
PSP hex editing Gorganzola Video Games 2 26-06-2009 05:49 PM
DVD Editing Software Arval Windows Software 4 28-03-2009 02:25 PM
Editing font Waztek Customize Desktop 4 04-02-2009 08:41 PM
Editing Keyboard bayz Hardware Peripherals 1 08-12-2008 02:33 PM


All times are GMT +5.5. The time now is 04:23 PM.