Sign up Box in Header
I'm creating a blog that is identical to a website already designed. In the header of the website there is a box in the upper right where members can login. How do I include this login box in the Atahualpa header?
|
One way you could do it would be to use the new widget area and build your header using that - split the area 90/10, put your header image in the 90% and put a signup form in the 10%
|
I did not realize you could do that now. Great!
Just to learn I installed the example code into the Configure Header Area and get an error message. Inserted this code: <?php bfa_widget_area('name=My widget area&cells=4&align=1&align_2=9&align_3=7&width_4=7 00&before_widget=<div id="%1" class="header-widget %2">&after_widget=</div>'); ?> into "configure header area" get this error: Fatal error: Call to undefined function: str_ireplace() in /home/speaker/public_html/blog/wp-content/themes/atahualpa342/functions.php on line 321 Suggestions? Thanks! P.S. I just made a donation through paypal-thanks for your help! |
you are using PHP 4.x - str_ireplace() was added to PHP 5.x
Check with your host to see if they have an option to swap to php 5 (at GoDaddy it's controled by a line in the .htaccess file). While you can change the code and replace the str_ireplace() with str_replace(), you should move to php5.x. check with your provider |
I've just been given access to set up the blog so I don't think its an option to upgrade the PHP but I'll check. in the meantime. where in the theme files do I edit that code?
|
umm, like the message says, line 321 in function.php :p
Be aware that you may run into more issues espically wiith widgets if you remain on php4. You should also upgrade Atahualpa to 3.4.4 - where the 'str_ireplace' has already been replaced witht the 'str_replace'. |
All times are GMT -6. The time now is 05:00 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.