Hi,
Thank you for your patience, I have examined the test page on your site removing & adding the slider and then checked the page shortcode carefully with the Avia Layout Builder Debugger and at one point I thought this might be related to the wp:paragraph tags that I found in some text elements:

but removing them didn’t help, so I copied the page to my test site to see the error would follow but it didn’t, I linked to the test page in the Private Content area so you could also check. This make me think that it was related to your footer widgets somehow, so I copied your to my site and I still couldn’t reproduce the error.
I then disabled the header on your test page and reuploaded the theme and disabled your plugins, but this didn’t help.
I also disabled your File Compression and cleared your Old CSS And JS Files.
So I’m not sure what the issue is from, but it doesn’t seem to be a error in the theme, since I can’t reproduce the error.
Your Site Health report says that your PHP module, imagick, is not installed, I don’t see how that could cause an error like this but it may be worth tring.
You could also try a different PHP version, I’m using v8.0.30, and you are using v8.1.26, perhaps try v8.2 or v7.4
Best regards,
Mike
Hi,
Thank you for your patience and the video, I think I understand what you were hoping to do, but I couldn’t find a way to change this. But I did come up with a solution that may work for you. In your video I noticed that your example post was created with the ALB (Advanced Layout Builder) so I assume all of them are. So I created a couple of test posts, not pages, on my test site and added a couple of images with the Image element and one with the Text element, although I believe you are only using the Image elements.
I set all of the images to medium size.

Then I used this function in my WPCode plugin as a PHP snippet, it will also work in your child theme functions.php:
function adjust_image_attributes_for_single_posts($content) {
if (is_singular() && in_the_loop() && is_main_query()) {
$content = preg_replace_callback(
'/<img(.*?)>/i',
function ($matches) {
$new_img_tag = preg_replace('/width=".*?"/i', 'width="auto"', $matches[0]);
$new_img_tag = preg_replace('/height=".*?"/i', 'height="auto"', $new_img_tag);
$new_img_tag = preg_replace('/sizes=".*?"/i', 'sizes="(max-width: 1030px) 100vw, 1030px"', $new_img_tag);
$new_img_tag = preg_replace('/class=".*?size-medium.*?"/i', 'class="size-large"', $new_img_tag);
return $new_img_tag;
},
$content
);
}
return $content;
}
add_filter('the_content', 'adjust_image_attributes_for_single_posts', 99);
It replaces the image class size-medium with size-large, which is not important but I thought it may help with some related css, and it changes the image width & height attribute to auto and changes the size attribute to 1030px so the large image is used from the image srcset.
This worked for me in ALB posts, I also tested in a Classic Editor post and it worked for the images in the post without changing the featured image, which is good because that is a different size and you would not want to change it.
The only thing that I noticed was that on the Classic Editor post the images didn’t seem to change in size even though the source code changed, and this was because to container width of the post was narrow, when I added so css to make the container full width the images showed correctly.
#top .fullsize .template-blog .post .entry-content-wrapper {
max-width: 100%;
}
#top .fullsize .template-blog .post .entry-content-wrapper > * {
max-width: 100%;
}
I don’t think this will matter for you, but I’m adding it for future readers that have this issue.
So give this a try and see if it helps you.
Best regards,
Mike
Hi,
I looked in your media library and examined your fontello-687a9f97.zip but it only had these icons:

the reason it won’t install is because your server doesn’t have the PHP ZipArchive Extension enabled:

please ask your webhost to enable this on your server.
Best regards,
Mike
Hello, I have added the code but nothing seems to be happening as far as I can see
This is how the code looks like in enfold-child/includes/loop-author.php

Hey woogie07,
That design should be possible yes, but you will likely need to add custom styling for both the footer and header. Mostly likely more for the header. You will likely also have to add widget areas to the header, or override header.php in a child theme and add the customisations in yourself.
Best regards,
Rikard
Hi,
Thank you for the link to your site, I re-saved your permalinks and now the links are working, I don’t know what caused this but I see a wanning on your dashboard that your PHP is very old an you should update it.

