This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body { | |
height: initial !important; | |
} | |
/* to override height:100% which caused the issue */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function(){ | |
var thishash = window.location.href.slice(window.location.href.indexOf('#') + 1); | |
var menuitem = 'ul#tts-filter-nav li:contains("'+thishash+'")'; | |
if(thishash.length && menuitem.length){ | |
jQuery(menuitem).click(); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Incorrect */ | |
.advq_question_container:has(li.quiz_incorrect_answer) .advq_answer_commentary { background:red !important; color:#fff !important; } | |
/* Correct */ | |
.advq_question_container:has(li.quiz_correct_answer) .advq_answer_commentary { background:green !important; color:#fff !important; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Zoom Level for Markers on Click with Zoom on Click enabled | |
* if you do not override the value, it will default to zoom to | |
* the value double of the current zoom. | |
*/ | |
let igmMarkerZoomLevelOnClick = 32; | |
/* | |
* Opacity for base region series when drilldown or show specific map action is perfomed | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.map_wrapper .map_aspect_ratio { | |
padding-top: 0 !important; | |
height: calc(100vh) !important; | |
max-height: calc(100vh) !important; | |
} | |
/* If you only want it on smaller screens */ | |
@media only screen and (max-width: 768px) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// All Elated Themes | |
add_action('admin_enqueue_scripts','kendal_advisor_quiz_fix', 100); | |
function kendal_advisor_quiz_fix() { | |
$current_screen = get_current_screen(); | |
if( $current_screen->id === "advquiz" ) { | |
wp_deregister_script('eltd-ui-admin'); | |
wp_dequeue_script('eltd-ui-admin'); | |
wp_deregister_script('eltdf-ui-admin-skin'); | |
wp_dequeue_script('eltdf-ui-admin-skin'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Interactive Geo Maps Callback | |
* | |
* @wordpress-plugin | |
* Plugin Name: Interactive Geo Maps CPT Addon | |
* Plugin URI: https://interactivegeomaps.com | |
* Description: Connects CPT with map | |
* Version: 1.0.0 | |
* Author: Carlos Moreira |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// replace with your map ID | |
let mapID = 3491625; | |
let mapContainer = document.getElementById('map_' + mapID); | |
mapContainer.addEventListener('mapready', function(ev) { | |
iMaps.maps[mapID].series[0].mapPolygons.each(function(region) { | |
region.events.on("hit", function(ev) { | |
setTimeout(function(){ | |
iMapsActions.lightbox.on('close', function(){ | |
iMapsManager.clearSelected(mapID); | |
iMaps.maps[mapID].map.goHome(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Replace this function in your front.php to give customers more share buttons. | |
function advq_get_after_results_content($id,$data,$options) { | |
$html = ''; | |
if(isset($data['code_after_results']) && $data['code_after_results'] != ''){ | |
$html .= '<div class="advq_integration_after_results">'; | |
if( $options['render_shortcodes_integration'] ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// replace with your map ID. | |
let mapID = 877; | |
let mapContainer = document.getElementById('map_' + mapID); | |
mapContainer.addEventListener('mapready',function(ev){ | |
iMaps.maps[mapID].map.maxPanOut = 10; | |
}); |