Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Connect html with php function in header, almost there...


 
Prev Previous Post   Next Post Next
  #1  
Old Mar 21, 2010, 04:05 PM
marced
 
60 posts · Feb 2010
Unhappy Connect html with php function in header, almost there...

Hi all,

I replaced the RSS Feed icons with my own code (links), to have it nicely sit on top of the search bar and in the header area. I am almost there (www.marced.com, second line top right), in the bfa_header_config.php file I edited the code:

$logo_area .= '<a href="/contact">Contact</a> | <a href="/feed" >RSS</a> | <a href="javascript:bookmarksite(\'MARCED.com\', \'http://www.marced.com\')">Favorieten</a> | <a href="/wp-login.php?action=register">Registreren</a>'; Works great.

Now I also want to add a link to it, that says logout (when logged in) or login (when not logged in). In a widget, I used the php function wp_loginout(); . I can use this one, but how do I add it to the string above, I am using html and php then. My code knowledge stops here.

I tried using a dot and then wp_loginout(); after the code, but then it shows up in a weird position..

Please help, should be simple I guess if you know code?

Thnx!!

Last edited by marced; Mar 21, 2010 at 04:08 PM.
 

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing PHP Code in "HTML Inserts Header" Section twola Forum How-To 1 Sep 30, 2009 04:51 AM
Fatal error: Call to undefined function: is_tag() in bfa_get_options.php jmenge Atahualpa 3 Wordpress theme 2 Sep 8, 2009 06:10 AM
Adding php or function inside content Miak Post-Kicker, -Byline & -Footer 0 Sep 7, 2009 06:50 AM
[SOLVED] HELP! I tried to add something to my function.php page mgofootball Header configuration & styling 1 Jun 25, 2009 12:35 PM
[SOLVED] messed up header.php and footer.php monochrome Header configuration & styling 0 Jun 20, 2009 02:16 PM


All times are GMT -6. The time now is 03:18 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.