Tagged: 

Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #327512

    I need to add code to the header on our site which will show a login to another secure site that we work with.

    The code was sent to me by the IT department from the other site, I just need to know where to put it and or what my options are.

    I am familiar with going into the Editor within WP. Do I add the code to the header php?

    Thanks for the help.

    #327576

    Hi!

    You can use the ava_after_main_menu hook, try adding this code to your theme / child theme functions.php:

    function add_code_to_header(){
    // CODE HERE
    }
    add_action('ava_after_main_menu', 'add_code_to_header');

    Best regards,
    Josue

    #327651
    This reply has been marked as private.
    #327654
    This reply has been marked as private.
    #327659

    Hey!

    Can you paste the code you are trying to use?

    Cheers!
    Josue

    #327664
    This reply has been marked as private.
    #327670

    Hi!

    HTML code can’t live directly in PHP blocks, you need to open/close them like this:

    function add_code_to_header(){
    ?>
    
    <script type="text/javascript" src="http://yourwebsite/rbweb/library/js/W0_0000_PTA.js"></script>
    <form name="frmrbwebattorney" method="post" action="http://agrenblando/rbweb/attorney/WC_00LG_PTA.asp">
    User ID:<input type="text" name="rbwebuserid" style="width:130px;" value=" maxlength=16>
    Password:<input type="password" name="rbwebpassword" style="width:130px;" value=" maxlength=65 onkeypress="javascript:if(event.keyCode ==13) login(document.frmrbwebattorney,1);">
    <INPUT type="button" value="Log In" style="font-size:11px;" style="width:64px" onclick="javascript:login(document.frmrbwebattorney,1);" id=btnptarbweb name=btnptarbweb>
    <INPUT type="hidden" name="appname" value="">
    <INPUT type="hidden" name="os" value="">
    </form>
    
    <?php
    }
    add_action('ava_after_main_menu', 'add_code_to_header');

    Best regards,
    Josue

    #327676
    This reply has been marked as private.
    #327678

    Hi,

    Can you please create me an administrator account? post it here as a private reply.

    Regards,
    Josue

    #327683
    This reply has been marked as private.
    #327687
    This reply has been marked as private.
    #327751

    Hi!

    Please remove the code from functions.php so i can login.

    Regards,
    Josue

    #327756
    This reply has been marked as private.
    #327780

    Hi!

    Do you have FTP access? can you hand me a temporary account?

    Best regards,
    Josue

    #327788
    This reply has been marked as private.
    #327794
    This reply has been marked as private.
    #327802
    This reply has been marked as private.
    #327814

    You can send that to (Email address hidden if logged out) .

    Cheers!
    Josue

    #328230
    This reply has been marked as private.
    #328384

    Hi!

    I managed to add the form to the header, code is added here:
    coloradotrialpresentationservices.com/wp-admin/plugin-editor.php?file=functions.php

    Regards,
    Josue

    #328397
    This reply has been marked as private.
    #328439

    Hi!

    Code is now removed, glad to help and yes, you can rate Enfold in your Themeforest downloads page, we highly appreciate it :)
    http://themeforest.net/downloads

    Cheers!
    Josue

    #455305
    This reply has been marked as private.
Viewing 23 posts - 1 through 23 (of 23 total)
  • The topic ‘Add code to header’ is closed to new replies.