Forum Replies Created
-
AuthorPosts
-
March 6, 2021 at 3:48 pm in reply to: Enfold: Blätterfunktion von Seite 2 + 3 zurück auf Seite 1 funktioniert nicht #1286075
Hi, @searchboxx
Ich glaube, dass Sie zum automatischen Update das Envato-Plugin verwenden möchten, das in den WordPress-Update-Mechanismus integriert ist. Dies setzt voraus, dass Sie Ihr Thema bereits registriert haben und über ein Envato Personal Token verfügen. Ich erwähne dies, weil ich glaube, dass das Envato Personal Token allein den Versionsaktualisierungshinweis auslöst, aber um automatisch zu aktualisieren, müssen Sie das Plugin verwenden.
Dies liegt daran, dass Enfold ein Premium-Thema auf dem Envato-Markt ist und kein natives kostenloses Thema auf WordPress.
Ich hoffe, dies beantwortet Ihre Frage, aber bitte erwägen Sie, einen neuen Thread für zukünftige Fragen zu öffnen und Threads beizubehalten zum Thema.
Danke für dein Verständnis.— Translated with Google —
I believe that to update automatically you will want to use the Envato plugin and that integrates with the WordPress update mechanism. This assumes that you have already registered your theme and have an Envato Personal Token. I mention this because I believe the Envato Personal Token alone triggers the version update notice, but to automatically update you will need to use the plugin.
This is because Enfold is a premium theme on the Envato market, and not a native free theme on WordPress.
I hope this answers your question, but please consider opening a New Thread for future questions and help keep threads on topic.
Thank you for understanding.Best regards,
MikeHey lle-it,
Sorry for the very late reply, to add a “Skip to content” button please try adding this code to the end of your functions.php file in Appearance > Editor:function custom_screen_reader_script(){ ?> <script> jQuery(window).load(function(){ jQuery( '<div id="skipnav"><p class="skipnav"><a href="#main_content">Skip to Content (Press Enter)</a></p></div>' ).insertBefore( '#top' ); }); </script> <?php } add_action('wp_footer', 'custom_screen_reader_script');In the above code please note the custom ID:
main_content, this ID should be added to your page “main content” area that you want the Skip Nav to target.
To add a ID to an element such as a color section, please look in the element backend under the “developer” tab, for that element.
This approach will give you better control of the Skip Nav for each page. For example, your homepage may have a slider that the Skip Nav should jump over and go to the first color section, which contains the first content for that page. While other pages may have a different “first content” as defined by the UX and not the ALB elements.
I hope this makes sense.
With the above script you will also want to use this css to style, please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:.skipnav {position: absolute; display: none; text-align: left; margin: 0; padding: 0} /*For all, including Opera. Display:none used to switch off the skip links for Opera users (it's redundant, Opera has excellent keyboard navigation)*/ * html .skipnav {display: block} /*Switch on for IE6 and below*/ *+html .skipnav {display: block} /*Switch on for IE7*/ :root .skipnav {display: block} /*Switch on for Moz, FF and Safari*/ .skipnav p {margin: 5px 0 0 0; padding: 0; position: absolute; font-size: 2em} .skipnav a {width: 26em; display:block; color: #fff; background: #333; text-decoration: none; padding: 5px; position: absolute; left: -1000em; top: 0; font-weight: bold} .skipnav a:visited {color: #fff} .skipnav a:focus, .skipnav a:active {z-index: 999; min-width: 250px; top: -.1em; left: 0; border: solid #777 2px; color: #fff; background: #333 !important} /*Note IE bug that requires use of :active to mimic effect of :focus*/ .skipnav a:hover {cursor: default}Please feel free to adjust to suit.
After applying the css, please clear your browser cache and check.
The expected results:

Best regards,
MikeHi,
To use the Ajax search in a widget sidebar, please add this shortcode to a custom HTML widget:
[avia_sc_search placeholder='Search...' label_text='SEARCH' icon_display='input' icon='ue803' font='entypo-fontello']

The expected results:

In my test I found that the option: Enfold Theme Options > Performance > Disable Template Builder Elements > Always load all elements needed to be enabled:

Best regards,
MikeHi,
Please ensure that the option at Enfold Theme Options > Main Menu > General > Append search icon to main menu is enabled when your menu is set to the left.
If this is enabled please set the menu to the left as you would link it and include admin login in the Private Content area so we can check what is hiding the search icon.Best regards,
MikeMarch 3, 2021 at 1:24 pm in reply to: Fullscreen Slider – Continue Automatic Rotation After Click #1285014Hi,
Thank you for the login, I don’t see that you have a child theme installed at your main domain, linked below.
But I’m redirected from your staging site to your main domain, so I can’t login to your stagging site.
That is ok though, for your main domain, please install a Enfold child theme, you can use the original at that link or use child theme v1.0.1 that should be included with your theme download from Theme Forest, also linked here if you don’t see it.
The Child Theme v1.0.1 includes this function to allow you to save customize elements to your child theme in a directory named/shortcodes/:function avia_include_shortcode_template( $paths ) { if( ! is_array( $paths ) ) { $paths = array(); } $template_url = get_stylesheet_directory(); array_unshift( $paths, $template_url . '/shortcodes/' ); return $paths; } add_filter( 'avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1 );So the only steps you need to take, after installing the child theme, is to create a directory
/shortcodes/in your child theme, and then add a copy of the\wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\slideshow\directory, and all the files to your child theme shortcodes directory. Then the last step is to customize the child theme instance of the\slideshow\slideshow.jsas above and clear your browser cache.
Also please note that when you install the child theme you will need to Import the parent theme options.
Please give this a try.Best regards,
MikeHi,
Thank you for the feedback and glad to hear this helped, Unless there is anything else we can assist with on this issue, shall we close this then?Best regards,
MikeHey the_digital_manager,
Sorry for the very late reply and thanks for the link to your page and the screenshots, to remove the border from around the image and gallery, please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:#top.single-product div .avia-gallery img { border-width: 0 !important; } #top.single-product div .avia-gallery .avia-gallery-big { border-style: none !important; }After applying the css, please clear your browser cache and check.
Best regards,
MikeHey omerh570,
Sorry for the very late reply and thanks for the link to your site, it looks like you currently have the menu set to the left, please change this setting at: Enfold Theme Options > Header > Header Layout > Menu and Logo Position and pick a layout with the menu to the right.

Best regards,
MikeHi,
Glad we were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
MikeFebruary 28, 2021 at 2:43 pm in reply to: Feature req.: Select individual WC products in Product grid to insert into pages #1284225Hi,
Thank you for the feedback, I have submitted a feature request to the dev team, and I will reply here as it is updated, there is also a chance that the dev may also ask questions here, so we will leave this open. Thank you for your patience.Best regards,
MikeHi,
You can have the Logo and Main Menu set as a sidebar in the theme options:

Here is an example of a demo with this option.
To have a similar “expanding” menu, on this demo, on hover, this css could be used:.av-main-nav ul { position: relative !important; } .html_header_left .av-main-nav ul { left: unset !important; } .av-main-nav li ul.sub-menu li { display: none; } .av-main-nav li:hover ul.sub-menu li { display: block; } .av-main-nav ul li a { border-style: none !important; border-width: 0 !important; }
I believe you could have a much more similar menu to the example site with some more time, css, and some jQuery, but I think it would be more involved than our scope of support here.
Perhaps a alternative would be to look for a plugin.
Another possible solution for a expanding sidebar menu would be to use the “navigation menu” widget and select a menu, the default way this widget displays a menu is as a list:

and with this script added this code to the end of the functions.php file in Appearance > Editor:function custom_widget_menu_dropdown(){ ?> <script> (function($){ $(document).ready(function(){ $('#nav_menu-3 #menu-main-menu > li.menu-item-has-children').find('ul').hide(); $('#nav_menu-3 #menu-main-menu > li.menu-item-has-children').mouseenter(function () { $('#nav_menu-3 #menu-main-menu > li.menu-item-has-children').not(this).find('ul').hide(); $(this).find('ul').toggle(); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_widget_menu_dropdown');please note the nav_menu-3 in the code above may need adjusting, but the result is a collapsed menu that will expand on hover:

Just a thought.Best regards,
MikeHi,
The dev team has replied that they thought adding a way to choose ACF fields from an element in the ALB was a good idea and they opened a feature request on their end. They said they would take a closer look after the current release. I’m sure you can understand they are trying to release v4.8 first.
But I believe this is quite encouraging, I will reply further as the feature request is updated, or the dev team might also ask questions here, so we will leave this open.Best regards,
MikeHi,
Glad to hear this helped, unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeHi,
Sorry for the very late reply, perhaps the function you are referring to is this one:add_filter("avf_jpeg_quality", "avf_set_quality_mod", 9999, 1); add_filter("avf_wp_editor_set_quality", "avf_set_quality_mod", 9999, 1); function avf_set_quality_mod($quality) { $quality = 65; // compression level what you like in percent return $quality; }But I believe this was used before the default_jpeg_quality was added to the parent theme (Enfold) functions.php, currently the function is:
$resp_img_config = array( 'default_jpeg_quality' => 100, // ensure best image quality - use filter avf_responsive_images_defaults to change 'theme_images' => $avia_config['imgSize'], 'readableImgSizes' => $avia_config['readableImgSize'], 'no_lazy_loading_ids' => array() // add is's of images for permanently disable lazy loading attribute ); $resp_images->reinit( $resp_img_config );Please note the 100 in the code.
Best regards,
MikeHi,
Thanks for the feedback, after editing the parent theme and regenerating your thumbnails, (for the old images), or by uploading a new image, did this work? I checked the test page but it seems like the image is not there, so I’m not sure.
If this worked then it could be added to your child theme with a fliter like this:add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 ); function enfold_customization_modify_thumb_size( $size ) { $size['gallery'] = array('width'=>845, 'height'=>684 , 'crop' => false); return $size; }Best regards,
MikeFebruary 26, 2021 at 12:51 pm in reply to: Images metadata lost in Enfolds generated images #1283833Hi,
I certainly don’t want to sound rude, but unfortunately, I have been trying to explain that WordPress doesn’t perform this way.
You can prove this to yourself by testing on a WordPress install without Enfold and your image with the IPTC

Best regards,
MikeHi,
Glad we were able to help with this, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
MikeHi,
Wow, how about that? No, I didn’t do anything 😃
Thanks for the link, so the featured image on event detail page looks like it is using the “gallery” sized image (845px)
You could try editing the parent theme functions.php around line 187:

to this:
$avia_config['imgSize']['gallery'] = array('width'=>845, 'height'=>684 , 'crop' => false);
you would then need to regen your media thumbnails so the old images at this size are not cropped, all new images uploaded will follow this rule.
Or I believe you can choose which size image to use, within the element, if so try choosing the “masonry” sized image (705px), as you can see in the screenshot above, the masonry image is not cropped.Best regards,
MikeHi,
Sorry for the late reply and thanks I believe I understand better now. please try this script instead, you will notice two new lines targting the logo width, on scroll it will be 200px, after scroll it sets to 115px, which is the current width.function change_logo_on_scroll(){ ?> <script> (function ($) { $(window).scroll(function() { var width = $(window).width(), height = $(window).height(); var scroll = $(window).scrollTop(); if (scroll > 20 && width >= 900) { $('.logo a').find( 'img' ).attr('src', 'https://your-site.com/wp-content/uploads/2021/01/2nd-logo.png').css({ 'padding-top': '20px'}); $('.logo').css({ 'width': '200px'}); } else { $('.logo a').find( 'img' ).attr('src', 'https://your-site.com/wp-content/uploads/2021/01/logofinale.svg').css({ 'padding-top': '0px'}); $('.logo').css({ 'width': '115px'}); } }); })(jQuery); </script> <?php } add_action('wp_footer', 'change_logo_on_scroll');also check the url in the code above.
Best regards,
MikeHi,
Thank you for the screenshot, it looks very similar to my example above with the shortcode, to me this looks like the correct solution, please give this a try.
You can use the same slider as on your homepage if you copy and use that shortcode, you can see all of the pages shortcodes by using the Avia Layout Builder Debugger, or just recreate the element with the shortcode wand as described above.Best regards,
MikeHi,
Sorry for the late reply, I didn’t notice that this is not your thread, that is why you can not see the Private Content area and the screenshots.
Anyways, you said you like the result now, but you would like to have the read more button like it was in the “list layout”, unfortunately, the “Single Author, small preview Pic” layout doesn’t have a read more button, so for a workaround I added the “read more” to one of your posts:

Then I added this css to your Quick CSS:#top.blog .entry-content .more-link { text-align: right; position: relative; margin-top: 40px; } #top.blog .entry-content .more-link { display: inline-block; border-width: 1px; border-style: solid; border-radius: 100px; padding: 0 20px; text-transform: uppercase; font-size: 0.8em; font-weight: bold; position: relative; z-index: 2; background-color: #ffffff; color: inherit; line-height: 2.1em; font-size: 0.75em; }Now for the one post on your Blog the read more button is showing like on the “List Layout”

Please try adding the “read more” to the other posts, to show less of the excerpt try adding the “read more” above the post content.
The page is [your-domain]/news/Best regards,
MikeHi,
These fields in the WP media library are a part of the WP core and are not designed to get info from the images, they are designed to be entered manually by the user. (remember from above: “GD always strips profiles by default”)

But remember that the default WordPress has the functions for working with the GD script and not ImageMagick, so now that you are using ImageMagick and you want to incorporate its features I would recommend seeking out advice from an ImageMagick on WordPress expert, as in a freelancer, since ImageMagick is not used by WordPress by default researching into this further is beyond the scope of our support.Best regards,
MikeHi,
I’m not sure what you mean, on my localhost when I remove the css there are no issues?
Anyways this thread is starting to get off-topic, the topic of this thread is adding a “read more” button to the masonry items, and not the gallery. Which I was able to do for you.
While I would like to assist with your next topic of customizing the style your masonry items, I don’t see how this can effectively be done without seeing your site. I write this because often issues that I see are a result of css designed to target a different element and was not specific enough. This is one reason we typically ask to see the page you are working on, most css customization is not a “one-size-fits-all” situation.
We should close this thread as solved, and if you decide you would like more help customizing your masonry style and are willing to create a test page that we can work on together, then please open a new thread explaining what you are trying to achieve with a link, a screenshot is always welcome too.Best regards,
MikeHi,
To remove the ajax search result date, please try this css:.ajax_search_excerpt { display: none !important; }I’m not sure what you mean by adding the FULL-SCREEN SLIDER element inside a 1/1 layout, for a single product page, please include a mockup. I think you would like to edit the product page with the Advanced Layout Builder (ALB), and use columns, sliders, etc.
Which you can by switching the ALB:

and using these ALB elements:

But you can not re-create the exact same product page as the default Woocommerce product page, but you could create your own layout. Try editing a test product and see if this will help.
If it is important to keep the current layout and add a slider as I did above in the screenshot, then the steps I showed would be the solution.Best regards,
MikeHi,
Ok, when I check your /laboratorio/ page I see that no changes to the Initial Active Image have been made like I suggested to correct this. I made this change for you and now the issue is solved, please clear your browser cache and check.Best regards,
MikeHi,
I couldn’t find the single product page in your screenshot but I did find another linked below.
It is possible to inject a slider below the title bar on a single product page with a function and the slider shortcode in your functions.php
But I’m unsure if every single product gets the same slider or a different one, and if you plan on changing this often or never.
This example would be to add one slider to all single product pages. First, we will want to get the shortcode for our slider by using the Magic Shortcode Wand tool in the Classic Editor:

Then for this example I added only one image using the “featured” image size (1500px x 430px) with a title & caption, this is the shortcode result:

Then we will add that shortcode to this function, replacing[shortcode-here]with your shortcode.add_action('woocommerce_before_single_product', 'woocommerce_before_single_product_mod'); function woocommerce_before_single_product_mod() { if(is_product()) { echo do_shortcode("[shortcode-here"); } }Then add this code to the end of your functions.php file in Appearance > Editor.
My example looks like this:add_action('woocommerce_before_single_product', 'woocommerce_before_single_product_mod'); function woocommerce_before_single_product_mod() { if(is_product()) { echo do_shortcode("[av_slideshow size='featured' control_layout='av-control-hidden' perma_caption='aviaTBperma_caption' conditional_play='' animation='slide' transition_speed='' autoplay='false' interval='5' lazy_loading='disabled' alb_description='' id='' custom_class='' av_uid=''][av_slide slide_type='image' id='866' video='https://' mobile_image='' fallback_link='https://' title='Caption Title' video_ratio='16:9' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' heading_tag='' heading_class='' link_apply='' link='lightbox' link_target='']Caption Text[/av_slide][/av_slideshow]"); } }I also adjusted the slider top & bottom padding and margin with this css:
.single-product .template-shop { padding-top: 0 !important; } .single-product .template-shop .avia-slideshow { margin: 0 !important; }the rresults:

Please note that the slider is inside the page container so the page padding and margin still apply.If you are going to try this please edit your functions.php via FTP so if you make an error in the code and it crashes your site, you will be able to correct it. The WordPress > Appearance > Editor works good and is easy to use, but if your site crashes you can not reach the editor, but with FTP you can.
Best regards,
MikeHi,
I tested the masonry with the large gap and your css, and the issue I see is with your css, for example thepadding: 5px;adds the padding like this (the green area):

as you notice it is displacing the inner-masonry. I would recommend removing this padding.
Themargin-bottom: 15px;is increasing the “large gap”, I don’t believe that you wanted to increase the gap, so I would recommend removing this also (orange area):

as you can see, when the padding & margin is removed from your css, the issue is resolved:

Best regards,
MikeHi,
Glad to hear this helped, unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeHi,
Glad we were able to help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
MikeHi,
Thanks, currently your code is like this:
$('.logo a').find( 'img' ).attr('src', 'xxx/uploads/2021/01/2nd-logo.png').css({ 'padding-top': '20px','width':'max-content'});
try removing the width part of the css and only use the padding part in the jQuery, then use this css in your Quick CSS to make the logo 200px:.logo { width: 200px !important; }The reason is that you want the logo 200px wide always, but the script is only fired on-scroll, so css in the Quick CSS would work better. The padding css is only for the second image (small one) to center it vertically, and is used only on scroll so the css in the jQuery is the correct approach.
I hope this helps.Best regards,
Mike-
This reply was modified 4 years, 2 months ago by
Victoria.
-
This reply was modified 4 years, 2 months ago by
-
AuthorPosts
