Forum Replies Created
-
AuthorPosts
-
December 7, 2022 at 7:48 pm in reply to: Blog list, keep article extract CSS in the Blog List view #1375420
Hi,
Thanks for the feedback, I believe that I have modified it as you wished, please clear your browser cache and check.Best regards,
MikeHi,
To open a new thread please click this link.
Thank you for using Enfold.Best regards,
MikeHi,
Thanks for the link, so to make the menu item “documentation” show open whenever the page “another page” is opened try this css:#top.page-id-21 #avia-menu.av-main-nav #menu-item-29.menu-item-has-children ul.sub-menu li { display: block; } #top.page-id-21 #avia-menu.av-main-nav #menu-item-29.menu-item-has-children ul.sub-menu { opacity: 1 !important; visibility: visible !important; }
To apply this to other pages and menu item you would change the page class (page-id-21) and the menu ID (menu-item-29) to your new page and menu item.
After applying the css, please clear your browser cache and check.Best regards,
MikeHi,
I added the class .mfp-content to your css for the popup so the width is only applied when it is a popup and not on the page, please clear your browser cache and check.Best regards,
MikeHi,
To change the phone number to white when the header is transparent please try this css:#top #header.av_header_transparency #header_main .phone_number a p { color: #f8f8f8; }
After applying the css, please clear your browser cache and check.
The number will then show as blue when you scroll and the header is no longer transparent.Best regards,
MikeDecember 7, 2022 at 1:33 pm in reply to: Secondary product attribute not displaying on single product page #1375337Hi,
Thanks for the screenshots and the login, I found this css in your Quick CSS that was hiding it:div table.shop_attributes .main_color table caption, .main_color tr:nth-child(2n), .main_color .pricing-table > li:nth-child(2n), #top .main_color .avia-data-table.avia_pricing_minimal td { color: #333333; display: none; }
I don’t know why you were using it but if I remove this line:
.main_color tr:nth-child(2n),
then the field shows
I put it back so you could investigate why it is there.Best regards,
MikeHi,
As I understand your last two posts, you have solved the duplicate recipe issue by replacing some of your child theme files, but now your footer doesn’t show?
So is that the page as a footer, or the regular footer or both?
which files did you replace?Best regards,
MikeHi,
The reason that one entry was shown twice was because I didn’t use the offset option, I was trying to demonstrate the layout, when I choose the offset Do not allow duplicate posts on the entire page (set offset automatically) there are no duplicates:
and the result:
But I think I understand what you mean now so I tested with one element having the top big image to the side and it fell on the left:
To flip it to the other side I added this css:#avia-magazine-1 .av-magazine-hero { float: right; } #avia-magazine-1.av-magazine .av-magazine-sideshow.av_one_half { margin-right: 3%; padding-right: 3%; width: 50%; border-right-width: 1px; border-right-style: solid; margin-left: 0; padding-left: 0; width: 50%; border-left-width: 0px; border-left-style: none; }
Best regards,
MikeHi,
I’m not sure that I understand because I was able to create this layout using the current magazine options when using two magazine elements in two columns, the element on the left only shows 4 thumbnails and the element on the right shows one larger 1030px x 1030px image.
So I’m not sure what you would like to change about the layout.To use larger thumbnail images for the magazine element, I added the custom class larger-thumbnails to the element on the left and this script at the end of my child theme functions.php file in Appearance ▸ Editor:
function custom_mag_thumb_size() { ?> <script> window.addEventListener('DOMContentLoaded', function() { (function($){ $('.av-magazine.larger-thumbnails .av-magazine-entry img').attr('width', '180px'); $('.av-magazine.larger-thumbnails .av-magazine-entry img').attr('height', '180px'); $('.av-magazine.larger-thumbnails .av-magazine-entry img').attr('sizes', '(max-width: 180px) 100vw, 180px'); $('.av-magazine.larger-thumbnails .av-magazine-entry .av-magazine-thumbnail').css({'height': '180px','width': '180px'}); })(jQuery); }); </script> <?php } add_action('wp_footer', 'custom_mag_thumb_size');
and this was the result:
I linked my test page below, please give this a try.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,
Glad to hear that you have this sorted out, shall we close this then?Best regards,
MikeHi,
When I check your child theme I see that you had an old header.php but no footer.php these to files went together so I would expect an error using the old header.php and a new footer.php. But your header.php is disabled right now and you are seeing the error so it doesn’t point to that as the error.
I see you are using Advanced Custom Fields, is this what is adding the recipes?
I mean that your recipe post type only shows shortcodes so are these shortcodes injected into a custom post loop to display?
If so this might be added to page as a footer because the code is looking for a div like “content” or such.
This would explain why when you use no page as a footer and just the normal footer with widgets the error doesn’t occur.Best regards,
MikeDecember 6, 2022 at 2:18 pm in reply to: Update to Enfold 5.2.1 breaks footer and other child elements #1375230Hi,
We could try updating and seeing how it goes since it is a staging site and we can easily roll it back.
As for future updates on the loop-index.php it’s hard to say, I don’t think it changed for a very long time and then the big change for version 5 was because WordPress made a big change and PHP8 was rolling out, so my guess is that it may not change for a long time.
Do you know what the customization was meant to do? I don’t see anything major on your blog page, if your customization was to just move some of the elements around like the date below the post for example then we could just use some javascript instead and you won’t need to use a custom loop-index.php at all.
Let me know what the customization was for and perhaps I can try to make the same changes with javascript first before we try updating.Best regards,
MikeDecember 6, 2022 at 1:54 pm in reply to: Error: Trying to access array offset on value of type null #1375226Hi,
Thanks for the feedback I have asked the team if there is a way to disable this for your plugin, when I hear back I will reply here.
Thank you for your patience.Best regards,
MikeHi,
Glad to hear this is helping you, when I test your website name in the top left corner from the dashboard it seems to go to your new page, also when I click your logo on the site and when I click you first menu item.
So I believe this is working correctly, Please see the screenshot in the Private Content area.Best regards,
MikeHi,
Glad to hear that you have this sorted out, shall we close this then?Best regards,
MikeHi,
Do you mean like the new page I created for you?
Try setting that page as your homepage in the theme settings and use it, it’s already corrected to use with the plugin.
I had also corrected all of your other pages because you said you were pressed for time.Best regards,
MikeDecember 5, 2022 at 8:59 pm in reply to: Blog list, keep article extract CSS in the Blog List view #1375150Hi,
Thanks for the login, I didn’t see any errors when I added it, please check.Best regards,
MikeHi,
Sorry, I don’t know what a PIM (Product Information System) is, but it sounds like a database of products with their prices and other info in a woocommerce format.
Is this correct?
And when you import it fills in the woocommerce tables in the database?
If so then it doesn’t make sense that you want to use the ALB because the products are not using the ALB elements, the theme will not automatically convert the products and the import doesn’t include the builder element used.
Please see my previous post, I believe you are misunderstanding the difference between the WordPress editor and the Advanced Layout Builder.Best regards,
MikeHi,
To set the homepage in the theme you choose the page you want to use in the theme setting Enfold Theme Options ▸ Theme Options ▸ Frontpage Settings
If you want to the revision option on the other page please choose the restore point that you want to use from the slide option as we talked about in another thread, I don’t know to which point you want to go back to so I don’t want to try to do it for you.
If you don’t see the revision point that you want to use from the list then I would not be able to see it either.
If you don’t see the revision point that you want to use you could use the new page I created for you with your edits that I could see.Best regards,
MikeDecember 5, 2022 at 3:20 pm in reply to: How can I add icons to Enfold Secondary Menu items? #1375112Hi,
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 5, 2022 at 3:12 pm in reply to: Update to Enfold 5.2.1 breaks footer and other child elements #1375111Hi,
Thanks for the login, so your header.php is adding the Google Tag Manager code and some ontraport scripts, this can be added to the child theme functions.php and is not a big deal. We don’t recommend using a header.php or footer.php in your child theme or you will keep having to update these files in most updates.
Your footer seems to be adding some call-to-action scripts, so this can also be moved to the functions.php
Your custom single.php & related-posts.php files have minor edits and I have made updated versions for these for v5.2.1
But your loop-index.php has major customizations and the v5.2.1 version is quite different so you are going to need to customize a new v5.2.1 loop-index.php for when you update. If you had hired someone to do this before please ask them to help you again because I don’t understand the customization and it is beyond what I can help you with.
Your custom contentslider.php was only edited to show the arrow and dot navigation at the same time so it should be easy to update.
If the theme had not changed so much from 4.5.7 to 5.2.1 then you could have just used your custom files and updated with no issues, but back around v5 the theme added more features and changed many core files like the loop-index.php
I found that your Advanced Custom Fields plugin adds custom classes to your pages and your css is based on this, so this is why when we updated the elements on your homepage was so different because we had disabled all of your plugins so the Advanced Custom Fields plugin was not added the custom classes and your css was not working.
So at least we figured that out.
So we could probably update with the new files I made for you and most of your pages would be fine, but not your loop-index.php, so I imagine that you are going to want to wait to update until you get a new custom loop-index.php created.Best regards,
MikeDecember 5, 2022 at 1:50 am in reply to: Update to Enfold 5.2.1 breaks footer and other child elements #1375066Hi,
Thank you, I tested the FTP and it seems to be the same and working, but I couldn’t login to the staging site with any of the logins posted in the past, I tried each one twice unless I missed one. Please check and post the staging site admin login.
Thank you for your patience.Best regards,
MikeHey Nic_007,
We could use the revision option but there is no guarantee that some of your changes won’t be undone, we would use the same options as you stepping back one at a time, as Yigit did a couple of days ago.
So instead I installed our Special Character Translation plugin I told you about in a different thread, then I created a new homepage for you from our restaurant demo and fixed all of the tags and add your phone number and restaurant name from your broken home page.
Please review the page I linked below.
I recommend deleting your broken homepage and set the page I make for you as your new homepage and make your changes to it.
I looked at your other pages and fixed the tags in them so I think this is a good and helpful solution.Best regards,
MikeDecember 5, 2022 at 12:50 am in reply to: Update to Enfold 5.2.1 breaks footer and other child elements #1375062Hi,
ACF is your plugin Advanced Custom Fields
I don’t see how the Header.php and Footer.php would change the layout it is not expected.
How about we try again, please restore the staging site back to the old version that is correct, and then I will investigate it first and then try to update again and see what happens.
Sorry for the back and forth, but I have not seen this kind of error before.Best regards,
MikeHi,
Please use this email:(Email address hidden if logged out)
and add the user and password login details in the Private Content area because that is not a real email.Best regards,
MikeHey lenalavendel,
Thanks for your question Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function masonry_sort_slash_to_hyphen() { ?> <script> window.addEventListener('DOMContentLoaded', function() { (function($){ $('.av-masonry-sort .text-sep').each(function() { var text = $(this).text(); $(this).text(text.replace('/', '-')); }); })(jQuery); }); </script> <?php } add_action('wp_footer', 'masonry_sort_slash_to_hyphen');
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
Best regards,
MikeHi,
Glad Rikard could 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,
We should close this duplicate thread – I answered your other thread.Best regards,
MikeDecember 4, 2022 at 11:51 pm in reply to: Help! The navigation is gone and the first part on the home page! ***URGENT*** #1375054 -
AuthorPosts