Tips and Tricks HQ Support Portal › Forums › WP eMember › Fancy Member Login link on a tabbed page
Tagged: fancy login, login widget, wp membership
- This topic has 6 replies, 3 voices, and was last updated 10 years, 3 months ago by ramona.
-
AuthorPosts
-
August 14, 2014 at 8:54 am #11315ramonaParticipant
JavaScript doesn’t work on my page [http://www.hapkemedia.com/service/] => see tab Hapke Media Community.
I use a widget for the tabs that build the tabs with jquery filter. Example: All single pages with the widget filter name service are tabbed.
Is there a workaround for this problem?
August 14, 2014 at 1:12 pm #64911wzpModeratorI do not understand the problem, that I am supposed to notice.
August 14, 2014 at 4:21 pm #64912ramonaParticipantSorry. In the last tab on [http://www.hapkemedia.com/service] with the name Hapke Media Community there is a login for members, because Community is protected. Click on “log in” does not work within the tabs.
If this has sth. to do with jQuery problems in general I will place another page there.
I like to hear your opinion, thanks.
August 15, 2014 at 5:43 am #64913adminKeymasterHi Ramona, Looks like you are using the fancy login option. Fancy login uses JS and JS code doesn’t work if the page has errors. I can see some javascript errors on your webpage so you should look into removing those first:
https://support.tipsandtricks-hq.com/forums/topic/debugging-javascript-errors-on-your-site
Alternatively, turn off this fancy login popup option from the settings.
August 15, 2014 at 7:31 am #64914ramonaParticipantYes, thank you, always great support here.
August 15, 2014 at 11:26 am #64915ramonaParticipantPlease can you give me an exact example for an error on my website (if possible)? I’m not familiar with JS.
August 15, 2014 at 3:31 pm #64916ramonaParticipantA fellow of mine has solved it with an entry in the child theme’s function.php:
add_action( 'xtreme_add_script', 'tc_add_jquery_parts' );</p>
<p>function tc_add_jquery_parts() { ?></p>
<p> // Emember fanc login<br />
$('.emember_fancy_login_link').click(<br />
function(e) {<br />
var targetId = $(e.target).addClass('emember_activeLink').attr('id');<br />
var alreadyOpened = $('#marker');<br />
var menu = $('#emember_signin_menu');<br />
var offset = $(e.target).offset();<br />
if (!alreadyOpened.html()) {<br />
alreadyOpened.html(targetId);<br />
menu.css({'left': offset.left + 'px', 'top': (offset.top + 20) + 'px'}).show('slow');<br />
}<br />
else if (targetId != alreadyOpened.html()) {<br />
alreadyOpened.html(targetId);<br />
menu.hide().css({'left': offset.left + 'px', 'top': (offset.top + 20) + 'px'}).show('slow');<br />
} else if (targetId == alreadyOpened.html()) {<br />
$(e.target).removeClass('emember_activeLink');<br />
alreadyOpened.html("");<br />
menu.hide('slow');<br />
}<br />
}<br />
);<br />
<?php<br />
}<br />
Look at
$(document).ready(function(){ -
AuthorPosts
- You must be logged in to reply to this topic.