Forum Replies Created
-
AuthorPosts
-
December 18, 2023 at 11:17 am in reply to: Display of active anchor link menu items doesn’t work anymore #1428385
Hi,
Some webhosts offer a optimized WordPress install that they have customized, and often in these cases they have added some custom code to disable jQuery Migrate and load jQuery in the footer, in these cases the options are removed from the theme options. Often these are on “WordPress Managed” hosting and the user is limited to making server changes.
In the past the webhost corrected the issue but I don’t know what they did.Best regards,
MikeHey Heinz,
I believe that this deprecation warning was added by the Dev Team as a part of the apply_filters_deprecated, the warning is shown while the new filter is applied, The warning is added so the theme is backward compatible. I assume that you are seeing this because you have wp_debug enabled, so you can ignore this warning.Best regards,
MikeHey ausgesonnen,
Typically you can add your javascript into your child theme functions.php with this function:function custom_script() { ?> <script> /* your javascript here */ </script> <?php } add_action( 'wp_footer', 'custom_script', 99 );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.
Best regards,
MikeHi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeHi,
Thank you for the link to your site and your patience, I tried disabling all of your plugins and checking your other settings but I couldn’t find a cause for this.
I copied your page to my test site and the hotspots work correctly, please see the link in the Private Content area.
Since I was unable to reproduce this on my site I have asked the rest of the team for ideas.
Does your site use object-oriented cache such as Memcached, Redis, Varnish, Litespeed, etc?
Thank you for your patience.Best regards,
MikeHi,
Glad that we could help, unless there is anything else we can help with on this issue, shall we close this thread then?Best regards,
MikeHi,
I’m not sure why this has occurred and I don’t think there is a fix for it, try creating yourself a new admin login and if that works also delete your old login.Best regards,
MikeHi,
Try using the login you posted for us, because I’m not seeing this.Best regards,
MikeHi,
For the slider I added this css:@media only screen and (max-width: 430px) { .html_header_top.html_header_sticky #top #wrap_all #main { padding-top: 182px !important; } }Best regards,
MikeHi,
I added !important; to flex-basis: 100%;
please clear your browser cache and check again.
Please see the screenshot in the Private Content area.Best regards,
MikeHi,
You homepage had a border around it because it had been saved as a Block Editor page:

I switch it back to a Advanced Layout Builder page and saved it for you.
I also tested a few pages and the ALB worked on all the pages.
Please check and then ask your web host about your cPanel backups, typically cPanel creates a backup each week, you may wish to enable this.Best regards,
MikeHi,
On mobile there is not enough room for the buttons next to the logo, so they will need to be smaller and under the logo.
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:@media only screen and (max-width: 430px) { .responsive #top #header #header_main .inner-container .widget { order: 3; flex-basis: 100%; } .responsive #top #header #header_main .inner-container .widget .avia-button.avia-size-medium { padding: 12px 5px 10px; font-size: 12px; min-width: 60px; } .responsive #top #header #header_main .inner-container .widget>div { padding: 0; } .responsive #top #header #header_main .inner-container .widget>div>div { text-align: center; } }Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.Best regards,
MikeHi,
I see your WordPress ▸ Appearance ▸ Theme File Editor is disabled, did you add the code to your functions.php via FTP?
Did you already remove it or do you get an error message when you try to remove it?
Perhaps rolling your server back to the last backup before you added the code would be the easiest solution.Best regards,
MikeDecember 17, 2023 at 8:32 pm in reply to: How can I make the blog page show only a listing of blog excerpts? #1428343Hey kerrya4446,
Please see our documentation for the blog there are a couple of different ways to set it up.
After reviewing the documentation, if you need further help please explain which way you want to set up the blog and include a admin login so we can help.Best regards,
MikeHey nickroy1,
Please try removing the code snippet that you added, if this doesn’t help please include an admin login in the Private Content area so we can be of more assistance.Best regards,
MikeHi,
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.4Best regards,
MikeHi,
You mean if you are logged in to WordPress or not?
If you don’t see it when you are logged out this means that your caching plugin has not been updated and is not showing the new css, or perhaps your server cache need to be updated, or perhaps your CDN cache needs to be updated.
So if you are using all of these you will need the clear and update all of these.
Typically caching doesn’t show for logged in users, so it proves that this css works. Please try clear and update your caches or disable all of them and check again.Best regards,
MikeHi,
Sorry I still don’t understand what you mean by “connected” and “deconnected”?
Do you mean if the css is “added” and “removed”?
When I check your page it seems to be working for me.Best regards,
MikeHi,
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,
MikeHi,
I don’t understand want you mean by “disconnected mode”
please explain further, perhaps a screenshot would help.Best regards,
MikeHey HenkN,
To not have double lightboxs please disable the theme lightbox at Enfold Theme Options ▸ Lightbox Modal Window
For the portfolio item try the class av-masonry-item-with-image
The background image for the portfolio item uses av-masonry-image-container, but you said that was not working for the portfolio items.Best regards,
MikeHi,
This is for only the width of the page, first.
I checked your css and you have two errors breaking your css:

I fix it for you, please clear your browser cache and check.
Please note that Safari can be hard to clear the cache, often you need to also clear the history to fully purge the cache, following these steps for Safari and note Step 4 where you will Clear the History.
I’m not sure what the px width for your screen, so the css has 2560px, you can adjust to suit.Best regards,
MikeHey rixi,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:@media only screen and (max-width: 767px) { #top .avia-icon-list .iconlist_icon { margin: 0 0 10px 0; } #top .avia-icon-list li { padding-bottom: 0; } }then look in your icon list content area, you have a extra empty paragraph tag from a empty line, probably from a “return” key stroke, you may need to look in the “text” tab to remove it.

This adds a empty space under your icon list:

Best regards,
MikeHi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
MikeDecember 17, 2023 at 12:53 am in reply to: [SOLVED]Hide .av-upcoming-event-venue in upcoming events plug-in Events Calendar #1428306Hi,
Thank you for the link to your site and your patience, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function custom_remove_hyphen_script() { ?> <script> (function($){ $('.av-upcoming-event-meta').contents().filter(function() { return this.nodeType == 3 }).each(function(){ this.textContent = this.textContent.replace(' - ',''); }); })(jQuery); </script> <?php } add_action( 'wp_footer', 'custom_remove_hyphen_script', 99 );Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
Best regards,
MikeDecember 16, 2023 at 11:12 pm in reply to: Tab section on mobile has recently stopped working properly #1428303Hi,
Thank you for the link to your site, I see that your tab images are large and the title font is also large for all of the tabs to fit on a small mobile screen, the tabs are designed to float off of th screens so the images and text can be large.
But if you want them to all fit on the screen try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:@media only screen and (max-width: 767px) { .av-tab-section-tab-title-container .av-tab-section-image { width: 80px; } #top .av-section-tab-title { padding: 10px 5px 0px 5px; } .av-tab-section-tab-title-container .av-inner-tab-title { font-size: 12px; word-break: break-all; } }I tested this on a 425px screen size, please see the screenshot in the Private Content area, if you have a smaller screen feel free to adjust the values smaller to suit your needs.
Best regards,
MikeHi,
Thank you for the link to your site and your patience, you have another open thread about PHP v8 issues and in that thread I believe that I found that your child theme contains out dated theme files causing errors.
I believe this is also related to the same issue because when I tested by enabling the parent theme, I didn’t find the error you posted in this thread.
Please try following the steps that I posted in the other thread and hopefully it will also sort this thread out too.
Thank you for your patience and understanding and for using Enfold.Best regards,
MikeDecember 16, 2023 at 10:45 pm in reply to: PHP 8 Causes Styling To Break On “Share This” & Related Posts Sections? #1428301Hi,
Thank you for the link to your site and your patience, typically we don’t have any errors with PHP v8, you say that you upgraded from v5.5, that version has been out of date for a long time, so I assume that your Enfold theme was also out of date?
I ask because your child theme has a lot of customized files, so there is a good chance one of those is not v8 ready.
I tried testing by disabling all of your plugins, but then your site crashed because your customizations seem to rely on Advanced Custom Fields & Custom Post Type UI
So I them tested by enabling the parent theme and the “Share This” social media icons and the “You might also like” related posts sections both showed correctly:

So this shows that the theme does work correctly with PHP v8, so I recommend checking your customized child theme files and compare them with the core files in the latest version and update accordingly.Best regards,
Mike -
AuthorPosts