WordPress require at least PHP v7.4, but most servers use v8 now.
Best regards,
Mike
I’m running version: 5.6.9 of Enfold on WordPress 6.4.2. After upgrading to PHP 8.0, styling breaks on the “Share This” social media icons and the “You might also like” related posts sections.
Compare the bottom of these 2 pages:
PHP 8: https://beta.golfcoursehome.com/jw-collection-november-17-2023/
PHP 5.5: https://www.golfcoursehome.com/jw-collection-november-17-2023/
Suggestions?
Thanks Nikko. I am already using a child theme, so added the includes folder, copied the loop-index,php file, cut the code and pasted it on line 378 and cleared all caches.
Author name no longer showing up at bottom of blog posts, but not showing at top either! Any ideas why?
Thanks,
Matt
Hi Matt,
You would need to use a child theme to achieve it.
If you aren’t using a child theme yet, you can get it here: https://kriesi.at/documentation/enfold/child-theme/
Once you have installed the child theme, create includes folder inside it, then copy loop-index.php from Enfold (parent theme) and paste it inside includes.
Open loop-index.php and find this code (line 488-509):
/**
* Allow to change theme options setting for certain posts
*
* @since 4.8.8
* @param boolean $show_author_meta
* @param string $context
* @return boolean
*/
if( true === apply_filters( 'avf_show_author_meta', 'blog-meta-author' == avia_get_option( 'blog-meta-author' ), 'loop-index' ) )
{
$meta_author = '<span class="blog-author minor-meta">' . __( 'by', 'avia_framework' ) . ' ';
$meta_author .= '<span class="entry-author-link" ' . avia_markup_helper( array( 'context' => 'author_name', 'echo' => false ) ) . '>';
$meta_author .= '<span class="author">';
$meta_author .= '<span class="fn">';
$meta_author .= get_the_author_posts_link();
$meta_author .= '</span>';
$meta_author .= '</span>';
$meta_author .= '</span>';
$meta_author .= '</span>';
$meta_info['author'] = $meta_author;
}
Cut the code and paste it on line 378 (put the code below this code):
$close_header = '';
Hope it helps.
Best regards,
Nikko
Hi nebuddlho,
Yes, it’s possible but you would need to use a child theme.
If you aren’t using a child theme yet, you can get it here: https://kriesi.at/documentation/enfold/child-theme/
Once you have installed the child theme, create includes folder inside it, then copy loop-author.php from Enfold (parent theme) and paste it inside includes.
Then find this code in line 72:
$content_output = '<div class="entry-content" ' . avia_markup_helper( array( 'context' => 'entry_content', 'echo' => false ) ) . '>';
above it, add this code:
if ( has_post_thumbnail($the_id) ) {
echo '<div class="author-featured-image">';
echo get_the_post_thumbnail( $the_id, 'large' );
echo '</div>';
}
Hope it helps.
Best regards,
Nikko
-
This reply was modified 2 years, 3 months ago by
Nikko.
Hello there,
Unfortunately after the latest theme-update I get the following error message and a blank screen:
Fatal error: Cannot redeclare wp_make_content_images_responsive() (previously declared in /home/.sites/423/site7353545/web/wp-includes/deprecated.php:3997) in /home/.sites/423/site7353545/web/wp-includes/media.php on line 1350 Fatal error: Uncaught Error: Call to a member function set() on null in /home/.sites/423/site7353545/web/wp-includes/l10n.php:806 Stack trace: #0 /home/.sites/423/site7353545/web/wp-includes/l10n.php(900): load_textdomain(‘default’, ‘/home/.sites/42…’, ‘de_DE’) #1 /home/.sites/423/site7353545/web/wp-includes/class-wp-fatal-error-handler.php(47): load_default_textdomain() #2 [internal function]: WP_Fatal_Error_Handler->handle() #3 {main} thrown in /home/.sites/423/site7353545/web/wp-includes/l10n.php on line 806
Can you help me there?
Best regards,
R
Hi,
Thank you for the link to your site, please note the PHP error message in your dashboard, your PHP version is out of date, this should be updated on your server, if you don’t know how to do this plase ask your webhost to help. The WordPress PHP minimum is v7.4 but v8 is also a good choice.

