selsiusx
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] All stringtranslations lost after saving page 4If you set one widget per language you don’t need to translate it in the Strings translation tab.
That is true! And I do not want to translate it. But the fact that it keeps appearing in my stringtranslations page makes it that it is impossible to save page 4.. I hope you now understand what I mean. Or are you saying that if I duplicate the widget and assign one to each language that it will no longer appear in my stringtranslations ?
Forum: Plugins
In reply to: [Polylang] All stringtranslations lost after saving page 4yeah but that is not my issue.. the issue is with that text-widget, after i save the page where the stringstranslations for that widget reside the whole thing get reset and all my stringtranslations are reset..
Forum: Plugins
In reply to: [Polylang] All stringtranslations lost after saving page 4Do you have other fields fill with htlm or script?
I do not have any javascript or HTML anymore in any stringtranslation fields.
Right now I solved my problem by not using a text widget but hardcoding the html and js inside my templates. I just wish i could control which fields are indexed and which fields are not. I also failed trying to get polylang to work with Ninjaforms translations but that is off-topic..Forum: Plugins
In reply to: [Polylang] All stringtranslations lost after saving page 4I’m sorry also Wordfence security that’s correct
Forum: Plugins
In reply to: [Polylang] All stringtranslations lost after saving page 4So I deleted the script inside the widget but still there is an issue.
other plugins I use are :- Timber
- Ninja Forms
- post-type-archive links
- Advanced Custom Fields
- Yoast
- duplicate post
- user role editor
Forum: Plugins
In reply to: [Business Hours Plugin] Dynamic String update according to TimeIgnore previous, this one works … 😀
$open = esc_html( business_hours()->settings()->get_open_hour( $id ) ); $close = esc_html( business_hours()->settings()->get_close_hour( $id ) ); $is_open_today = business_hours()->settings()->is_open( $id ); $blogtime = current_time('timestamp'); $currenthour = date("H:i",$blogtime); //convert to 24h notation $openhour = date($open); $closehour = date($close); //echo $currenthour .'We are open from ' . $openhour . 'h till ' . $closehour; if ( $is_open_today ) { if (($openhour <= $currenthour) && ($closehour >= $currenthour)) { $content = str_replace( "{{TodayOpen}}", $open, $content ); $content = str_replace( "{{TodayClose}}", $close, $content ); } else $content = $closed; } else { $content = $closed; } return $content; }Forum: Plugins
In reply to: [Business Hours Plugin] Dynamic String update according to Timehi, i did it myself.. quick& dirty offcourse in BussinenssHours.class.php
$blogtime = current_time('timestamp'); $currenthour = date("g",$blogtime); $openhour = date("g", $open); if ( $is_open_today ) { if ($openhour < $currenthour) { $content = str_replace( "{{TodayOpen}}", $open, $content ); $content = str_replace( "{{TodayClose}}", $close, $content ); } else $content = $closed; } else { $content = $closed; } return $content;Forum: Plugins
In reply to: [Business Hours Plugin] [Plugin: Business Hours Plugin] National Holidaysyeah that would be awesome! and maybe also a way to display the closed string when it is past closing <u>time</u>, not only when the day is marked as a closing day.