Forum Replies Created
-
AuthorPosts
-
Hi,
I’m having the same problem “havi” described. I guess the easiest solution would be to use both the “native” Google Analytics support of Enfold and the GTM:
The native Enfold support to track simple pageviews and the Opt-Out functionality With the GTM you can then add additional tags that should be fired. You only have to make sure NOT to track the pageview via GTM a second time. With the same UA-XXXXXX-X used, the Opt-Out Cookie should apply for GTM Tags, too.Of course that solution means you have to load two different javascripts. The more elegant way is to use only the GTM (insert it via header.php or functions.php of child) and let the enfold shortcode set the cookie.
As Enfold does not name the cookie individually, you can then just ask, if the cookie aviaPrivacyGoogleTrackingDisabled is there, and if so use the window[‘ga-disable-GA_MEASUREMENT_ID’] = true; command to disable tracking.All you have to do manually is to change the UA-XXXXXXXX-X in the following snippet and place it BEFORE the GTM code in the head:
<script>
if(document.cookie.match(/aviaPrivacyGoogleTrackingDisabled/)){ window[‘ga-disable-UA-XXXXXXXX-X‘] = true; }
</script>Hi,
yes, we overwrote some in a child theme – but I already deactivated them by changing their names temporary and it had no effect on the problem.
best,
DanileHi,
the 301s redirect the URL structure of the old website and should not impact the new site. (The the content of the blog archive is loaded under the post URL! There is no redirect here) The other lines in the htaccess are just regulary multisite wordpress stuff.Please feel free to deactivate the plugins to test where the problem is.
best regards,
DanielAny further idea, what I can try?
Hi,
tried that, didn’t help. Seems not to be a plugin issue :-(
best,
DanielHi Rikard,
thanks. The problem is besides, that if the layout editor is active the post does not display the featured image automatically and the customer would have to insert it within the laywout editor again. Thats why we originally decided to use the standard WordPress editor for posts.
Find the credentials in the private content section below.
best,
DanielPS: Would love, if you’d use HTTPS on kriesi.at, since users transmitting login & FTP credentials
Thanks,
find credentials in private content
best,
DanielHi,
thanks, already figured it out. Works by replacing “get_the_title($id),” in line 310 of child’s functions-enfold.php with “get_post_meta ($id, ‘motto_title’, true),”
But I don’t know, if that’s the very clean solution…
best,
DanielI don’t use a plugin. I thought of WordPres on board custom fields https://codex.wordpress.org/Using_Custom_Fields.
Hey Rikard,
by default the grey title bar can show title as H1 & breadcrumb, one of both or none. But I want to display a custom slogan (inside a div) & the breadcrumb in this bar. The H1 would be in the content area and is created in the WP Editor / Layout editor.
I thought I can define a custom field (e.g. named “motto”) in the backend and load the value of this field (e.g. “Wie wird Ihre Lösung aussehen?”) of this field in the title bar instead of the entry’s title. I’ve already managed to change the title-bar <h1> to a <div>, so that there are on the first hand not two H1s on one site, and on the second hand since the “motto” does not describe the content of the page.
Currently I could change the entry’s title in the backend to get the result – but that would bedazzle the customer’s editor(s).
Thanks!
Habe das im functions-enflod.php in einem Child Theme gemacht. Einfach in Zeile 312 den link auskommentieren:
//’link’ => get_permalink($id),lg
Daniel -
AuthorPosts