Guy Leroux
Forum Replies Created
-
AuthorPosts
-
FYI, the prior issue has been solved: it was indeed a glitch in the theme coding.
This reply has been marked as private.Hi Alex:
I mean the Email sharing button at the end of a post which is a feature provided by JetPack (see attached screen capture).
I re-activated JetPack for your convenience. Go at https://depquebec.com, click any post, go at the end and click the email button.
Instead of a prompt allowing you to email a friend, it will simply open another page.
And yes, JetPack is up to date (5.5.1 version, I checked)
Cheers and many thanks again!
Guy
Thanks Kiran: I just opened a ticket with ColorMag ThemeGrill so we’ll see.
On another note, I experienced a conflict between GD and JetPack.
Recently, the Email Sharing Button at the bottom or each post stopped working.
When clicking on it — instead of the usual prompt – a new page opens and we go back to where we were.
I contacted JetPack who advised me to deactivate all plugins until I find the culprit… which happened to be GeoDirectory.
Are you aware of any issues of this sort between JetPack and GD?
I searched the forum and KB but found nothing.
Thanks,
GL
This reply has been marked as private.This reply has been marked as private.Hey Alex,
Thanks for the tip… there is indeed some room for improvements! I’ll have a close look at that.
In the meantime, I disabled all the caches… feel free to pay a visit!
Cheers,
Guy
Hi Alex:
Thanks greatly for your help.
I have WP Super Cache installed and activated but the settings are exactly as recommended.
I deactivated it and the problem remained.
Same for JetPack.
Same for another cache, endurance.
Any clue?
Thanks,
Guy
This reply has been marked as private.Wow, that is absolutely fantastically super great… a zillion thanks Guust!
🙂
Hi Guust again:
I managed to get all the right fields where I wanted but even though I went through the doc, I can’t figure how to introduce line breaks where I want them to be, like right after “Home Address” (word and icon), and then right after the street address, that’s it.
Here’s the code I’m using in code snippet:
add_filter(‘geodir_show_post_address’, ‘geodir_change_address_order’ , 100 , 2) ;
function geodir_change_address_order($html , $vars)
{
global $post, $preview, $wpdb;
$field_icon=”;
if (strpos($field_icon,’http’) !== false) {$field_icon_af = ”;}
elseif($field_icon==”){$field_icon_af = ‘<i class=”fa fa-home”></i>’;}
else{$field_icon_af = $field_icon; $field_icon=”;}if(!$preview)
{
$html = ‘‘;
$html .= ‘<span class=”geodir-i-location” style=”‘.$field_icon.'”>’.$field_icon_af;
$html .= ‘ Adresse: ‘;
$html .= ‘</span>’;
//print_r($_POST);if($post->post_address){ $html .= ‘<span itemprop=”streetAddress”>’.$post->post_address.'</span>
‘;}
if($post->post_city){ $html .= ‘<span itemprop=”addressLocality”>’.$post->post_city.'</span> ‘;}if($post->post_region){ $html .= ‘<span itemprop=”addressRegion”>’.$post->post_region.'</span>
‘;}
if($post->post_zip){ $html .= ‘<span itemprop=”postalCode”>’.$post->post_zip.'</span>
‘;}
if($post->post_region){}$html .= ‘
‘;
}
return $html ;
}Gotcha! And as Gaston would say : M’enfin!
Cheers,
Guy
I mean city and province on the same line, code on another… 😉
it works! I am happy as a Marsupilami!
Now, what would be the twist to :
a) put the city on the line below (instead of glued to the address, as now, and on the same line)
b) add the province and code as well, on another line (both on the same line)Thanks a million!
Guy
Hey Guust:
Thanks for the follow-up and I love that you feature Franquin’s Gaston Lagaffe, my childhood favorite.
I did add the suggested code in the script css box (see screenshot) but it did nothing.
Any idea?
Cheers,
Guy
-
AuthorPosts