Forum Replies Created
-
AuthorPosts
-
Hi, sorry to bump this old post but I feel its highly relevant. Google reviews play an important role in local business ranking & it is worth noting Google like it when you embed their reviews within a website itself, a good SEO tool.
In the 2.4 yrs since this post I’m struggling to understand why the issue has not been addressed in a theme update. This is not a plugin issue in my eyes, its a theme issue. Theme blocks all third party Google map interaction other than the in-house facility provided within the theme. If you could please provide a switch in the next update to switch it off or a code fix, I feel it would be highly beneficial to many users.
After researching online, I came across the following code that I have implemented with small success:
add_filter( 'avf_load_google_map_api', '__return_false' ); add_theme_support('avia_template_builder_custom_css');
I placed the code into child theme functions.php but this only addressed part of the issue, whilst I managed to get a Google reviews plugin widget working, I can not duplicate the same results in a secondary widget area for some reason.
Please advise as to what can be done in relation to the problem as I’ve not come across a single alternate theme that has such issues with this plugin.
kind regards,
No it won’t. There have been numerous updates to the theme since my initial posting.
To be honest I literally just dropped the theme because of this issue. Well, primarily because of that. I couldn’t keep going back to my plugin author every time an updated version of the theme was released. (Though he has been really supportive).
I’d have much rather had the theme author / devs have come up with a solution but kind of felt like the support levels here were rather minimalistic when it comes to a code cruncher like this. (No disrespect) But they are beholden to Kriesi’s work and so if he doesn’t engage its pretty much game over. Or it certainly was for me.
Enfold is a fantastic theme, if you don’t need too many extra features. I just struggled with a good 60%+ of plugins I tried with it. JS reliant ones especially. I guess that’s a risk you take nowadays when buying themes as extensively developed as this. All under one roof is fine, if that’s all you need.
Hi all, coming back to this as the developer has found a solution.
It would be fantastic if you guys could contemplate adding an option for users to disable youtube videos from lightbox. The reason I ask is that it currently breaks any third party plugin using the youtube api.
For the moment we have had to change the following in /wp-content/themes/enfold/js/avia.js on line 897
//videoElements : 'a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"], a[href*="iframe=true"]',
to
videoElements : 'a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="screenr.com"], a[href*="iframe=true"]',
Also on line 603 of avia.js
if(url) { if( url.match(/(jpg|gif|jpeg|png|tif)/) ) span_class = "overlay-type-image"; if(!url.match(/(jpg|gif|jpeg|png|\.tif|\.mov|\.swf|vimeo\.com|youtube\.com)/) ) span_class = "overlay-type-extern"; }
to
if(url) { if( url.match(/(jpg|gif|jpeg|png|tif)/) ) span_class = "overlay-type-image"; //if(!url.match(/(jpg|gif|jpeg|png|\.tif|\.mov|\.swf|vimeo\.com|youtube\.com)/) ) span_class = "overlay-type-extern"; }
Would be fantastic to see something along these lines implemented into one of the next releases. I’m sure others will come up against YouTube issues at some point, if they haven’t already.
Regards,
SpedDid you miss my opening post Andy?
The message I posted ‘is’ off the developer where he has identified that avia.js is breaking the youtube API when the Masshare JS is injected.
I have tested with numerous premium themes without issue since running into difficulty with Enfold.
I had really hoped to use Enfold but if you guys can’t help, it will have to go.
Thanks.
- This reply was modified 9 years, 2 months ago by dasped.
Any further ideas Gents? Sorry for the bump, but I’m really hoping this can be figured out. Thanks.
Hi Elliott,
I have just changed the line as requested and there is unfortunately no change, the video still does not show up.I have left the line as changed for your inspection. Please feel free to trial any methods yourselves rather than asking. I give you my express permission to tweak anything you like in order that it will speed the process up and make life easier all round.
Thanks.
- This reply was modified 9 years, 2 months ago by dasped.
Video loads fine. There has been a month of testing here and all has been working without issue until I selected to work with Enfold. Thanks
Please feel free to try it yourself. This is a test environment so I have no issue with you activating and testing the theme for yourself.- This reply was modified 9 years, 2 months ago by dasped.
Hi, I have a test environment for you to check, details below.
Thanks.
-
AuthorPosts