-
Author
-
January 13, 2018 at 03:17 #185664johnschneider89Participant
The drop down menu on my site is no longer working. It appears to be an issue with the Kleo-Child theme. When I switch to a default theme the menu works fine.
January 13, 2018 at 16:30 #185695Kieran_SQModeratorHi,
In that case it is going to be in one of the changes you have made to the KLEO Child theme. You should do the following to find the issue
– Make a full and safe backup of the child theme
– Disable all caching and CDN
– Delete the overridden template files one by one, clearing your cache on the front-end each time (Ctrl+F5)
– If all of the template files are removed and the issue continues remove content from functions.php and style.css and clear your cache for each.Once you have identified the template file where you’re having the issue you should copy in the latest file, make and save your changes, purge cache to see changes.
If the issue is found in either functions.php or style.css you should remove each part one by one until you find the offending code.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
January 15, 2018 at 21:35 #185895johnschneider89ParticipantKieran,
I believe that I’ve done everything that you asked. I’m still encountering this issue.
The style.css file is essentially empty, and the functions.php only contains the following:
<?php
/**
* @package WordPress
* @subpackage Kleo
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since Kleo 1.0
*//**
* Kleo Child Theme Functions
* Add custom code below
*/
// FB Pixel Tracking Code
add_action( ‘woocommerce_thankyou’, ‘fb_pixeltracking’ );function fb_pixeltracking( $order_id ) {
$order = new WC_Order( $order_id );
$order_total = $order->get_total();
?>
<!– Start FB Tracking–>
<!– Facebook Conversion Code for Biome3D checkouts –>
<script>(function() {
var _fbq = window._fbq || (window._fbq = []);
if (!_fbq.loaded) {
var fbds = document.createElement(‘script’);
fbds.async = true;
fbds.src = ‘//connect.facebook.net/en_US/fbds.js’;
var s = document.getElementsByTagName(‘script’)[0];
s.parentNode.insertBefore(fbds, s);
_fbq.loaded = true;
}
})();
window._fbq = window._fbq || [];
window._fbq.push([‘track’, ‘6030603502137’, {‘value’:'<?php echo $order_total ?>’,’currency’:’USD’}]);
</script>
<noscript>
&cd[currency]=USD&noscript=1″ />
</noscript>
<!– END FB Tracking –><!— Product Page Image Slider Fix –>
function sq_remove_img_srcset( $attr ) {
if (! empty($attr)) {
unset($attr[‘srcset’]);
unset($attr[‘sizes’]);
}return $attr;
}
<!– END Product Page Image Slider Fix –><!— Fix for page width issue –>
add_filter( ‘kleo_theme_options_ajax’, ‘__return_false’ );
<!– END fix for page width issue –><?php
}January 15, 2018 at 23:45 #185896johnschneider89ParticipantAn update: it appears that there is a jquery.js file that is not loading correctly. When I switch to other themes this goes away.
It appears to be only the Kleo-Child theme that is the issue.
The menus still work correctly when loading in a Firefox Private tab.
Attachments:
You must be logged in to view attached files.January 15, 2018 at 23:50 #185899johnschneider89ParticipantAfter further investigation, it appears that a script that I had set to load in the JavaScript code section of the Theme Options was causing this issue.
This was the offending code. After removal, the page now loads correctly and the drop down menus work as expected.
COPY CODE<!-- Start of Mailchimp popup form --> <script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us17.list-manage.com","uuid":"e079d75547b7b32b5d36f5c9a","lid":"5a7483555a"}) })</script> <!-- End of Mailchimp popup form -->
January 16, 2018 at 01:00 #185900Kieran_SQModeratorHi,
Glad this is working for you now.
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
-
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.