Seite Submit Listing

Kategorien von Google

/www/wp-content/plugins/listingpro-plugin/assets/js/auto-places.js

In Zeile 59 finden:

				
					                    if (!place.types) {} else {
                        
                        for (var i = 0, len = place.types.length; i < len; i++) {
                            var option = document.createElement("option");
                            if (place.types[i] == "point_of_interest") {} else if (place.types[i] == "establishment") {} else {
                                option.text = place.types[i];
                                option.value = place.types[i];
                                var attSelected = document.createAttribute("selected");
                                attSelected.value = "selected";
                                option.setAttributeNode(attSelected);
                                var select = document.getElementById("inputCategory");
                                select.appendChild(option);
                                jQuery("#inputCategory").change();
                                jQuery("#inputCategory").select2();
                            }
                        }
                    }
				
			

ersetzen mit:

				
					/* ### MARKS - Auskommentieren damit Google keine Kategorien selbst erstellt (zB. car_rental) #### */
/*
                    if (!place.types) {} else {
                        
                        for (var i = 0, len = place.types.length; i < len; i++) {
                            var option = document.createElement("option");
                            if (place.types[i] == "point_of_interest") {} else if (place.types[i] == "establishment") {} else {
                                option.text = place.types[i];
                                option.value = place.types[i];
                                var attSelected = document.createAttribute("selected");
                                attSelected.value = "selected";
                                option.setAttributeNode(attSelected);
                                var select = document.getElementById("inputCategory");
                                select.appendChild(option);
                                jQuery("#inputCategory").change();
                                jQuery("#inputCategory").select2();
                            }
                        }
                    }
*/					
/* ### MARKS #### */