Best regards,
Mike
Hey kevinraposo7,
I tested this on my demo site and the options.php showed the change and the default Attachment Display Settings for images was also set to large, for simple posts in the classic & block editors and in Advanced Layout Builder pages using the image element.
I noticed that for some of my images that were smaller than 1030px the default setting was then “Full”.
I tested the code snippet in my child theme functions.php and in the WP Code plugin in a PHP snippet type.
So I’m not sure why this might not be working for you, perhaps you have a plugin or other code snippet conflict?
Perhaps you are testing on a post and image that was already saved? Try creating a new post and select a new image from the media library or upload a new image, both of these worked for me.
Best regards,
Mike
@Guenni007
The code you put and the description is wwaaayyy over my head. Are you saying for SEO etc. I’d be better to use your code someplace (ie in a php file etc, or custom CSS)?
Thanks!
Jon
Hi,
For email, phone, map, try this in your widget:
<ul class="contact2">
<li class="mail"><span class="in2"><a href="mailto: (Email address hidden if logged out) ">[av_font_icon icon='ue805' font='entypo-fontello' size='20px'][/av_font_icon] (Email address hidden if logged out) </a></span></li>
<li class="phone"><span class="in2"><a href="tel://1-555-555-5555">[av_font_icon icon='ue854' font='entypo-fontello' size='20px'][/av_font_icon]1-555-555-5555</a></span></li>
<li class="map"><span class="in2"><a href="https://maps.google.com">[av_font_icon icon='ue842' font='entypo-fontello' size='20px'][/av_font_icon]maps.google.com</a></span></li>
</ul>
the expected results:

If you are not using a child theme I recommend the WPcode plugin this plugin supports PHP code snippets, JavaScript code snippets, & CSS code snippets.
When you add the custom social bookmarks widget code to the WP Code plugin ensure that the “type is set to PHP:



also add the css:
#top .socialbookmarks-widget .social_bookmarks {
float: left;
margin: 15px 0 0 ;
position: relative;
}
#top .socialbookmarks-widget .social_bookmarks li {
float: left;
clear: right !important;
}
the expected results:

Please note that these icons are from your social profiles settings:

Best regards,
Mike
Hi,
First you should update your sites, both are built with Enfold v4.1.2 with WordPress v6.1.4
v4.1.2 in not compatible with WordPress v6+ nor PHP v8+ so you need to update to v5.6.9
Envato (Theme Forest) changed how the updates were delivered a while back so your version will not be able to update automatically, please follow these steps to manually update:
To update your version of Enfold you will need to download the latest installable WP version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New

after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue

then you will see the Theme updated successfully message.
Best regards,
Mike
Hi,
In my research I find that this is added by WordPress, and to remove it try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function varnish_safe_http_headers() {
header( 'X-UA-Compatible: IE=edge,chrome=1' );
session_cache_limiter('');
header("Cache-Control: public, s-maxage=120");
if( !session_id() )
{
session_start();
}
}
add_action( 'send_headers', 'varnish_safe_http_headers' );
Best regards,
Mike
Hey Andrew Frahm,
Thanks for your question v4.2.5 in not compatible with WordPress v6+ or PHP v8+
You will need to update, we are now up to v5.6.9 and works with PHP v8+
Envato (Theme Forest) changed how the updates were delivered a while back so your version will not be able to update automatically, please follow these steps to manually update:
To update your version of Enfold you will need to download the latest installable WP version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New

after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue

