- This topic has 4 replies, 4 voices, and was last updated 6 years, 9 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 Affiliate Platform › WP Affiliate Troubleshooting › Affiliate Portal – Dropdown menus are not working (not opening)
Hello 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
It 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
Hi,
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
Thank you for sharing tweak. Good solution.
This just worked for me. Thanks so much.