-
AuthorPosts
-
June 28, 2022 at 7:04 pm #1356773
Hi,
I have a few queries:
1/ CSS
Where can this be added at theme level?2/ Adding code in head tag
If I need to add any tracking code in a head tag other than Google, where can this be added3/ Perfomance
Do you encourage to activate the he image optimisation plugins suggested for image and cache4/ SEO
Do you suggest any preferred SEO plugins that work well with the theme5/ ReCaptcha
Is it easy to get APi keys for ReCaptcha or can you simply enable recaptcha for each form. What is best practice6/ Pop up box on entry to accept cookies
Is there anything in the theme that sets an auto pop-up to accept cookies etc.July 1, 2022 at 11:30 am #1357003Hi,
I have had no feedback on this.
Please advise
Thanks
MarcusJuly 2, 2022 at 6:34 am #1357037Hi Marcus,
We apologize for the delayed response.
1/ CSS
Where can this be added at theme level?
You can add it via Enfold > General Styling > Quick CSS2/ Adding code in head tag
If I need to add any tracking code in a head tag other than Google, where can this be added
Go to Enfold > Google Services > Google Analytics Tracking Code, and add your code
For further information please check our documentation: https://kriesi.at/documentation/enfold/google-analytics/3/ Perfomance
Do you encourage to activate the he image optimisation plugins suggested for image and cache
Yes, however different server setup as well as site setup might cause some conflict, we suggest enabling the options one by one (or by batch) and test, if there are conflicts try disabling minifications or lazyloading4/ SEO
Do you suggest any preferred SEO plugins that work well with the theme
Yes, you can use Yoast SEO or RankMath plugin5/ ReCaptcha
Is it easy to get APi keys for ReCaptcha or can you simply enable recaptcha for each form. What is best practice
Yes, it’s easy to get recaptcha API keys, you’ll need to get it from https://www.google.com/recaptcha/admin, then enable recaptcha on the theme via Enfold > Google Services > Select if you want to use Google reCAPTCHA, you’ll need to enable recaptcha as well on the contact form.6/ Pop up box on entry to accept cookies
Is there anything in the theme that sets an auto pop-up to accept cookies etc.
Yes, go to Enfold > Privacy & Cookies, for further instructions please check: https://kriesi.at/documentation/enfold/privacy-cookies/Best regards,
NikkoJuly 5, 2022 at 9:22 am #1357256Hi
Ref Recaptcha
I am currently developing this site in an alternative dev domain.
The site will then be moved its domain for launch.
Recapcha required that the domain is hosted.Would you suggest I register for the keys under the dev domain to create them and add Recaptcha in enfold google services so that I can test.
OR
Wait until the site is in it’s true domain, then register for the keys in the true domain and then enable Recaptcha.Thanks
MarcusJuly 5, 2022 at 9:29 am #1357257Hi
Ref below –
6/ Pop up box on entry to accept cookies
Is there anything in the theme that sets an auto pop-up to accept cookies etc.
Your reply
Yes, go to Enfold > Privacy & Cookies, for further instructions please check: https://kriesi.at/documentation/enfold/privacy-cookies/Which do I enable to create the pop up in entry of the site?
2/ Adding code in head tag
If I want to add code in the head tag that is script not for Google but another – is this applied in Appearance > Theme File Editor? If so which php file do I edit?Thanks
MarcusJuly 6, 2022 at 6:07 am #1357350Hi Marcus,
Would you suggest I register for the keys under the dev domain to create them and add Recaptcha in enfold google services so that I can test OR Wait until the site is in it’s true domain, then register for the keys in the true domain and then enable Recaptcha.
You can register keys under your main domain, while using it on your dev domain, if the dev domain is just a subdomain of your main domain, if it’s (dev domain) a separate url/domain then just use the dev domain URL.Which do I enable to create the pop up in entry of the site?
Go to Enfold > Privacy & Cookies > Cookie Handling (tab) > set Enable cookie consent messages to Enable cookie consent messages and save.
That should make it show to popup window, however the options after that you’ll need to read through the documentation since everyone has different implementation of it.If I want to add code in the head tag that is script not for Google but another – is this applied in Appearance > Theme File Editor? If so which php file do I edit?
I would suggest using a child theme: https://kriesi.at/documentation/enfold/child-theme/
Make sure to follow the instructions especially in Install a child theme from your WordPress dashboard (usually step 4 is skipped which is important in keeping the same settings with the parent theme.
Once the child theme is setup properly, you can add this script in functions.php of the child theme://------------------------------- // Custom script in head section //------------------------------- function custom_script_name(){ ?> <script> // Your script here </script> <?php } add_action('wp_head', 'custom_script_name');
then insert your script in the area specified.
For further information please check: https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/#add-a-script-to-head-sectionBest regards,
NikkoJuly 6, 2022 at 9:06 pm #1357452Thanks for the feedback,
I do not have much knowledge of child themes. Is there any other way I can add code into the head tag?
Thanks
MarcusJuly 6, 2022 at 10:46 pm #1357462I can’t seem to download see the child theme anywhere on my ThemeForest account?
I see other people have had the same issue on the forum
Please advise.
July 7, 2022 at 7:02 am #1357494Hi Marcus,
The enfold child theme can’t be downloaded at themeforest, you can download it on our server: https://kriesi.at/documentation/enfold/child-theme/ then click the large yellow button with the label “Download the Enfold Child theme”.
Best regards,
NikkoJuly 7, 2022 at 3:15 pm #1357552Hi,
Until I have the child theme set, can I add script in Theme header.php?
Is the correct area to add straight after the hook –>
<!– 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();
Please confirm
Thanks
July 7, 2022 at 4:34 pm #1357575Hi woogie07,
You can add a script on the header.php directly however if you’re not using a child theme any changes you made in the enfold theme files will be lost during the update.
If you use a child theme then it’s great to override header.php with header.php of the child theme, but the best solution I think would be using the wp_head hook.Best regards,
NikkoJuly 7, 2022 at 5:12 pm #1357581Hi
I am a little confused.
Are you saying best to add the script within Child theme > functions.php
As below?
Thanks
Marcus//——————————-
// Custom script in head section
//——————————-function custom_script_name(){
?>
<script>// Your script here
</script>
<?php
}
add_action(‘wp_head’, ‘custom_script_name’);July 7, 2022 at 5:38 pm #1357587Hi Marcus,
Yes, that is correct. :)
Best regards,
NikkoJuly 8, 2022 at 12:56 pm #1357687Hi,
OK, so I took your advise on installing the Child Theme as per the documentation here: https://kriesi.at/documentation/enfold/child-theme/
I actioned all 4 steps as per the wordpress option including point 4 exporting and importing parent enfold theme settings.
Unfortunately many of the style settings are not showing from the Enfold parent theme settings imported. They all look to be set/showing in the Child theme options BUT not showing when live.
I have recached as advised a few times but the issues are the same.So I reverted back to the Enfold parent theme and uploaded the fallback Enfold theme setting HOWEVER this is now showing the same issues as above – many of the styles/fonts are not visible, even though they are set in the theme options.
Can you help please as it looks like the install of the child theme has bombed the styles on the site, even if I revert back to the Enfold theme.
Thanks
MarcusJuly 9, 2022 at 10:32 am #1357759Hi Marcus,
Yes, please give us temporary admin access and post it in private content.
Best regards,
NikkoJuly 9, 2022 at 11:00 am #1357764Hi
Thanks.
This is my dev site. I wanted to check that the child theme worked ok before going through the same process for the live site.
Please only check the dev site.
The child theme seems to be working OK now – not sure why? Has any of your team changed anything?
Thanks
MarcusJuly 9, 2022 at 11:25 am #1357769Hi Marcus,
Thanks for giving us admin access.
I have checked your site as well as theme options however I’m not seeing any issues on my end.
The Fira sans font that is set is showing up properly on my end, the code in Quick CSS is also fetching properly (social icons) and the buttons set to 100px border-radius in Advanced Styling also shows.
Can you give us a screenshot on how it looks on your end? what browser are you using?Best regards,
NikkoJuly 9, 2022 at 12:07 pm #1357779Thanks Nikko
The font and styling issues that I experienced yesterday seem to be working OK now. Not sure how they have rectified. I did clear the cache a few times yesterday and could still see the issues – but today it is displaying OK?
I am on Google Chrome browser latest version.
Thanks
MarcusJuly 9, 2022 at 4:42 pm #1357794Hi Marcus,
I see, I’m glad that it worked well now :)
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.