Tagged: ,

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

    Hi there,

    Can you please point me to where I can add the following custom PHP / jquery?

    after the header call.

    <?php

    if (ICL_LANGUAGE_CODE == “fr”) {

    ?>

    <script>

    jQuery(document).ready(

    function() {

    jQuery(‘label[for=addressInput]‘).text(‘Your Label Text Here’);

    jQuery(‘label[for=radiusSelect]‘).text(‘Your Label Text Here’);

    }

    );

    </script>

    <?php }?>

    Thanks,

    Bruce.

    #132148

    Hi,

    Edit header.php, try to paste the php lines on top of this code:

    <?php
    /*
    * display the theme logo by checking if the default logo was overwritten in the backend.
    * the function is located at framework/php/function-set-avia-frontend-functions.php in case you need to edit the output
    */
    echo avia_logo(AVIA_BASE_URL.'images/layout/logo.png', false, 'strong');

    Then the javascript on footer.php, paste it on top of this code:

    <a href='#top' id='scroll-top-link' class='avia-font-entypo-fontello'></a>
    <div id="fb-root"></div>

    Regards,

    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Adding custom code to page template’ is closed to new replies.