Forum Replies Created
-
AuthorPosts
-
Hi,
The LARGE BLACK BOX is GONE – because I DISABLED the plugin. When you ENABLE the plugin – the site becomes a nightmare,
Yes this is a bug of the toolbox plugin you’re using – see https://wordpress.org/support/topic/php-7-2-errors-6/
I’d recommend to downgrade to php 7.0. You can upgrade to 7.2 again as soon as the plugin developers fixed the issue. I’ll check the slider after the downgrade to php 7.0 – then we can be sure the toolbox plugin code doesn’t interfere with the slider.
Best regards,
PeterHi,
I copied it and checked no blank spaces are before or after the api key.
Best regards,
PeterHi,
I fixed it. I deactivated the css/js compression on the English option panel. It’s not required because you’re using the WP Fastest Cache Plugin which does the same :)
Best regards,
PeterHey jb84,
This is a known bug in the Envato update api. We found a fix/workaround for it on our end and we’ll include it with the next update. You can add this fix manually – use the theme editor (Appearance > Editor) and edit Enfold. Go to enfold/framework/php/auto-updates/ and open the class-pixelentity-theme-update.php file. Clear the entire file (remove the code) and copy the entire code from here https://pastebin.com/raw/epetJ1SG into the blank file. Afterwards save the file and the update should work.
You can also use ftp to update the file. Save the code from here: https://pastebin.com/raw/epetJ1SG to a file called class-pixelentity-theme-update.php. Then connect to your server via ftp, go to the directory wp-content/enfold/framework/php/auto-updates/ and overwrite the class-pixelentity-theme-update.php with the updated file you created before.
Best regards,
PeterHey Günter,
According to the polylang docs ( https://polylang.pro/doc/developpers-how-to/ – section “How to query content in a different language than the current one”) you can use the lang parameter to query the German posts.
You can use this code in your child theme functions.php to adjust the query
add_filter('avia_post_slide_query', 'avia_post_slider_custom_query', 10, 2); function avia_post_slider_custom_query( $query, $params ) { $query['lang'] = 'de'; return $query; }
If this code doesn’t work please talk to the plugin developers because we officially only support WPML and they can use the code above as a starting point if other query parameters are required.
Best regards,
PeterHi,
It will be part of the next update but we’ve no ETA yet. If you need a quick solution you can add the code snippets from here: https://wpbrigade.com/add-privacy-policy-checkbox-registration-form/ to your child theme functions.php
Best regards,
PeterHey Stefano,
You can use this code to exclude certain entries from the portfolio grid
add_filter( 'avia_post_grid_query', 'avia_post_grid_query_mod', 10, 2); function avia_post_grid_query_mod( $query, $params ) { $query['post__not_in'] = array(1301); return $query; }
You can replace 1301 with any other id (1301 would exclude “Odontoiatria Generale”). You can also exclude more entries, just separate the ids with commas like 1301,1302,1302…
Best regards,
PeterSeptember 17, 2018 at 6:00 pm in reply to: HTTP 500 error after update, have tried your recommendations, still not working #1010879Hi!
I updated the dev website for you. I just renamed /www/dev/wp-content/themes/enfold/ to /www/dev/wp-content/themes/enfold_bak/ and then uploaded the new theme files into the /www/dev/wp-content/themes/enfold/ directory.Cheers!
PeterHi!
I just entered the api key again and re-saved the theme settings – maybe it was a cache issue or there was a blank space before or after the api key.Best regards,
PeterSeptember 17, 2018 at 5:46 pm in reply to: Get variable of the url and attach it on subject of content form mail #1010866Hi!
You could use a prefix to mark your data – i.e. use this code
add_filter('avf_sc_contact_form_elements', 'avf_shortcode_sc_contact_form_elements', 10, 4); function avf_shortcode_sc_contact_form_elements($form_fields, $atts) { $data = ''; $googlevariable = 'myvariable'; $prefix = 'gv_'; if(!empty($_REQUEST[$googlevariable])) { $data = htmlspecialchars($_REQUEST[$googlevariable]); } if($data) { $form_fields[$googlevariable] = array('label' => '', 'type' => 'hidden', 'value' => $prefix.$data); } return $form_fields; }
– in the example I used the prefix ‘gv_’.
Then – in your filter code – you can use it to determine the right data field. I.e.:
add_filter('avf_form_message', 'avf_form_message_mod_new_field', 10, 3); function avf_form_message_mod_new_field($message, $new_post, $form_params) { $message = ''; $prefix = 'gv_'; foreach($new_post as $key => $data) { $pos = strpos($data, $prefix); if($pos !== false && $pos == 0) { $message = substr($data, strlen($prefix)); } } return $message; }
would replace the message with the content of your variable. If you want to append the content of the variable with some text to the message use:
$variabletext = 'My variable is: ' . substr($data, strlen($prefix)); $message .= $variabletext;
Regards,
PeterHi,
Great, glad I could help you :)
Best regards,
PeterSeptember 17, 2018 at 1:55 pm in reply to: Get variable of the url and attach it on subject of content form mail #1010750Hi,
I now tested the code and obviously it’s not possible to make the hidden field the first one without breaking the code. I’d recommend to leave it at the end to use the field type hidden to hide it. Use this code for the form:add_filter('avf_sc_contact_form_elements', 'avf_shortcode_sc_contact_form_elements', 10, 4); function avf_shortcode_sc_contact_form_elements($form_fields, $atts) { $data = ''; $googlevariable = 'myvariable'; if(!empty($_REQUEST[$googlevariable])) { $data = htmlspecialchars($_REQUEST[$googlevariable]); } if($data) { $form_fields[$googlevariable] = array('label' => '', 'type' => 'hidden', 'value' => $data); } return $form_fields; }
Best regards,
PeterHey Sjoerd,
Enfold does not support the facebook pixel (or other facebook widgets) out of the box but you can use a plugin like https://wordpress.org/plugins/opt-out-facebook-pixel-dsgvo-gdpr/ to implement it in a GDPR complaint way.
Best regards,
PeterHey Maskenzauber,
The embed enpoint was introduced in WordPress 4.4 ( https://make.wordpress.org/core/2015/10/28/new-embeds-feature-in-wordpress-4-4/ ) and enables others to embed your website (i.e. with an iframe on their website). WordPress then redirects the url (i.e. https://maskenzauber.com/faq ) to the embed endpoint (i.e. https://maskenzauber.com/faq/embed/ ). You can’t edit the embed endpoint directly with the post editor but it will display the page/post content. If you want to deactivate the embed endpoint please install this plugin: https://wordpress.org/plugins/disable-embeds/
Best regards,
PeterHi ak-muc!
Please add this code to your child theme to fix this issue:
add_filter( 'wpseo_title', 'avia_yoast_paged_title', 10, 1 ); function avia_yoast_paged_title($title) { global $paged; if(!empty($paged)) $title .= ' – PAGE '.$paged; return $title; }
Best regards,
PeterHey jamiebgp,
I checked your website code and the api key is missing. Please create me an admin account and post the api key and I’ll look into it.Best regards,
PeterHi,
Great, glad it works now :)Best regards,
PeterSeptember 17, 2018 at 11:55 am in reply to: Password-Protect Page Not Working in Google Chrome #1010691Hi,
To be honest I don’t know other plugins to protect pages with a password.
Another possible solution would be to protect your pages by simply hiding them from the public. Make sure the page is not indexed by a search engine (set the robots meta to noindex and nofollow) and use a random slug for the page (i.e. you could generate a long hash here: https://hashgenerator.de/ and use it as a slug). Then you could send out the url with the random slug (let’s say it looks like https://mywebsite.com/8617f366566a011837f4fb4ba5bedea2b892f3ed8b894023d16ae344b2be5881 ) to your users and it works like a password you send to them. With such a slug it’s impossible for others to guess the right url, also search engines won’t find it unless you add it to the sitemap.
Best regards,
PeterSeptember 17, 2018 at 11:42 am in reply to: Can not update to ENFOLD 4.4.1 ( on all our websites ) #1010687Hi,
I couldn’t update the theme on your website however the download url from envato seems to be correct (I debugged the code). Maybe a third party plugin breaks the update process.Personally I’d recommend to use ftp to update the theme ( https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#update-via-ftp ) otherwise you’d need to deactivate all plugins to chec if they may affect the update. If you use ftp make sure to replace the entire theme folder. If you just overwrite the existing files you’ll get a blank page (500 error). Connect to ftp, go to wp-content/themes and rename the theme folder “enfold” to “enfold_bak”. Then download the new files from themeforest, unzip the theme files and upload them to wp-content/themes/enfold. Make sure the style.css file is located in wp-content/themes/enfold (file path wp-content/themes/enfold/style.css). If the theme works, you can simply delete the enfold_bak folder. If not, delete the enfold folder and rename enfold_bak to enfold.
Best regards,
PeterHey jamiebgp,
The apply_filters_deprecated function was introduced in WordPress 4.6. Upgrading your WordPress to version 4.6+ (I’d recommend to update to the latest 4.9.x branch) will resolve this problem.
Best regards,
PeterHey Sorinwd,
I’d recommend to use hooks (actions and filters) to redesign the account page. This article may help you: https://businessbloomer.com/woocommerce-how-to-customize-the-my-account-page/
If you want to overwrite the templates you can download them here https://github.com/woocommerce/woocommerce/tree/release/3.4/templates/myaccount , and add them to the child theme folder (wp-content/themes/enfolf-child/woocommerce/templates/myaccount/). There you can modify the templates and they will overwrite the default templates.
Best regards,
PeterHi,
The browser console shows a javascript error with a tri.be events calendar script:
TypeError: e.attr(...) is undefined tribe-events-ajax-calendar.min.js:1:545
Ülease try to deactivate the events calendar plugin, clear all caches (browser cache and server cache if necessary) and check if this solves the issue. If yes please talk to the events calendar plugin developers and ask them to fix the error.
Best regards,
PeterSeptember 17, 2018 at 10:47 am in reply to: Woocommerce – Short Code [woocommerce_my_account] not working properly #1010668Hi,
Great, glad it works now :)
Best regards,
PeterSeptember 17, 2018 at 10:28 am in reply to: portfolio item showing error in Masonry with WPML #1010653Hi,
Can you please check the login credentials. When I try to log in I get the error: “ERROR: The password you entered for the email address (Email address hidden if logged out) is incorrect. Lost your password?”
Best regards,
PeterHi,
Glad I could help you :)
Best regards,
PeterHi,
This error message does not mean that the theme you have purchased is broken. If you are getting the no style.css message it means you aren’t actually uploading the actual theme file.
When you download the theme files from themeforest you can either download:
– All files (with documentation, psd files, wordpress theme, licence, versions file etc).
-: Only the theme files.If you download only the theme files and upload them to your server the theme will work fine. If you download “All files” you need to unpack the downloaded zip file first. Inside you will find another ZIP file that contains the actual theme files. This is the folder you can upload to your server.
If you need more information about this topic. Here is a video tutorial by themeforest: http://support.envato.com/index.php?/Knowledgebase/Article/View/269/0/my-wordpress-theme-isnt-working-what-should-i-do
Best regards,
PeterHi,
I updated Enfold for you :)Best regards,
PeterHi,
I updated the theme for you. I had to deactivate the “UpdraftPlus – Backup/Restore” plugin, then updated the theme and then re-activated the plugin.
Best regards,
PeterHi,
Please post the website url :)
Best regards,
PeterHey Briana,
You need to change the opacity of the section below (container of the headline below the slider). Sounds funny but this article describes it pretty well: https://philipwalton.com/articles/what-no-one-told-you-about-z-index/
This code should fix the issue:
#below { opacity: 0.99; }
Best regards,
Peter -
AuthorPosts