Barbara Magee
Forum Replies Created
-
AuthorPosts
-
Hello,
No need to reply to last post. We made the decision to remove business hours from the GD-archive item.Thanks again for your help! Stay safe and stay well!
Oops! Unfortunately, the business hours box is now staying open on listings/location pages on laptops (see attached screenshot). What change do we need to make to have the business hours box be closed when page is opened?
Here again is the code we have in the GD Archive Item block:
@media screen and (max-width : 768px){
/* GeoDirectory V2 Business Hours Styles*/
.geodir-field-business_hours {
text-align: inherit !important;
}
/* GeoDirectory V2 Business Hours – Closed on mobile*/
@media only screen and (max-width: 600px) {
.gd-bh-open-hours {
display: inherit;
}
.gd-bh-expand i.fas.fa-caret-up {
font-size: 17px;
}
}.wpapps-bh-mobile{
display:none;
}
.wpapps-bh, .wpapps-output, .wpapps-direction{
font-size: 14px;
}
</style>Thanks! That code worked. The field label in Places settings is already set at Hours but Open Now, Closed Now and Closed Today are still displaying. Is there any way to change those to Hours without translating the core plugin?
April 5, 2020 at 12:25 am in reply to: How to add Coronavirus announcement just on Events detail listing pages #538504We figured out how to add a content box to the details listing page and we’re happy with the language as it applies to both places and events.
Thanks for all your support!
This reply has been marked as private.Hello,
I’m circling back on the subject of GreedyNav.js error. We did update UserWP, but we are not sure the problem is resolved. Attached is a screenshot of what happens when I clicked back button on our Cities page. The page doesn’t complete the redirect and we get a page displaying 2 logos in the header and 5 representations of our navigation menu on the left, etc. Here’s a link to the page:Here is some code from the inspector that includes GreedyNav language, etc. We appreciate your taking a look at this. Thanks!
<html class=”avada-html-layout-wide avada-html-header-position-top avada-is-100-percent-template ua-chrome ua-chrome-80 ua-chrome-80-0 ua-chrome-80-0-3987 ua-chrome-80-0-3987-122 ua-desktop ua-desktop-macintosh ua-mac_os_x ua-mac_os_x-10 ua-mac_os_x-10-13 ua-mac_os_x-10-13-6 ua-webkit ua-webkit-537 ua-webkit-537-36 js applicationcache geolocation history postmessage websockets localstorage sessionstorage websqldatabase webworkers hashchange audio canvas canvastext video webgl cssgradients multiplebgs opacity rgba inlinesvg hsla supports svgclippaths smil no-touchevents fontface generatedcontent textshadow cssanimations backgroundsize borderimage borderradius boxshadow flexbox cssreflections csstransforms csstransforms3d csstransitions” lang=”en-US” prefix=”og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#” data-useragent=”Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36″ style=””><head><meta http-equiv=”X-UA-Compatible” content=”IE=edge”><meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″><meta name=”viewport” content=”width=device-width, initial-scale=1″><link media=”all” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_17fd726454b6d3a399b87fa014164a14.css” rel=”stylesheet”><link media=”only screen and (max-width: 640px)” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_eaae2f4f83c8bc8db278d312d552c53a.css” rel=”stylesheet”><link media=”only screen and (max-width: 712px)” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_9db2f4ca89275b9d56d30f5119c0e6b8.css” rel=”stylesheet”><link media=”only screen and (min-width: 712px) and (max-width: 784px)” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_886ffc42640c4a53af5ff844129b38e5.css” rel=”stylesheet”><link media=”only screen and (min-width: 784px) and (max-width: 856px)” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_1d5c0dfa3013e5265445cc285f9652fc.css” rel=”stylesheet”><link media=”only screen and (min-width: 856px) and (max-width: 928px)” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_831128cc4343c5eb771b0ab2c071aa51.css” rel=”stylesheet”><link media=”only screen and (min-width: 928px) and (max-width: 1000px)” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_49c145298c027cf44ee66d31860139a2.css” rel=”stylesheet”><link media=”only screen and (min-width: 801px)” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_cd1741ec3077f8ce134d30f194a1b924.css” rel=”stylesheet”><link media=”only screen and (max-width: 800px)” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_74c77ac73cadaaad1a08a7479b024c0a.css” rel=”stylesheet”><link media=”only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_4f7177b3ac2a361d2db6736f39b377c7.css” rel=”stylesheet”><link media=”only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape)” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_126bfdd08dc0ecbfa691f2f6bc2f8cf2.css” rel=”stylesheet”><link media=”only screen and (max-width: 782px)” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_2cc4ccc3584bfaefd212eb3d84c1885c.css” rel=”stylesheet”><style media=”only screen and (max-width: 768px)”>.fusion-tabs.vertical-tabs .tab-pane{max-width:none!important}</style><link media=”only screen and (min-width: 800px)” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_2fb5de34335d46f87d4b03cb6c80b506.css” rel=”stylesheet”><link media=”only screen and (max-device-width: 640px)” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_1c5f6209e3872dd0cee3d451b0df125b.css” rel=”stylesheet”><link media=”only screen and (max-width: 1000px)” href=”https://thelocaldish.com/wp-content/cache/autoptimize/css/autoptimize_7c539e15a1a473699426668115de738f.css” rel=”stylesheet”><style media=”print”>#wpadminbar{display:none}</style><style media=”screen”>html{margin-top:32px !important}* html body{margin-top:32px !important}@media screen and (max-width:782px){html{margin-top:46px !important}* html body{margin-top:46px !important}}</style><title>Cities | The Local Dish</title><meta name=”description” content=”W2dkX3NlYXJjaCBwb3N0X3R5cGVfaGlkZT0iMSIgY3VzdG9taXplX2ZpbHRlcnM9ImRlZmF1bHQiXQpbZ2RfbG9jYXRpb25fbmVhcl9tZV0=”><meta name=”robots” content=”follow,index,max-snippet:-1,max-video-preview:-1,max-image-preview:large”><link rel=”canonical” href=”https://thelocaldish.com/cities/”><meta property=”og:locale” content=”en_US”><meta property=”og:type” content=”article”><meta property=”og:title” content=”Cities | The Local Dish”><meta property=”og:description” content=”W2dkX3NlYXJjaCBwb3N0X3R5cGVfaGlkZT0iMSIgY3VzdG9taXplX2ZpbHRlcnM9ImRlZmF1bHQiXQpbZ2RfbG9jYXRpb25fbmVhcl9tZV0=”><meta property=”og:url” content=”https://thelocaldish.com/cities/”><meta property=”og:site_name” content=”The Local Dish”><meta property=”article:publisher” content=”https://www.facebook.com/thelocaldish1″><meta property=”article:author” content=”http://www.facebook.com/thelocaldish1″><meta property=”article:published_time” content=”2019-09-04T14:21:28-07:00″><meta property=”article:modified_time” content=”2020-02-28T12:14:37-08:00″><meta property=”og:updated_time” content=”2020-02-28T12:14:37-08:00″><meta name=”twitter:card” content=”summary_large_image”><meta name=”twitter:title” content=”Cities | The Local Dish”><meta name=”twitter:description” content=”W2dkX3NlYXJjaCBwb3N0X3R5cGVfaGlkZT0iMSIgY3VzdG9taXplX2ZpbHRlcnM9ImRlZmF1bHQiXQpbZ2RfbG9jYXRpb25fbmVhcl9tZV0=”><meta name=”twitter:site” content=”@thelocaldish”><meta name=”twitter:creator” content=”@thelocaldish”> <script async=”” src=”https://www.google-analytics.com/analytics.js”></script><script type=”application/ld+json”>{“@context”:”https:\/\/schema.org”,”@type”:”Article”,”headline”:”Cities”,”description”:”W2dkX3NlYXJjaCBwb3N0X3R5cGVfaGlkZT0iMSIgY3VzdG9taXplX2ZpbHRlcnM9ImRlZmF1bHQiXQpbZ2RfbG9jYXRpb25fbmVhcl9tZV0=”,”datePublished”:”2019-09-04T14:21:28-07:00″,”dateModified”:”2020-02-28T12:14:37-08:00″,”publisher”:{“@type”:”Organization”,”name”:”The Local Dish, LLC”,”logo”:{“@type”:”ImageObject”,”url”:”https:\/\/thelocaldish.com\/wp-content\/uploads\/2019\/12\/The-Local-Dish-logo.mark_.png”}},”mainEntityOfPage”:{“@type”:”WebPage”,”@id”:”https:\/\/thelocaldish.com\/cities\/”},”author”:{“@type”:”Person”,”name”:”The Local Dish”}}</script> <script type=”application/ld+json”>{“@context”:”https:\/\/schema.org”,”@type”:”BreadcrumbList”,”itemListElement”:[{“@type”:”ListItem”,”position”:1,”item”:{“@id”:”https:\/\/thelocaldish.com”,”name”:”Home”}},{“@type”:”ListItem”,”position”:2,”item”:{“@id”:”https:\/\/thelocaldish.com\/cities\/”,”name”:”Cities”}}]}</script> <link rel=”dns-prefetch” href=”//maps.google.com”><link rel=”dns-prefetch” href=”//cdnjs.cloudflare.com”><link rel=”dns-prefetch” href=”//use.fontawesome.com”><link rel=”alternate” type=”application/rss+xml” title=”The Local Dish » Feed” href=”https://thelocaldish.com/feed/”><link rel=”alternate” type=”application/rss+xml” title=”The Local Dish » Comments Feed” href=”https://thelocaldish.com/comments/feed/”><meta property=”og:title” content=”Cities”><meta property=”og:type” content=”article”><meta property=”og:url” content=”https://thelocaldish.com/cities/”><meta property=”og:site_name” content=”The Local Dish”><meta property=”og:description” content=”Applegate Ashland Bandon Bend Carlton Cave Junction Central Point Dayton Elmira Eugene Gold Hill Grants Pass Hood River Idleyld Jacksonville Medford McMinnville Newberg Newport Philomath Phoenix Roseburg Portland Salem Springfield Talent”><meta property=”og:image” content=”https://thelocaldish.com/wp-content/uploads/2019/11/The-Local-Dish-logo.mark_.png”><link rel=”stylesheet” id=”dashicons-css” href=”https://thelocaldish.com/wp-includes/css/dashicons.min.css” type=”text/css” media=”all”><link rel=”stylesheet” id=”admin-bar-css” href=”https://thelocaldish.com/wp-includes/css/admin-bar.min.css” type=”text/css” media=”all”> <!–[if IE]><link rel=’stylesheet’ id=’avada-IE-css’ href=’https://thelocaldish.com/wp-content/themes/Avada/assets/css/ie.min.css’ type=’text/css’ media=’all’ /><style id=’avada-IE-inline-css’ type=’text/css’>.avada-select-parent .select-arrow{background-color:#ffffff}
.select-arrow{background-color:#ffffff}</style><![endif]–><link rel=”stylesheet” id=”fusion-dynamic-css-css” href=”https://thelocaldish.com/wp-content/uploads/fusion-styles/843370cf33804c92c27ce0f2d7738712.min.css” type=”text/css” media=”all”><link rel=”stylesheet” id=”font-awesome-css” href=”https://use.fontawesome.com/releases/v5.12.1/css/all.css?wpfas=true” type=”text/css” media=”all”><link rel=”stylesheet” id=”font-awesome-shims-css” href=”https://use.fontawesome.com/releases/v5.12.1/css/v4-shims.css?wpfas=true” type=”text/css” media=”all”> <script type=”text/javascript” src=”https://thelocaldish.com/wp-includes/js/jquery/jquery.js”></script> <script type=”text/javascript”>/**
* An AUI bootstrap adaptation of GreedyNav.js ( by Luke Jackson ).
*
* Simply add the classgreedy
to any <nav> menu and it will do the rest.
* Licensed under the MIT license – http://opensource.org/licenses/MIT
* @ver 0.0.1
*/
function aui_init_greedy_nav(){
jQuery(‘nav.greedy’).each(function(i, obj) {// Check if already initialized, if so continue.
if(jQuery(this).hasClass(“being-greedy”)){return true;}// Make sure its always expanded
jQuery(this).addClass(‘navbar-expand’);// vars
var $vlinks = jQuery(this).find(‘.navbar-nav’).addClass(“being-greedy w-100”);
jQuery($vlinks).append(‘<li class=”nav-item list-unstyled ml-auto greedy-btn d-none “>’ +
‘<i class=”fas fa-ellipsis-h”></i> <span class=”greedy-count badge badge-dark badge-pill”></span>‘ +
‘<div class=”dropdown”><ul class=”greedy-links dropdown-menu dropdown-menu-right”></div>’ +
‘‘);
var $hlinks = jQuery(this).find(‘.greedy-links’);
var $btn = jQuery(this).find(‘.greedy-btn’);var numOfItems = 0;
var totalSpace = 0;
var closingTime = 1000;
var breakWidths = [];// Get initial state
$vlinks.children().outerWidth(function(i, w) {
totalSpace += w;
numOfItems += 1;
breakWidths.push(totalSpace);
});var availableSpace, numOfVisibleItems, requiredSpace, buttonSpace ,timer;
/*
The check function.
*/
function check() {// Get instant state
buttonSpace = $btn.width();
availableSpace = $vlinks.width() – 10;
numOfVisibleItems = $vlinks.children().length;
requiredSpace = breakWidths[numOfVisibleItems – 1];// There is not enough space
if (numOfVisibleItems > 1 && requiredSpace > availableSpace) {
$vlinks.children().last().prev().prependTo($hlinks);
numOfVisibleItems -= 1;
check();
// There is more than enough space
} else if (availableSpace > breakWidths[numOfVisibleItems]) {
$hlinks.children().first().insertBefore($btn);
numOfVisibleItems += 1;
check();
}
// Update the button accordingly
jQuery($btn).find(“.greedy-count”).html( numOfItems – numOfVisibleItems);
if (numOfVisibleItems === numOfItems) {
$btn.addClass(‘d-none’);
} else $btn.removeClass(‘d-none’);
}// Window listeners
jQuery(window).resize(function() {
check();
});// do initial check
check();
});
}/**
* Initiate Select2 items.
*/
function aui_init_select2(){
jQuery(“select.aui-select2”).select2();
}/**
* A function to convert a time value to a “ago” time text.
*
* @param selector string The .class selector
*/
function aui_time_ago(selector) {var templates = {
prefix: “”,
suffix: ” ago”,
seconds: “less than a minute”,
minute: “about a minute”,
minutes: “%d minutes”,
hour: “about an hour”,
hours: “about %d hours”,
day: “a day”,
days: “%d days”,
month: “about a month”,
months: “%d months”,
year: “about a year”,
years: “%d years”
};
var template = function (t, n) {
return templates[t] && templates[t].replace(/%d/i, Math.abs(Math.round(n)));
};var timer = function (time) {
if (!time)
return;
time = time.replace(/\.\d+/, “”); // remove milliseconds
time = time.replace(/-/, “/”).replace(/-/, “/”);
time = time.replace(/T/, ” “).replace(/Z/, ” UTC”);
time = time.replace(/([\+\-]\d\d)\:?(\d\d)/, ” $1$2″); // -04:00 -> -0400
time = new Date(time * 1000 || time);var now = new Date();
var seconds = ((now.getTime() – time) * .001) >> 0;
var minutes = seconds / 60;
var hours = minutes / 60;
var days = hours / 24;
var years = days / 365;return templates.prefix + (
seconds < 45 && template(‘seconds’, seconds) ||
seconds < 90 && template(‘minute’, 1) ||
minutes < 45 && template(‘minutes’, minutes) ||
minutes < 90 && template(‘hour’, 1) ||
hours < 24 && template(‘hours’, hours) ||
hours < 42 && template(‘day’, 1) ||
days < 30 && template(‘days’, days) ||
days < 45 && template(‘month’, 1) ||
days < 365 && template(‘months’, days / 30) ||
years < 1.5 && template(‘year’, 1) ||
template(‘years’, years)
) + templates.suffix;
};var elements = document.getElementsByClassName(selector);
for (var i in elements) {
var $this = elements[i];
if (typeof $this === ‘object’) {
$this.innerHTML = ‘<i class=”far fa-clock”></i> ‘ + timer($this.getAttribute(‘title’) || $this.getAttribute(‘datetime’));
}
}
// update time every minute
setTimeout(aui_time_ago, 60000);}
/**
* Initiate tooltips on the page.
*/
function aui_init_tooltips(){
jQuery(‘[data-toggle=”tooltip”]’).tooltip();
jQuery(‘[data-toggle=”popover”]’).popover();
jQuery(‘[data-toggle=”popover-html”]’).popover({
html: true
});
}// run on window loaded
jQuery(window).load(function() {
// init tooltips
aui_init_tooltips();// init select2
aui_init_select2();// init Greedy nav
aui_init_greedy_nav();// Set times to time ago
aui_time_ago(‘timeago’);We did try temporarily disabling the Autoptimize and EWWW Image Optimizer plugins, but after clearing the cache the problem still persisted.
My webhost is able to reproduce the issue in Google Chrome, Mozilla Firefox, Microsoft Edge, and Vivaldi.
When inspecting that element in the Mozilla or Chrome’s DevTools he indicated it appears that there are no click, mousedown, mouseout, mouseover, or mouseup events allocated to the \add-events GeoDirectory Dropbox as there are in the WP-Dashboard Add New menu item under Events. It looks like this block is not including a necessary JS (JavaScript) file. So I removed the code block and re-added it to that page. No improvement.
Since we are having a simultaneous issue with Google street address options box not dropping down when clicking and typing in that field and the Select File not working the Image Upload section, I’m circling back to see if you have further idea about a fix.
Thanks!
Thanks. Problem solved.
Can’t understand why this issue is only happening on the Add Events form and not the Add Listing form. Wouldn’t that negate your Chrome/Gmail login suggestion?
Okay. This is scary. Just now, I was opening listings on the backend, unchecking “Featured”, clicked Update, and as the listing reloads, ALL the links in the description are being stripped out.
Holding off on any backend updates until I hear back but concerned this might affect businesses to add paid listings.
I’ve asked my webhost to update the plugin.
Addendum: I discovered the issue is specific to GD Events and Places. It is not occurring in our WordPress Posts/Feature Stories.
The advanced editor is already turned on for the Places and Events description text area.
The event or place description changes made using the link and/or bold buttons aren’t being saved when I click Update. See attached for the buttons I’m referring to.
For links, it makes no difference if I’m adding an internal or external link. They’re still not saving.
Would these issues be related to WordPress or GD? Thanks!
Below is the exact response from my webhost. Thanks!
Cross-referencing the timestamps from the \logs\php_errors.log and your raw logs at \logs\W3SVC71\ the page that is generating the PHP error (as below) is https://thelocaldish.com/locationnew/.
\logs\php_errors.log
[07-Feb-2020 18:22:53 UTC] WordPress database error Unknown column ‘distance’ in ‘order clause’ for query SELECT mmfwc_posts.*, mmfwc_geodir_gd_place_detail.* FROM mmfwc_posts
INNER JOIN mmfwc_geodir_gd_place_detail ON (mmfwc_geodir_gd_place_detail.post_id = mmfwc_posts.ID)
WHERE 1=1 AND ( mmfwc_posts.post_status = ‘publish’ ) AND mmfwc_posts.post_type = ‘gd_place’
GROUP BY mmfwc_posts.ID
ORDER BY distance ASC
LIMIT 0, 8 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/Avada/100-width.php’), the_content, apply_filters(‘the_content’), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, FusionSC_Container->render, do_shortcode, preg_replace_callback, do_shortcode_tag, fusion_builder_row, do_shortcode, preg_replace_callback, do_shortcode_tag, FusionSC_Column->render, do_shortcode, preg_replace_callback, do_shortcode_tag, FusionSC_Code_Block->render, do_shortcode, preg_replace_callback, do_shortcode_tag, WP_Super_Duper->shortcode_output, GeoDir_Widget_Listings->output, GeoDir_Widget_Listings->output_html, geodir_get_widget_listings\logs\W3SVC71\u_ex200207.log
2020-02-07 18:22:56 W3SVC71 tsarbomba 192.168.1.170 GET /locationnew/ – 443 – 66.241.70.11 HTTP/1.1 Mozilla/5.0+(Windows+NT+6.1;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/79.0.3945.130+Safari/537.36 _gd_logged_out_post_author=57615c196d;+wpinv_session_eab85fcef8046ddf12900bd6653fa150=87458093f9%7C%7C1581272572%7C%7C1581268972%7C%7C7d7de67da7b1ecfd98e3e8de4097d7fa;+cookielawinfo-checkbox-necessary=yes;+cookielawinfo-checkbox-non-necessary=yes – thelocaldish.com 200 0 0 37631 771 171In case this might help…I inspected the elements of the street address field for both add event and add listing on both front and backend, the front end Add Event street address is the only one that shows <input Autocomplete=”new-password”. And it’s the only one not working. Thanks a million!
Guys, REALLY appreciate your hanging in with me on this. Same issue on different machines which are running Chrome. Desktop and laptop. Have removed password manager and most other extensions.
Decided to inspect the Elements of the street address field and they are different between the Add Event form and the Add Listing form. Add Event field says Autocomplete-new-password, Listing form field says Autocomplete- off. See attached. Let me know if that suggests anything to you.
Thanks so much!
-
AuthorPosts