Tagged: custom header
-
AuthorPosts
-
September 30, 2014 at 6:50 pm #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.
September 30, 2014 at 8:44 pm #327576Hi!
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,
JosueSeptember 30, 2014 at 10:30 pm #327651This reply has been marked as private.September 30, 2014 at 10:32 pm #327654This reply has been marked as private.September 30, 2014 at 10:36 pm #327659Hey!
Can you paste the code you are trying to use?
Cheers!
JosueSeptember 30, 2014 at 10:39 pm #327664This reply has been marked as private.September 30, 2014 at 10:42 pm #327670Hi!
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,
JosueSeptember 30, 2014 at 10:46 pm #327676This reply has been marked as private.September 30, 2014 at 10:48 pm #327678Hi,
Can you please create me an administrator account? post it here as a private reply.
Regards,
JosueSeptember 30, 2014 at 10:51 pm #327683This reply has been marked as private.September 30, 2014 at 10:54 pm #327687This reply has been marked as private.October 1, 2014 at 12:02 am #327751Hi!
Please remove the code from functions.php so i can login.
Regards,
JosueOctober 1, 2014 at 12:11 am #327756This reply has been marked as private.October 1, 2014 at 1:01 am #327780Hi!
Do you have FTP access? can you hand me a temporary account?
Best regards,
JosueOctober 1, 2014 at 1:11 am #327788This reply has been marked as private.October 1, 2014 at 1:36 am #327794This reply has been marked as private.October 1, 2014 at 2:22 am #327802This reply has been marked as private.October 1, 2014 at 2:59 am #327814You can send that to (Email address hidden if logged out) .
Cheers!
JosueOctober 1, 2014 at 4:16 pm #328230This reply has been marked as private.October 1, 2014 at 7:03 pm #328384Hi!
I managed to add the form to the header, code is added here:
coloradotrialpresentationservices.com/wp-admin/plugin-editor.php?file=functions.phpRegards,
JosueOctober 1, 2014 at 7:21 pm #328397This reply has been marked as private.October 1, 2014 at 8:08 pm #328439Hi!
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/downloadsCheers!
JosueJune 5, 2015 at 9:18 pm #455305This reply has been marked as private. -
AuthorPosts
- The topic ‘Add code to header’ is closed to new replies.