- This topic has 4 replies, 4 voices, and was last updated 10 years, 2 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › Compact Login Code (for membership login)
Tagged: compact login, eMember, login, wp membership
Hello,
I want to add the following code
<?php echo eMember_compact_login_widget(); ?>
to my theme header. I got this code from your online documetation page. I just need to know “where” in the header.php I should paste this code.
I don’t know anything about php so any advice would be greatly appreciated
It depends on where in your header you want to place the login message. Basically you edit the “header.php” file of your theme and place that line of code where you want the login message to appear.
Every theme has different code so I have no way of telling you the exact line number in your “header.php” file where you can place that code.
Ok I will figure it out.
Thank you so much for taking the time to answer.
I’m using the Pinboard theme. The following code is my sites header.php. Can you tell me where to put paste the compact login code <?php echo eMember_compact_login_widget(); ?> so it shows up at the top of the page.
I’ve tried a few spots withing the header area but it seems to duplicate and display the login info.
I can just use a widget but that removes the social links which I want to keep.
[header code removed after checking it]
It is not very easy to read a theme’s HTML code but I am going to recommend that you insert that compact login code just after the following line in your header.php:
<header id="header">
You can try inserting it in a few different place to see where it works for you.