Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate Troubleshooting › Affiliate Portal – Dropdown menus are not working (not opening)
- This topic has 4 replies, 4 voices, and was last updated 7 years, 9 months ago by
RichardC.
-
AuthorPosts
-
August 24, 2015 at 12:13 pm #12998
mat
MemberHello i have problem that “Referrals” and “Ads” dropdown menu is not opening in page style 2 in WP Afifiliate Platform. You Can check it in this link
[http://guzikcidotego.pl/program-partnerski/]
login: demo123
pas: demo123
Thank You for help
August 25, 2015 at 12:13 am #71177admin
KeymasterIt looks like your theme is preventing the bootstrap dropdown from working. Do the following theme test:
https://support.tipsandtricks-hq.com/forums/topic/test-to-identy-a-conflicting-theme-or-plugin
You can try and use the style 1 for your affiliate portal:
https://www.tipsandtricks-hq.com/wordpress-affiliate/setting-up-the-affiliate-viewarea-315
September 5, 2016 at 4:02 pm #71178Olik
MemberHi,
I just had the same challenge happening, and I found another solution, so you’re welcome to use it, too, if you wish.
I found the answer here:
[http://stackoverflow.com/questions/12458522/bootstrap-dropdown-not-working]
The matter was that my theme already includes bootstrap.min.js, and in wp-affiliate-platformwp_affiliate_platform1.php you have the following code:
if (is_a($post, 'WP_Post') && has_shortcode($post->post_content, 'wp_affiliate_view2')) {
wp_enqueue_style('wpapview2bscss', WP_AFF_PLATFORM_URL . '/views/style2/assets/css/bootstrap.css');
wp_enqueue_style('wpapview2customcss', WP_AFF_PLATFORM_URL . '/views/style2/assets/css/wpap.style2.css');
wp_enqueue_script('wpapview2bsjs', WP_AFF_PLATFORM_URL . '/views/style2/assets/js/bootstrap.min.js', array('jquery'));
}(so this is specific for the shortcode of affiliate_view2)
when I commented out the line that enqueues bootstrap.min.js, the dropdowns started to open.
But since I want to build a system, where I can update your plugins with no change, as much as possible, I just added to our functions.php the following lines:
add_action( 'wp_enqueue_scripts', 'remove_stylesheets_and_scripts', 20 );
function remove_stylesheets_and_scripts() {
wp_dequeue_script( 'wpapview2bsjs' );
}You’re welcome to use it
September 5, 2016 at 11:13 pm #71179admin
KeymasterThank you for sharing tweak. Good solution.
February 8, 2018 at 4:20 pm #71180RichardC
MemberThis just worked for me. Thanks so much.
-
AuthorPosts
- You must be logged in to reply to this topic.