[SOLVED] Editing theme functions.php file
I am having problems editing the Atahualpa theme functions file to recognize anything. In the example below I'm trying to replace the dashboard logo and nothing happens. No matter what function I put in here nothing ever happens. I've tried putting my code inside the main php body as well as creating a new php area as seen here. I've spent hours on this and can't figure it out. Thank you.
<?php // Replace dashboard logo add_action('admin_head', 'my_custom_logo'); function my_custom_logo() { echo ' <style type="text/css"> #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/32x32_Wings.png) !important; } </style> '; } ?> |
Why are you doing that? Why not use the ato->Style & edit HEADER AREA->Show Logo Image? option.
|
That location in the ATO is for the logo on the home page. The logo I'm trying to replace is the WordPress "W" on the user profile page. I found this code snippet doing a search and made sure it was to be placed in the Theme's functions file and not in the WP functions file. I really appreciate your help and I love this theme.
|
?? when you say 'logo I'm trying to replace is the WordPress "W"' do you mean on the logon page or in the backend in the dashboard->User->Your profile?
Neithor are part of the theme |
The dashboard user profile located at http://iaftp.org/wp-admin/profile.php
|
I FINALLY figured out why I was having problems with the above code for the theme functions.php file. Using "//" before the comments was not allowing the code to be read for some reason. Since I like to document everything, I found that using /* and */ on the comments allowed everything to work perfectly. Thanks juggledad, sorry to bother you with this.
|
All times are GMT -6. The time now is 03:15 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.