Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Flexform › Conflict with Membership 2
New Landing › How can we help? › Themeforest Theme Support › Flexform › Conflict with Membership 2
- This topic has 5 replies, 2 voices, and was last updated 8 years by David Martin – Support.
-
Posted in: Flexform
-
November 27, 2015 at 8:44 pm #231929
Hello,
I’ve created a site using the Flexform theme with a child of it. I’m using the Membership 2 plugin from WPMUDEV to have a members/subscriptions on my site.
When user attempt to sign up for an account the registration doesn’t work. It gives error when they are putting in the password choice.
After investigation by the plugin developers, they found there seems to be a conflict with Flexform theme header.php. This is what they sent me:
*
Hello KerplunkDesign,I found culprit that is preventing from registration. It is login form at the top bar that is causing this error. So this is theme conflict. I was able to replicate this issue on my site using your theme. I suggest you report that on their support forum as it is paid theme.
This is code that broke registration (header.php file) line 253<div id=”header-login” class=”clearfix”>
if you want you can temporary use Membership login form there by replacing this code with this one in your child theme header.php file:
<?php echo do_shortcode(‘[ms-membership-login]’); ?>
*
How can I resolve this issue with out using “temporary” code?
Why do the theme and plugin conflict?Any help would be much appreciated.
Thank you.
AndyAttachments:
You must be logged in to view attached files.November 30, 2015 at 2:14 pm #232147Hi,
Placing their code into your header.php file as instructed will fix the issue as it will be overriding the parent theme
header.php
.It looks like they meant to post more code in screenshot 1 but the code got removed. I’d follow up and ask them what they were trying to post.
– David.
November 30, 2015 at 8:52 pm #232274Hello,
Yes, there was more code in that box. It was indented significantly. This is the full code they posted from line 253 of the parent header.php:
<div id=”header-login” class=”clearfix”>
<form action=”<?php echo wp_login_url(); ?>” autocomplete=”off” method=”post” class=”clearfix”>
<label for=”username”>Username</label>
<input type=”text” name=”log” id=”username” value=”” placeholder=”<?php _e(“Username”, “swiftframework”); ?>” size=”20″ />
<label for=”username”>Password</label>
<input type=”password” name=”pwd” id=”password” placeholder=”<?php _e(“Password”, “swiftframework”); ?>” size=”20″ />
<input type=”submit” name=”submit” value=”Login” id=”submit” class=”sf-button slightlyrounded accent”/>
<div class=”link-wrap”>
” class=”register”><?php _e(“Register”, “swiftframework”); ?>
<span> / </span>
/wp-login.php?action=lostpassword” class=”recover-password”><?php _e(“Forgot login?”, “swiftframework”); ?>
</div>
</form>
</div>To make sure, if I replace with the single line of code they provided into where this code is in the child header.php, then it should override the parent file and the register should work? Also, should that line of code be with in the div? Looking like this?
<div id=”header-login” class=”clearfix”>
<?php echo do_shortcode(‘[ms-membership-login]’); ?>
</div>Thanks for your help!
December 2, 2015 at 11:33 am #232641No problem, please use what they provided and test it further. Yes, keep the div as is.
Thanks.
December 2, 2015 at 5:27 pm #232793This did the trick.
Thank you!
December 2, 2015 at 5:41 pm #232806Great, glad you got it sorted.
-
Posted in: Flexform
You must be logged in and have valid license to reply to this topic.