Forum Replies Created
-
AuthorPosts
-
If you have code you want to add to specific pages, you can add use the “code” element in the Avia Layout Builder and stick in there… Or create a widget with code and then use ALB to insert the widget on the page…. there has to be a way to it. Enfold is pretty flexible.
I thought once you embedded the pixel on each page via the header that event tracking then could take place… sorry, can’t help you.
It actually is very simple and I was able to do it … I’m not a coder.
You have to add the pixel code to header.php file …. if you’re not comfortable editing those files then yes you will need to hire a coder. But if you can edit it, here’s a cut and paste from my header.php file starting around line 37 you should see what’s just before where I put the code in. I have copied and pasted from my header.php so you can see how it looks.
Also consult this page for the instructions I used to install and then test the pixel:
https://www.facebook.com/business/m/pixel-set-up-step-2<!– Scripts/CSS and wp_head hook –>
<?php
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/wp_head();
?>
<!– Facebook Pixel Code –>
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=’2.0′;
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,’script’,
‘https://connect.facebook.net/en_US/fbevents.js’);
fbq(‘init’, ‘YOURPIXELCODEHERE’);
fbq(‘track’, ‘PageView’);
</script>
<noscript><img height=”1″ width=”1″ style=”display:none”
src=”https://www.facebook.com/tr?id=YOURPIXELCODEHERE&ev=PageView&noscript=1″
/></noscript>
<!– End Facebook Pixel Code –></head>
You insert your code where I typed “your pixel code here”… it should be a long number.
Hope this helps… be sure to backup your header file / website BEFORE you do any of this.
Cheers,
Rob (just a user, not a moderator)I switched to the free version of this plugin… it’s easy to use, free, and look great:
( I have no affiliation with the plugin, just trying to help a fellow Enfold community user in need!)
The worked perfectly, thanks! Basilis no offense but your instructions skipped the first 4 steps! (smile) You over-estimated my intelligence.. :)
I am guessing this question will become more common on the forum now that custom 404 pages are easy to set up.
Thanks, ok to close thread! Thanks Victoria!
Rob
Thanks Basilis, but I pasted that on a page and the page is just blank…. ?
April 25, 2018 at 11:41 pm in reply to: PLEASE STOP WRITING CAPITALIZED – it is no good netiquette #946934I totally agree.
NOW IS ANYONE GOING TO RESPOND TO MY THREAD?!??!
just joking!!
:)
April 25, 2018 at 5:38 pm in reply to: WP Engine Caching Issue on Query Strings with Enfold 4.3 (changed subject 4/25) #946732One more addition to this… I worked with WP Engine support and they excluded the Optima Express plugin directory to see if that would help. It did not. They also gave me this article on how their caching works. Object caching is turned off , so query strings SHOULD work, but they are 404’ing with 4.3… I’m back on 4.2.3 and stable again.
Here’s the link from WP Engine:
Thanks in advance for your help on this one… I know it’s not easy but we will have to figure this out as there are no workarounds for me on my end. With self-hosted video I decided to abandon that and just use Youtube video, but for this I can’t do anything.
Thanks!
RobApril 25, 2018 at 4:26 pm in reply to: WP Engine Caching Issue on Query Strings with Enfold 4.3 (changed subject 4/25) #946678Update:
This morning I decided to backup the production site and make the changes “live” on that site instead of pushing to production. This time, no 500 website down error, but the property search function on the website, which is critical and driven by Optima Express plugin, stopped working and started returning 404 errors for results pages. I am wondering if somehow 4.3 and server side caching (which cannot be turned off) from WP Engine is the issue? Periodically it would work on the browser logged in as admin, but it would not work from another browser or in private browsing mode, and kept returning the 404 pages. I am back on 4.2.6 and everything working fine again.Example of one of the results pages URLs is in private content below.
I tried:
– Refreshing permalinks structure
– Clearing cache multiple times
– Deactivating and re-activating optima express plugin
– Deactivated a re-direct pluginNothing fixed the issue except for returning to 4.2.6.
I hope you can help.
Thanks,
RobApril 25, 2018 at 3:57 pm in reply to: Issues after update to 4.3 with layerslider and datatables #946654Yigit fixed this on my site by using the Layerslider element in the Avia Layout Builder. The shortcodes don’t seem to work. Have you tried that?
It’s under media elements… I didn’t know it existed. Hope this helps.
April 25, 2018 at 6:29 am in reply to: WP Engine Caching Issue on Query Strings with Enfold 4.3 (changed subject 4/25) #946407Hi Yigit, I got everything working well on staging, then copied to production site and began getting 404 errors on pages (even after refreshing permalinks) and saw that some pages (search for homes) went to 404 page instead of to search results. Also saw lots of PHP fatal errors in server logs. Spent 2 hours with WP Engine support and finally reverted back to 4.2.6 enfold. (Yes, I am running php 7.0 and latest wordpress version, and WP Engine copied the staging site to a new directory on production server to try to get this to work).
Here is sequence of events:
Here’s sequence of events:
1. Updated staging site to 4.3
2. Made necessary changes to pages with Youtube videos to get them working.
3. Staging site appeared to be working fine.
4. Pushed staging to produciton
5. All hell broke loose. HTTP500, site down., WP Engine (host) copied over files manually to new directory from staging and site came back up.
6. First, I noticed Layer Slider on production site home page stopped working (text only, no video) and then same thing happened on staging site when it had been working fine before.
7. Went into optimizations tab on Enfold theme settings and unchecked everything.
8. LayerSlider video did not return.
9. Then I noticed that property search functionality (optima express plugin) began throwing 404 error pages instead of going to results (so open houses on main menu, then blue button that says see all open houses in Marin County) http://www.thomashenthorne.com/marin-open-houses/10. WP Engine tried to refresh permalinks, copy over fresh copy from staging etc but couldn’t fix. Lots of errors (examples below)
11. We had to revert to 4.2.6 backup
12. Now layer slider on staging site running 4.3 is again showing background video on home page… and I made no changes…. strange….Sample errors:
PHP Fatal error: Cannot redeclare av_countdown_events_fallback() (previously declared in /nas/content/live/myinstall/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_countdown/events_countdown.php:14) in /nas/content/live/myinstall/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_countdown.php on line 12PHP Warning: file_put_contents(/nas/content/live/myinstall/wp-content/cache/nextend/notweb/n2-ss-7/variations.manifest): failed to open stream: Permission denied in /opt/nas/www/common/production/php_prevent_flock.php on line 33, referer: http://www.thomashenthorne.com/marin-real-estate-blog/
I would love to run 4.3 and hope you can help me.
Thanks,
Rob-
This reply was modified 7 years, 2 months ago by
goldengate415. Reason: Clarity to reflect HTTP 500 error after first push of staging to production
April 25, 2018 at 1:16 am in reply to: WP Engine Caching Issue on Query Strings with Enfold 4.3 (changed subject 4/25) #946311RE #3 above, nevermind, deleted ?rel=0 from Youtube url and that fixed it.
April 25, 2018 at 1:02 am in reply to: WP Engine Caching Issue on Query Strings with Enfold 4.3 (changed subject 4/25) #9463081. Thank you, that solution works.
2. I don’t understand that? Do I need to enable the videos in 4.3 somehow?
3. Speaking of Youtube videos, the video shortcode no longer is working for page in private content. It’s showing the Youtube video url but not the video itself. I seem to recall we had this issue before but don’t remember how it was solved.
Thanks!
RobI am having the same problem. Is it a self-hosted video or Youtube video or Vimeo?
It seems like every update breaks the video background.
April 24, 2018 at 4:54 pm in reply to: WP Engine Caching Issue on Query Strings with Enfold 4.3 (changed subject 4/25) #946028Adding admin credentials in private content field.
Hi Yigit, while you are talking about php versions, I am running 7.0… do you recommend I upgrade to 7.1? I seem to recall there was some issues with 7.1 and Enfold and we were told to wait?
Thanks,
RobOK to close this thread… issue did not return! Thanks…. Rob
I would love it if Youtube videos would launch in lightbox by default, or have that option in the ALB element…
I think it’s due to all the Facebook privacy issues… they are really locking down all their APIs now.
I will remove the widget from my site until you tell us it is fixed.
I would suggest a sticky on this forum where users cannot post, ONLY MODS, with a list of known issues for the current release. That would save everyone a lot of time and help us proactively adjust elements of our sites if needed. If users are allowed to post, it will just turn into another huge support thread.
Thanks!!
Rob
Hi Victoria!
Cache cleared server and browser side, used two browsers… you can compare what widget is showing for Instagram vs. what live feed is by clicking on “See more!” at the bottom of the feed. They changed the API and aren’t allowing photos to pass through… hence the “forbidden” message.I would like to delete the widget (until devs can fix) as soon as you can confirm it’s not an issue on my side. Will leave widget up for now so you guys can see it in action.
I am guessing others haven’t noticed the problem yet as it looks like it’s working fine… until you notice the photos are from 10 days ago! ha ha
Best
RobI’m guessing it may have something to do with Instagram’s new API policy?
** delete **
-
This reply was modified 7 years, 3 months ago by
goldengate415.
April 5, 2018 at 3:13 am in reply to: Enfold Instagram Widget not Working (Enfold 4.2.6, PHP 7.2) #937414The Widget seems to have broken again… it’s appearing, but showing older posts from last week and stopped updating.
You can see it here:
(in side bar)
http://www.thomashenthorne.com/marin-real-estate-blog/
Thanks,
RobI better be careful or “Valiant” is not going to help me when 4.2.7. crashes my site… (ha ha!!!)
And Rikard, Google Translate translates your name to …. Rikard! :) :)
Best,
RobThe Google Translate of this conversation is pretty funny, “Valiant!!!” :) :) :)
Hello!
I’m fine thank you. Sende is good and I hope :)
In this or the past week, we are planning to release a new update. New features will be added but unfortunately as usual, we can not talk about features until the update :)
Regards,
ValiantHi Yigit,
Thank you so much!! It seems to me like page.php is too important / subject to change to move into the child theme so I probably should wait for the patch to hit production. Do you think it will be included in the next release?
Thanks again!
Rob
Oh wow, sorry!!
Sure thing, FTP logins for staging site are below.
Perfect, thanks, please close thread!!!!
Hey Vinay! Thank you… In my style.css I see this scary message:
“There are 3 errors which must be fixed before you can update this file.” with a message about the site breaking if I ignore this and update anyway.
Can you use the login credentials provided please and check on that file too? I tried adding it to quick css but as you probably already know, it doesn’t seem to help when placed there.
Thanks!!!
Rob-
This reply was modified 7 years, 3 months ago by
goldengate415.
-
This reply was modified 7 years, 2 months ago by
-
AuthorPosts