Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #1176843


    I am working with a third-party marketer and they requested for a tracking pixel to be placed in the header of a button. I built the page using the Advanced Layout Builder and just used the standard avia buttons. Do you know if there’s a way to add a tracking code to the Schedule a Consultation button? Let me know if you can help, thanks!

    • This topic was modified 4 months, 1 week ago by  MJM.

    Hey Kirstie,

    Please do the following:
    1. If you already have a child theme, please skip this step, if not follow the instructions in our documentation:
    2. Then do the instructions here:
    3. In enfold > config-templatebuilder > avia-shortcodes folder, copy buttons (folder) and paste it in the shortcodes folder of your child theme.
    4. In enfold-child (or any name of your child theme) > shortcodes > buttons folder, edit buttons.php and find this code (line 456 in Enfold 4.7.2):

    $content_html .= "<span class='avia_iconbox_title' >{$atts['label']}</span>";

    below it add this code:

    if( $atts['label'] == 'Translucent Dark' ) {
    	$content_html .= '<img src="" width="1" height="1"></img>';

    5. Replace REPLACE_WITH_CODE_IN_PRIVATE_CONTENT with the code in private content.
    Hope this helps.

    Best regards,

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.