then you will see the Theme updated successfully message.
Best regards,
Mike
Hello, I have to revisit this issue. To remind you, the DocCheck plugin restricts access to certain pages. I am currently logged out on every page load.
[21-May-2023 08:10:13 UTC] PHP Warning: Cannot modify header information - headers already sent in /home/mysitex/public_html/wp-content/themes/enfold/includes/helper-privacy.php on line 406
As the line above suggests, this is related to Enfold cookie handling. If I disable cookie consent messages in Enfold then I can browse pages without having to login on every page load. When I enable cookie consent messages, the login status is not remembered and I have to login on every page page load. It does not make a difference if I accept of reject cookies.
My cookie consent setting is “User must accept and must opt in, only essential cookies selected”
This line:
[21-May-2023 08:10:07 UTC] PHP Warning: session_start(): Session cannot be started after headers have already been sent in /home/mysitex/public_html/wp-content/plugins/doccheck-login/includes/class-dcl-base.php on line 304
Relates to this code:
session_start( [
'cookie_lifetime' => 86400,
'read_and_close' => true, // READ ACCESS FAST
] );
Any ideas how I can keep using cookie consent but avoid the headers related warning messages so DocCheck stays logged in?
Thank you very much
This reply has been marked as private.
Hello everyone
I found this support request from you here:
I have inserted the part in the function.php.
The script below I have inserted into the Customizer.css.
Now I don’t understand where to put the
<script type=”text/javascript”>
have to insert?
Can you help me with this?
then I would like the popup to only appear on one page
Page number: 11748
Thank you very much
kind regards
Franz
FIX: regenerated thumbnails in woocommerce > status > tools
and then added this code to functions.php (via https://kriesi.at/support/topic/different-image-sizes-on-category-overview-page/#post-1403765)
add_filter( 'avf_wc_before_shop_loop_item_title_img_size', 'avf_wc_before_shop_loop_item_title_img_size_mod', 10, 1 );
function avf_wc_before_shop_loop_item_title_img_size_mod( $thumbnail_size ) {
return 'woocommerce_thumbnail';
}
hi
I had to replace some images for my products but now the thumbnails on the overview page are smaller than the others
I don’t see where to control this or change it.
Not sure why this is happening since the new files are the same size as the old ones.
Can you help me with this? need a fix asap.
thanks!
-
This topic was modified 2 years, 4 months ago by
Munford.
-
This topic was modified 2 years, 4 months ago by
Munford.
Hi,
Thank you for the update.
WP-CLI response: ‘[error]FailedToExecuteWpCliCommand: exit status 1[/error] Your server is running PHP version 5.6.40 but WordPress 6.4.1 requires at least 7.0.0.’
Are you using WP CLI to install the theme? Have you tried manually installing and activating it in the dashboard? Even though PHP 8.1.26 is installed, it’s possible that the default PHP version on your server is still 5.6.40, and it is still being used to execute WP CLI. You may need to contact your hosting provider to confirm this.
Best regards,
Ismael
Hi
The error issue is saying that the server needs to be running minumum php 7.0. for WordPress 6.4.1
The server is actually running v8.1.26, so not sure why.
Anything else I can check?
Thanks
Hey woogie07,
Enfold is compatible with the latest version of WordPress and the PHP version you are running. Could you try to explain the problem you are having a bit further please?
Best regards,
Rikard
Hi,
Thank you for the info.
Please provide the login details in the private field and make sure that the Appearance > Theme File Editor is accessible.
The Appearance > Theme File Editor is not accessible, so we’re not able to edit the functions.php file. Please enable the editor back so that we can test the modification further. The documentation below should help.
// https://developer.wordpress.org/apis/wp-config-php/#disable-the-plugin-and-theme-file-editor
You should set DISALLOW_FILE_EDIT to false.
define( 'DISALLOW_FILE_EDIT', false );
Best regards,
Ismael
Hi
I added this PHP and CSS code. PHP Snippet 1.
Then set a product to 0. Stock Management is tracked.
Under the category: TROMBOCYTTINKUBATORER – (KLIMASKAP)
Right clicked the product Climax 100. Noticed the code
HTML Class soldout has been added.
CSS has been added.
.soldout {
padding: 3px 8px;
text-align: center;
background: #222!important;
color: #000!important;
font-weight: 700;
position: absolute!important;
top: 6px;
right: 6px;
font-size: 12px;
opacity: 1!important;
display: block!important;
}
Why is the black box sold out just seen for a moment before it goes away?
What is going on?
I have been down this road before in an earlier support thread in regards to a search in WooCommerce.
Hi,
A 500 error is a sever error, try checking your server logs and check your WordPress ▸ Tools ▸ Site Health ▸ Server for low settings like the PHP max input variables try comparing to these:

Are you using PHP v8.3? try rolling down to v8.2 or v8.1
I checked my test site again and I also have over 200 pages but I don’t have any errors and we have not had any other reports. Try going to WordPress Menu → Rank Math SEO → Status & Tools → Import & Export and switch to Advanced Mode and try exporting your settings:

and I will try importing them into my test site, perhaps it is a setting that I didn’t set the same way you did. Are you using the free version or the paid version? I don’t have access to the paid version, so try exporting your settings and then downgrade to the free version and test again.
Best regards,
Mike
Thank you Guenni007
for your feedback
everything is working fine
with the color i don’t mean the color in the slider
sondern die farbe in der meldung aus der function.php
<div class=”av-more-info”><span style=”font-size: 14pt; color: ##0097d2;”>Dorfgeschichte Eschnen Nendeln</span></div>
link: https://dorfgeschichte.li/interner-bereich/