- This topic has 2 replies, 2 voices, and was last updated 11 years, 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 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 › Placing the eMember Bookmark Button in a custom location
Tagged: Bookmark Button, eMember Bookmarks
Hi guys,
So I have search the forums everywhere, and I realize the problem is that I have nearly zero knowledge of php. What I am trying to do is put the bookmark button in my header.
1. I have already disabled this check if(!$enable_bookmark) return EMEMBER_BOOKMARK_DISABLED;
2. I have understood I need to create a filter for bookmark_handler
3. I tried including the following in my header: <?php add_filter(‘the_content’, ‘bookmark_handler’); ?> Obviously that just placed the comment box in the_the_content, which is exactly what I am trying to avoid.
So, my question, which I assume is an easy one to php experts, is how to I create or refer to a string that would refer to a specific location on the page (i.e. header). Ideally, I would place the definition of the string ($string) where I want the bookmark button to appear, and then just use:
<?php add_filter($string, ‘bookmark_handler’); ?>
Any feedback would be appreciated, Thank you!
Thank you!