Forum Replies Created
-
AuthorPosts
-
Hi,
Thank you for the inquiry.
Did you actually create a publication_post template? Custom post types made from CPT UI should display immediately without creating a special template using a Blog Posts element. Please post the link to the page where you are trying to display the custom posts so that we could check it properly.
Best regards,
IsmaelHi,
Thank you for the inquiry.
That is possible but you may need to use a “discount” plugin.
// https://wordpress.org/plugins/woo-discount-rules/
If you only need to change the text in the sales badge, this code should help.
add_filter( 'woocommerce_sale_flash', 'wc_custom_replace_sale_text' ); function wc_custom_replace_sale_text( $html ) { return str_replace( __( 'Sale!', 'woocommerce' ), __( 'New Sale Text Here', 'woocommerce' ), $html ); }
Best regards,
IsmaelMay 18, 2021 at 1:53 am in reply to: Missing font in frontpage after clicking enfold save button #1300845Hi,
Thank you for the update.
Do you want us to export and import the theme options back in the staging site? Would you mind providing a screenshot of the issue? If necessary, you can configure the fonts in the Enfold > General Styling > Fonts panel, and the breadcrumb and title settings in the Header > Header Layout panel. We do not encounter any issues or errors when we try to change the theme options.
Best regards,
IsmaelHey nickthe,
Thank you for the inquiry.
This is possible, but we have to make a new instance of the portfolio widget and create our own query. To do that, try to add this code in the functions.php file.
// https://pastebin.com/eV2wigYu
We added the new query here.
$this->avia_new_query = array( "posts_per_page"=>$count, 'date_query' => array( 'column' => 'post_modified', ),'tax_query' => array( array( 'taxonomy' => $this->avia_term, 'field' => 'id', 'terms' => explode(',', $cat), 'operator' => 'IN') ));
And use the date_query parameter to fetch the portfolio items based on the date they were modified.
'date_query' => array( 'column' => 'post_modified', ),
More info here.
// https://developer.wordpress.org/reference/classes/wp_query/#date-parameters
The new name of the widget is “Movers Latest Portfolio”. If you want to change it, just look for this line.
WP_Widget::__construct( 'portfolioboxnew', 'Movers Latest Portfolio', $widget_ops );
Best regards,
IsmaelMay 17, 2021 at 3:51 pm in reply to: Refresh Price when quantity changes on Single Product Page to show discounts #1300772Hey baseenergy,
Thank you for the inquiry.
Which plugin are using now? Dynamically updating the price based on the current product quantity should be possible but we are not sure how the plugin works or how it updates the product. You may need to contact the plugin developers for more info.
Best regards,
IsmaelMay 17, 2021 at 3:46 pm in reply to: woocommerce category description displayed in title header #1300768Hi,
The hook works fine on our end. Please try this again.
// ADD PRODUCT CATEGORY DESCRIPTION IN RIGHT PLACE add_action("after_setup_theme", function() { add_action( "woocommerce_before_shop_loop", "woocommerce_taxonomy_archive_description", 10 ); add_action( "woocommerce_before_shop_loop", "woocommerce_before_shop_loop", 10 ); }, 20);
Open a new thread if this continues to be an issue and post the site details again in the private field. We will close this one for now because the thread becoming a bit too long.
Thank you for your patience.
Best regards,
IsmaelHey Blaise,
Thank you for the inquiry.
You can use this css code to move the featured image back to the left of the post content.
#top .fullsize .template-blog .blog-meta { float: left; margin-right: 50px; }
Please toggle or temporarily disable the Enfold > Performance > File Compression settings after adding the css code.
Best regards,
IsmaelHi,
Regarding the email address issue, please try the following steps.
// https://kriesi.at/documentation/enfold/contact-form/#my-contact-form-is-not-sending-emails-
This filter from the documentation might help.
function change_cf_from() { return " (Email address hidden if logged out) "; } add_filter('avf_form_from', 'change_cf_from', 10);
Replace the site URL with your own.
If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
Thanks!
Best regards,
IsmaelHi,
The problem occurs when i select category > uncategorised so that i can display all posts.
If you want to display all posts, then select all the available categories or taxonomies or do not select anything at all. It is possible that one of the item is not uncategorized.
Would you mind providing a link to the page where you need to display this? Are you using the Grid Layout? If you are, then you will have to modify or add the code in the enfold/config-templatebuilder/avia-shortcodes/postslider/postslider.php file.
Best regards,
IsmaelHi,
Awesome! Glad to know that it is fixed. Please feel free to open a new thread if you need anything else.
Have a nice day.
Best regards,
IsmaelHi,
We used this code in the functions.php file, but it did not work.
add_filter('avf_ratio_check_by_tag_values', 'avf_ratio_check_by_tag_values_mod', 10, 1); function avf_ratio_check_by_tag_values_mod($tags) { $lang = pll_current_language(); if($lang == 'hu') $tags = array('portrait' => 'portrait', 'landscape' => 'landscape'); if($lang == 'en') $tags = array('portrait' => 'portrait', 'landscape' => 'landscape'); if($lang == 'de') $tags = array('portrait' => 'portrait', 'landscape' => 'landscape'); return $tags; }
But then we noticed that the pages are not yet translated including the home page. Please translate the pages first, then set the home page in the Settings > Reading panel. (see private field)
// https://polylang.pro/doc/define-your-home-page-as-a-static-page/
// https://polylang.pro/doc/translating-pages-posts-categories-and-tags/Best regards,
IsmaelHi,
We did check it, but it is possible that you are using a shortcode or a custom plugin to embed the video. We are note exactly sure, which is why we asked. If you embed it directly using a video tag, then adding the preload attribute should help, as suggested previously.
Best regards,
IsmaelHi,
Unfortunately, this is not possible due to the following reason.
Video on most mobile devices can’t be controlled properly with JavaScript, so you can upload a fallback image which will be displayed instead. This image is also used if lazy loading is active.
You will have to upload a fallback image in place of the video on mobile view.
You could also hide the slider on mobile view and display an actual video element instead. Or use the Layer Slider element instead.
Best regards,
IsmaelHi,
Thank you for the clarification.
All I want is to stop the Block Editor from loading as I am only using the Classic Editor.
To remove the block library css, try to add this snippet in the functions.php file.
//Remove Gutenberg Block Library CSS from loading on the frontend function smartwp_remove_wp_block_library_css(){ wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); wp_dequeue_style( 'wc-block-style' ); // Remove WooCommerce block CSS } add_action( 'wp_enqueue_scripts', 'smartwp_remove_wp_block_library_css', 100 );
Glad to know that the site performance improved after blocking IPs.
Best regards,
IsmaelHi,
I want a user to click on “play”, then the video starts, but it does not play, it links
Thank you for the clarification. This is still an issue with the privacy options, which prevents videos from playing directly in the site when the privacy option is not accepted. Try to disable the privacy options temporarily or we suggested previously, try to set the Default Cookie Behavior to the first or second option, remove the cache and check the page again. The video should play directly in the site then without opening an external link.
Best regards,
IsmaelHi,
Unfortunately, we do not have access to the mail’s inbox, so we may need to do the login differently. Additional assistance from the plugin developers may be needed.
Best regards,
IsmaelHi,
We see this error in the console but it does not say exactly which function is calling the pause function, but there is a possible fix in the provided link.
Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause(). https://goo.gl/LdLk22
// https://developers.google.com/web/updates/2017/06/play-request-was-interrupted
We have also found a log in the plugin’s frontend.js file.
ar P = function(b, d) { c(b).parents(".mg_box").hasClass("mgi_shown") ? (c(b).hasClass("mg_muted_autoplay") && d.setMuted(!0), console.log("test"), d.play()) : setTimeout(function() { P(b, d) }, 100) }; mg_audio_play
Did you add the console.log?
Best regards,
IsmaelHi,
This is not a matter of showing empty category names.
Sorry for the delay. I think you misunderstood what we have just said. The single post that belongs to the hidden category may or may not exist on initial load and will only be visible once you load more posts. Only then will the sort button display because the post that belong to that category now exists. Again, this is a limitation of the category sort buttons.
Best regards,
IsmaelMay 17, 2021 at 1:13 pm in reply to: Main menu not working properly for the first section of the page "Home" #1300725Hi,
I’d still like menu to disappear when I click it
Yes, we understand but unfortunately that is not how the mobile menu works. It stops the default behavior when it detects that the current position is the same as the target element. You could try and remove the condition that we mentioned above to alter the default behavior.
Best regards,
IsmaelHi,
Do I get it right that you can now provide a filter
No, the code above is the function that generates the breadcrumb schema. We cannot find any filter, or we are not sure how Yoast generates the context. Have you tried selecting a page as blog as they recommended above?
Best regards,
IsmaelHi,
Sorry for the delay. It is possible that the plugin does not recognize background images, which is how the images in the full screen slider are used. You could try optimizing the images instead of using webp, or use a different slider.
Best regards,
IsmaelHey Stefan,
Thank you for the inquiry.
The video is not playing automatically on our end, but it does not stop after playing it manually. What happens when you remove the webm version of the video and leave mp4?
Best regards,
IsmaelHi,
Thank you for the update.
As Jordan said, this option is not available out of the box and might require custom modifications, but you could create a button and create a script that removes the “responsive” class name out of the html tag, which should also disable all mobile styles, presenting a desktop version of the site.
// https://api.jquery.com/click/
// https://api.jquery.com/removeclass/Best regards,
IsmaelHi,
Did you change the login URL? We cannot access the dashboard using the login form shown below.
Screenshot: https://imgur.com/pF8qNvL
For more info about the issue and general assistance, please contact the plugin authors.
Best regards,
IsmaelHi,
Thank you for the info.
We adjusted the code in the functions.php file and added another filter. The search widget is now displaying in the top bar but requires a bit of css modification.
// Header Widget in topbar add_action( 'avia_meta_header', 'enfold_customization_header_widget_area' ); function enfold_customization_header_widget_area() { dynamic_sidebar( 'Header' ); }; add_filter("avf_execute_avia_meta_header", "__return_true");
Best regards,
IsmaelHey Stephan,
Thank you for using Enfold.
Styling for the map is quite limited and it cannot be done with css, at least not directly. You can change the basic style settings like the Color Saturation in the map’s Styling panel.
If you need more styling options, you have to check the documentation.
// https://developers.google.com/maps/documentation/javascript/styling
// https://mapstyle.withgoogle.com/Best regards,
IsmaelMay 14, 2021 at 9:12 am in reply to: Several Masonry galleries on single page not loading properly #1300277Hi,
Thank you for following up.
We adjusted the code a bit, increase the priority value of the hook so that the script is rendered last. This fixed the issue. (see private field)
Best regards,
IsmaelHi,
Thank you for following up.
The screenshot shows up fine on our end. Please check it again. You may need to optimize the site further to improve its performance and overall loading speed. The following articles should help.
// https://kriesi.at/archives/scoring-100-100-in-google-pagespeed-insights-gtmetrix-pagespeed-and-yslow
// https://kriesi.at/archives/4-key-wordpress-image-optimization-tipsBest regards,
IsmaelHey emilconsor,
Thank you for the inquiry.
You will have to override the existing css media queries and replace the max-width condition from 767px to the value that you prefer. That will require a lot of css modifications. Why do you need to change it to 820px? 767px is actually the mobile phone breakpoint. 768px to 989px to 1024px are the most common screen resolutions for tablets.
// https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
Best regards,
IsmaelHey forcetechnology2,
Thank you for the inquiry.
A sort button or category will only display when a post that belongs to that category actually exists or is visible in the page. We can use css to display hiddencategories or sort buttons but nothing will happen when you click on them. This is one of the limitations of the sort option.
.av-masonry-sort .avia_hide_sort { display: inline; }
Best regards,
Ismael -
AuthorPosts