Forum Replies Created
-
AuthorPosts
-
Guenni007,
Yeahhhh!!! Your Code is great. That works great!!!!
function ava_g_tag_custom_script() { ?> <!-- Google Tag Manager --> <script> (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-XXXXXXXXX'); </script> <!-- End Google Tag Manager --> <!-- Google Tag Manager (noscript) --> <noscript> <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXXXX" height="0" width="0" style="display:none;visibility:hidden"></iframe> </noscript> <!-- End Google Tag Manager (noscript) --> <?php } add_action('wp_head', 'ava_g_tag_custom_script');
So many thanks for your great help!
I am so happy!
Thanks and regards strumpel
Guenni007 so great for your fast help!
Arrr … i don’t usede the code tag …. :(
Sorry total!
Bist Du Deutscher?Dear support, @NIKKO @rikard
I’ve been trying to implement the Google Tag Code from Google Ads for hours.
But i get every the error:
Uncaught Error: Undefined constant “‘wp_head’” in wp-content/themes/enfold-child/functions.php:24
Stack trace:
#0 wp-settings.php(672): include()
#1 wp-config.php(104): require_once(‘/var/www/vhosts…’)
#2 wp-load.php(50): require_once(‘/var/www/vhosts…’)
#3 wp-admin/admin.php(34): require_once(‘/var/www/vhosts…’)
#4 wp-admin/theme-editor.php(10): require_once(‘/var/www/vhosts…’)
#5 {main}
thrown
What its wrong???Here is my script
/**
* Google Tag Manager Head Script
*/
function add_custom_gtm(){
?>
<!– Google Tag Manager –>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-ABCDEFGH’);</script>
<!– End Google Tag Manager –>
<?php
}add_action(‘wp_head’, ‘add_custom_gtm’);
/**
* Google Tag Manager Body Script
*/
function google_tag_manager_body_code() { ?>
<!– Google Tag Manager (noscript) –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-ABCDEFGH”
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) –>
<?php }
add_action( ‘ava_after_body_opening_tag’, ‘google_tag_manager_body_code’, 1);Can anybody help?
Dear Ismael,
in my site run wp-rocket …. this plugin is the best on market …But but still I have this 11.2 seconds of javascript execution time.
You don’t have no other idea, way, solution?
Could you please look at my website for a few minutes?
Please …
Regards strumpel
Dear Rikard,
allow_url_fopen on
opcache.enable on
PHP 8.3
Problem solved!
Yeah!
Thanks!
Regards strumpelDear Rikard
i have now the child-theme moved in other folder. Without folder themes…
Now is main theme enfold…
Now can’t also in enfold come in the settings …. Blank page without setting options….
The main enfold is in this morning to the newest version updated….What is here happened??
Can you help me fast?
I move my child theme back in themes folder. Than is my site style back… But without cookie buttons and settings options…
arrrrrgggg.
Regards strumpel
Dear Rikard,
when i install a clean child theme, than i lose my quick-css code from this? Where is the quick-css file in my theme?
Regards strumpel
Hey Rikard,
Nothing.
When i empty the function.php compleet, than has this no effect….
Can you help?Regards strumpel
Hi Mike,
thanks for your help!!!You: <<When I check with my iPhone 7 which has a screen width of 320px, the logo looks just like it does in the browser development tool for the same width.>>
That is crazy!!
Your css proposal i will check out.
Hmm … that is a tricky strange story….
Best regards
strumpel
Hi ,
375 x 812.
Browser Cache delete every time after changing the css.
Show my screenshots.
Chrome Browser Developer tool: https://imgur.com/a/aZvsnmc
Firefox Developer Edition – Browser Developer tool:: https://imgur.com/a/muR4fTg
My iPhone 11 live view: https://imgur.com/a/eVfk9dS<<When I check the browser developer tool and my devices look the same.>>
Realy?? Unfortunately not for me …Regards
strumpelHi Mike,
thanks for your help.But i think, you don’t understand what i mean.
When i changing the top:41%; to top:27%; than is the view in the browser development tool good!!
BUT not in my smartphone! The live view in my smartphone is bad. The logo is too deep.
With top:27%; is my live view in my smartphone good, but the view in the browser development is bad.
Belive me!
Show in your iphone or other smartphone and you will see, that this logo on the right place is.
I cannot explain this phenomenon.
And now I can no longer trust the browser developer tool.
Now do you understand what I mean?
Thanks strumpel
Dear Ismael,
thanks for you answer!
No! I don’t adjust burger menu!
I have Problem with adjusting Logo!!
What I mean with deeper??
You don’t show my screenshots?
Every browsers have developer tools with responsive check for a lot of mobile devices!
And when I check the responsive of my site in this browser tools, than I see, that my logo not an the right place is!!! It is a little bit deeper in the header!
And that is bad!
When I check my site live in my iPhone 11 or in a other iPhone 12, than is the logo on the right place! It’s not that deep! It’s okay!
My problem: I can’t trust the responsive browser check tool anymore!
And now the question: Why is the logo in the developer tool responsive check a few pixels deeper than in my iPhone or iPad!!!
Have I a problem with my css code?
Do you understand what I mean now?
Please look at the screenshots!
Thank you strumpel
Ahhh … thanks so much!!!
I look and change this!Great fast help Ismael!
Regards strumpel
@Mike???? :)))
Sitemap works properly again!
Yeah!
Your tip with the php memory limit was the right path!
In my error logs come every the php memory limit error…
OMG.
I agreese the limit with the wp-config.php.
And now it seems to be working again.Thanks for your great help!
Stay stable and have a merry Christmas!strumpel :)
8.1.26
Hey Mike,
thanks so much!I will make any test!
My PHP Versions i have all changed for and back.
Now i use 8.1.23 …. Problem is still there …I test now ….
Hello Mike,
thanks for your help!
I have now started a test…
All Plugins deactivated. Only rank math not.
The Problem is beetween enfold and rank math …. :(
<<If you have any customized files in your child theme, such as header.php & footer.php>> NoI delete the contents from function.php from enfold child and make the test.
New page or change a existing page –> /page-sitemap.xml is down —> 500 error
Not Plugin conflict with others plugins…I have 202 pages in my /page-sitemap.xml
I switch too twenty theme –> /page-sitemap.xml come back with all pages
I switch back too enfold child –> /page-sitemap.xml remains with all pages
I creat a new page or change a existing page –> /page-sitemap.xml is every down —> 500 errorSure! I switched also enfold child and enfold parent between …. –> the same error and problems
Anybody have a idea???
Please!
- This reply was modified 1 year ago by strumpumpel.
Yigit ….
how do I combine the two entries <head> and after open <bod> in this script??
October 17, 2022 at 4:48 pm in reply to: fonts.gstatic DSGVO Google reCaptcha Google Maps etc. #1369140Dear ismael.
thanks for your help and answer!But this plugin deactivate don’t fonts from google maps service … Google maps come in a frame. ..
And this plugin // https://wordpress.org/plugins/disable-remove-google-fonts/ don’t block fonts in a frame …
Any other ideas?
best regards
strumpelFebruary 13, 2022 at 7:48 pm in reply to: After Update to Version 4.8.9.1 big galery problem #1340402Ok … Rikard …
i have cleaned the cache from browser and now is the gallery ok!
Sorry for my browser problem!
Thanks for your fast help!! :)Best regards,
ssFebruary 11, 2022 at 4:56 pm in reply to: After Update to Version 4.8.9.1 big galery problem #1340184Hi Rikard,
thanks for reply.I have update of 5.9.1 and 4.8.9.1 …
The Word problem in over gallery is solved with the new code in the gallery.php! Thanks!
Also the gallery sorting problem is solved…. with functions.php code! Fine fine!And now is the next problem back there … Of the start-site is every gallery now double …
I have in backend 3 gallerys created and in the frontend show 6 gallerys ….Whats happend after update? Please login and show.
Great Thanks ss
- This reply was modified 2 years, 10 months ago by strumpumpel.
February 9, 2022 at 8:49 pm in reply to: After Update to Version 4.8.9.1 big galery problem #1339862Hey Rikard,
i have now a copy from this site.
Please show.
Now give at a other problem … the sort within the galery is not possible per drag and drop …
The word: Start is over every galery visible.
The double galery problem from yesterday, is in this site not more existent ….please help me
- This reply was modified 2 years, 10 months ago by strumpumpel.
Problem is resolved! Was a entry in the cookie handling. Admins can this Thread delete.
Thanks and by.
Hello Ismael,
great thanks for your help and your solution!!!
Tracking work fine! :)But say…. what is wrong in enfold since march 2020?? This tracking over google services tab worked the last years very good!
And now not more…Whats wrong with enfold??
Thanks stp
Yeah, yes Ismael!! Please!
Login data below.Best regards thanks etc.
stp
Yes, yes, Ismael!
That was my first intention and first action plot!
Enfold kill also the matomo analytics code in the source code from enfold!
Look self in source code: https://www.123-webseiten.de
This methode worked since years!
Whats is here happend?
I changed the theme and matomo work.–> tracking is possible
I disable all plugins and use enfold, not happend with matomo tracking–> no tracking over matomoWhats wrong Ismael??
- This reply was modified 4 years, 8 months ago by strumpumpel.
Dear Victoria,
sorry fore the late answer!!Okay…
I use matomo since for many years.
I take the matomo code and set him in the google analytics area under theme options – google services – Tracking-Code fore Google Analytics
This worked since many years!
Since 1 month don’t work…
I use the child theme settings since years and gived don’t complication and matomo tracking worked!
Now you say i must the matomo code in parent theme???
Okay…. i set the matomo code in the header.php from parent theme before </head> tag closed!
Result: enfold killed the matomo code in source code! –> don’t find any matomo analytics code!
Change the theme to twenty twenty than work the matomo code and is in the source code visible!
Now… what can you say?
Can you help me please?
I send your the login data in the privat content and you can test this please!So great thanks victoria for your help!
stp
Now… what can you say?
Can you help me please?
I send your the login data in the privat content and you can test this please!So great thanks victoria for your help!
stp
- This reply was modified 4 years, 8 months ago by strumpumpel.
i mean matomo
Hello Support?
anybody here and can me help??
Please!!
- This reply was modified 4 years, 9 months ago by strumpumpel.
so… that no people give a answer, make it this.
1. go in the quick.css from enfold
2. edit @media print{ } queri
3. .avia-cookie-consent-wrap {display:none !important;}
4. Now is in the print page no visible
5. for more changes got to developer tools in chrome
6. settings
7. Rendering
8. “Emulate CSS media Type –> print”
9. Now is the print page visible in browser
10 use developer toll and change what you want. -
AuthorPosts