hugodebe
Forum Replies Created
-
Forum: Plugins
In reply to: [Glue for Yoast SEO & AMP] Analytics are not being savedThis question has already been replied here.
The code you have to add is the following, a specific analytics code for amp pages:
<amp-analytics type="googleanalytics"> <script type="application/json"> { "vars": { "account": "UA-XXXXX-Y" }, "triggers": { "trackPageview": { "on": "visible", "request": "pageview" } } } </script> </amp-analytics>Google help: https://developers.google.com/analytics/devguides/collection/amp-analytics/
Forum: Themes and Templates
In reply to: [Pinnacle] Add a download button for images in wp galleryHi Hannah, we bought VIRTUE Premium in 2016 for another website, that’s why I mentioned the website owner is a Kadence customer.
Hi Ben, I tried harder to make the fix work, with the help of an expert, but it is definitely not happening. I hope you will include the no-lightbox class in the next update.
It works well with this small edit in /pinnacle/assets/js/kt_main.js (line 55)
function kt_find_images() { $( 'a[href]' ).not('.no-lightbox').filter( kt_check_images ).attr( 'data-rel', 'lightbox' ); }Thanks for your help
Forum: Plugins
In reply to: [Search & Filter] Display results with permalinks changed for “Tag base”Nan nan… c’est juste une particule! Mais je suis des montagnes aussi, plus du cรดtรฉ des alpes ๐
Let us know if it works for you.
Forum: Plugins
In reply to: [Search & Filter] Display results with permalinks changed for “Tag base”I added those lines to .htaccess and it looks fine now.
# BEGIN Options +FollowSymLinks RewriteEngine On RewriteRule ^tag/(.*)$ /mytagbase/$1 [R=301,NC,L] # ENDForum: Plugins
In reply to: [Search & Filter] Display results with permalinks changed for “Tag base”hi pierre, the same problem for me. do you have any progress on this topic?
thanks
hugoForum: Hacks
In reply to: How to set preload=”auto” by defaut for native video playlistsThanks for your reply. To help me understand, using the post_playlist filter will have the same result than recreating the shortcode?
remove_shortcode('playlist'); add_shortcode('playlist', 'my_custom_playlist_shortcode');In both methods I have to copy all the code to customize the output, right? Is the filter a better approach than recreating the shortcode and why?
Forum: Themes and Templates
In reply to: [Pinnacle] Add a download button for images in wp galleryI can request your help through the premium support website, but as you told before, this had already been resolved for the premium themes.
Now I’m adding the js you sent to custom.js from my child theme directory. JS minification continues disabled.
When adding the js code to a text widget into the footer area, it didn’t seems to be loading. I was able to see it in the page source but it didn’t appeared when looking through the firefox debugger. Then I had a try using the Header and Footer Scripts plugin and I was able to see the script from the debugger. If you accessed the website earlier today, your code was in the header. Now you should find it easily into custom.js
Forum: Themes and Templates
In reply to: [Pinnacle] Add a download button for images in wp galleryHi Ben, did you managed to update your code with the no-lightbox class, to disable the lightbox? Please, let me know if it will come in an update of the theme or the toolkit plugin.
Otherwise, could you test again to the website? The download buttons aren’t working at all, even with the js minify disabled.
The site owner really would like this new feature to work now. He is a 2016 kadence customer as we implemented virtue premium on another project. I hope it can help you spend a bit more of time on this support request… ๐
Thanks in advance.
HugoForum: Themes and Templates
In reply to: [Pinnacle] Add a download button for images in wp galleryHi Ben,
The download buttons is really not working for me, independently of the browser I use, with the cache cleaned.
When I click a download button, it opens the lightbox.
Forum: Themes and Templates
In reply to: [Pinnacle] Add a download button for images in wp galleryThanks for your reply Ben.
I had already try to disable js minifying and/or load the script in the header, without success. You can have a look to this configuration accessing the website again.
I can’t see any error anymore in the Console. Please, can you see what am I doing wrong?
Forum: Themes and Templates
In reply to: [Pinnacle] Add a download button for images in wp galleryI removed the normal lightbox link on the image and rebuild my layout/css to display the buttons under the images on mobiles (under 767px). Images aren’t seen 3 times anymore by the lightbox, but I still have them twice as my download button link is seen as a lightbox link. I can’t find why the script sent by Ben isn’t working. Please, help!
Here is the link: combibresil.com/puma-gt-1600-bresil-1972-ref-pu04
- This reply was modified 9 years, 5 months ago by hugodebe.
Forum: Themes and Templates
In reply to: [Pinnacle] Add a download button for images in wp galleryHi Ben, I sent the link to the Kadence Facebook Page. Do you have access to it?
The reason I kept the normal lightbox link is for mobile compatibility. For small devices I hide both buttons and use the normal link only. I will have to think about another approach…
Forum: Themes and Templates
In reply to: [Pinnacle] Add a download button for images in wp galleryHi Ben, Hannah, thanks a lot for the quick reply. That’s what I was looking for!
I added the class and the script Ben provided but it’s not working yet for me. I also noticed that the number of pics in the gallery lightbox has been triplicated. What am I doing wrong?
$output .= '<div class="'.esc_attr($itemsize).' g_item"><div class="grid_item kad_gallery_fade_in gallery_item"><a href="'.esc_url($attachment_url).'" '.$lightbox_data.' class="lightboxhover">'; $output .= '<img src="'.esc_url($image[0]).'" width="'.esc_attr($image[1]).'" height="'.esc_attr($image[2]).'" alt="'.esc_attr($alt).'" '.$img_srcset_output.' class="light-dropshaddow"/>'; $output .= '</a></div>'; //Add the buttons for lightbox and download $output .= '<div class="image_links double"><a href="'.esc_url($attachment_url).'" '.$lightbox_data.' itemprop="image" class="zoom-image" title="Zoom"><i class="icon-zoom-in"></i></a>'; $output .= '<a href="'.esc_url($attachment_url).'" data-download="picture.jpg" class="no-lightbox download-image" title="Download"><i class="icon-download-alt"></i></a>'; $output .= '</div></div>';/wp-content/plugins/virtue-toolkit-custom/gallery.php
I sent you a frontend link again, via fb messenger.
Thanks
HugoHi @jeherve, OK for me. Google+ is back, thanks Jetpack!
Forum: Themes and Templates
In reply to: [Pinnacle] Add a download button for images in wp galleryHi Hannah, thanks for your reply. I added the script in footer but it doesn’t look to be running when i look in debugger. I continue to have data-rel=”lightbox” added to the link:
<a href="http://example.com/wp-content/uploads/2016/11/image.jpg" data-download="picture.jpg" class="download-image" title="Download" data-rel="lightbox"><i class="icon-download-alt"></i></a>Could you have a quick look and try to tell me what I am missing please? I sent you a page link in a message on the Facebook Page.