Forum Replies Created
-
AuthorPosts
-
Hi,
Interesting, you were able to move the read-more button before the excerpt limiting function stripped it? I would have thought that the excerpt limiting function would have worked before the DOM so the jQuery would not find it.
I’m glad this excerpt limiting function works on both types of excerpts, I didn’t know about your other point but I would still post it to the Github Feature Request because I think Yigit also works on these things.Best regards,
MikeHi,
All of the colors for the sidebar menu are set in the Enfold Theme Options ▸ General Styling ▸ Main Content here is a screenshot to show you.
But note that these colors affect multiple element on your site.
If you want to add more content to your sidebar you would add more widgets.Best regards,
MikeHi,
This looks like a new topic, please note that we ask that each thread is specific to a single topic, your original question for this thread was about how to display the featured image on a Advanced Layout Builder post without manually adding it.Your first two new questions seem to be about the display of a shortcode, I see both of these pages are a shortcode in a code block element.
Please open a new thread and explain about the shortcode you are using, is it from a plugin? Thank you four your patience.Best regards,
MikeAugust 7, 2023 at 7:04 pm in reply to: Wp Rocket broke my hamburger menu, tags and accordion #1415737Hi,
Odd, the homepage uses the same classes as the other pages, I added a couple more.av-width-submenu .sub-menu .av-burger-overlay-bg .inner-container #header_main
and cleared your WP Rocket cache & cloudflare cache and checked on a incognito browser and it seems to be working.
Best regards,
MikeHi,
I have checked your contacts page on the frontend and backend but I see no issues, try clearing your browser cache and checking again.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,
MikeAugust 7, 2023 at 6:33 pm in reply to: Icon/Flipbox – Make Image Fill entire FlipBox Space (Headshot) #1415733Hi,
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,
MikeAugust 7, 2023 at 6:31 pm in reply to: Open an Element in a PopUp/LightBox upon click of a Button #1415732Hi,
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,
I see that you added your email address at Enfold Theme Options ▸ Social Profiles ▸ Your social profiles ▸ Special: Email Icon and when I tested the mail icon on the frontend it worked correctly by opening a new email message with your email address in the “to” line. I assume that the gmail address you added is your company email.
A mailto link opens the users email client with a new message for the email address.
What are you expecting?
You could have the link direct to a contact form on your site if you wish, just replace the mailto link with a url to the page with the contact form.Best regards,
MikeHi,
Guenni007 your idea for the excerpts is good please submit this feature request to the Dev Team Github Feature Request for Günter to review, he set it up for a central place to review them and reply to the authors. Thank you.
As for my filter, I found an old post by Ismael and it worked for both types of excerpts, Classic & manual excerpts, and with a little hammering I got it to show the read more also.Best regards,
MikeAugust 7, 2023 at 11:43 am in reply to: Smaller screen sizes slider revolution has a blank sidebar like thing #1415698Hi,
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,
MikeAugust 6, 2023 at 10:36 pm in reply to: Smaller screen sizes slider revolution has a blank sidebar like thing #1415668Hi,
Glad to hear that Yigit was able to help, it would be difficult to say why this is so, certainly there must be something different between the sites.
Nonetheless shall we close this thread then?Best regards,
MikeHi,
The post nav doesn’t have a query, WordPress sets the order for the loop, try using the Post Types Order plugin it was recommend in this article as best for Custom Post Types.Best regards,
MikeHi,
Thank you for your patience, Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:if ( ! function_exists( 'bb_filter_search_results' ) ) { add_action( 'pre_get_posts', 'bb_filter_search_results' ); function bb_filter_search_results( $query ) { if ( ! $query->is_admin && $query->is_search ) { $query->set( 'post_type', array( 'post', 'portfolio', 'page' ) ); $query->set( 'cat', array(43,44) ); } return $query; } } if ( ! function_exists( 'bb_filter_ajax_search_results' ) ) { add_filter('avf_ajax_search_query', 'bb_filter_ajax_search_results', 10, 1); function bb_filter_ajax_search_results( $search_parameters ) { $defaults = array('numberposts' => 5, 'post_type' => array( 'post', 'portfolio', 'page' ), 'cat' => array(43,44), 'post_status' => 'publish', 'post_password' => '', 'suppress_filters' => false); $_REQUEST['s'] = apply_filters( 'get_search_query', $_REQUEST['s']); $search_parameters = array_merge( $defaults, $_REQUEST ); return $search_parameters; } }
it will limit the search to an array of categories, in the code look for ‘cat’ => array(43,44) and change the numbers to your categories.
Please note there are two places to make this change.
I tested this with the search element filter Post Types set to All, and with the filter set to Posts
and it only gave me results from the two categories in the code.Best regards,
MikeAugust 6, 2023 at 8:56 pm in reply to: Background image & height of Easy Slider on mibile phone #1415665Hey Saccollc,
Thanks for your patience, when I check your slider it looks like the min height is set to 56px, please double check. If the backend shows 200px please include an admin login in the Private Content area so we can investigate.
I checked the fullwidth easy slider in my demo and it respects the min height set in the slider options.
Are these the images you are having trouble with:
I see they are PNG but I don’t see a background color, I assume that you have already solved this.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 this helped, the current top padding is 82px so if you want to add 10px try adding it like this:#top #header_main #av-burger-menu-ul { vertical-align: top; padding: 92px 0px !important; }
adjust to suit.
Best regards,
MikeHi,
Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function custom_anchor_offset_with_slow_scroll() { ?> <script> (function($) { $('a[href*=#]:not([href=#])').click(function() { var width = $(window).width() if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { if ($(window).width() < 768) { $('html,body').animate({ scrollTop: target.offset().top - 80 //offsets for fixed header }, 1000); return false; } else { $('html,body').animate({ scrollTop: target.offset().top - 80 //offsets for fixed header }, 1000); return false; } } } }); //Executed on page load with URL containing an anchor tag. if($(location.href.split("#")[1])) { var target = $('#'+location.href.split("#")[1]); if (target.length) { if ($(window).width() < 768) { $('html,body').animate({ scrollTop: target.offset().top - 80 //offset height of header here too. }, 1000); return false; } else { $('html,body').animate({ scrollTop: target.offset().top - 80 //offset height of header here too. }, 1000); return false; } } } }(jQuery)); </script> <?php } add_action('wp_footer', 'custom_anchor_offset_with_slow_scroll');
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
Then clear your browser cache and check.Best regards,
MikeHi,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#top #header_main #av-burger-menu-ul { vertical-align: top; }
After applying the css, please clear your browser cache and check.
Best regards,
MikeAugust 6, 2023 at 6:46 pm in reply to: Masonry – tag “portrait” does not work in mulitlingual pages #1415656Hi,
Thanks for your patience and the link to your site, I see that the tag portrait is correct on the German translation: tag-portrait
But in the English translation it has been changed to tag-portrait-en
Perhaps in your plugin there is a way to remove the added -en but I don’t have experience with it.
I looked at your tags and tried to remove it, but couldn’t because your German language is already using portrait and two tags can’t be the same
Best regards,
MikeAugust 6, 2023 at 5:39 pm in reply to: Blog Post Element: selecting blog posts by multiple categories with AND failes #1415654Hi,
Thanks for your patience and the link to your site, I couldn’t see a cause for this issue on your site and couldn’t reproduce it on my site with my own test posts, so I export your posts to my test site and copied your test page to my site and all of the elements show posts.
I have linked to my test page below.
So I don’t know if your issue is due to a plugin or a customization, try switching to your parent theme and disable all of your plugins and see if the posts then show.Best regards,
MikeHi,
Thanks for the login but it doesn’t seem to be an admin login as I can’t see any theme setting or WordPress settings, please update to a admin login.
Have you tried disabling your plugins or switching to the parent theme to see if the partner logo then works correctly?Best regards,
MikeHey Pierre-Marie,
Thank you for your patience, but unfortunately we are not experienced with ACF.
I found this thread at stackexchange.com that may help you, but sense we don’t work with ACF I don’t have a way to test it. I recommend asking ACF support to assist you or hire a freelancer to assist.
We are limited in supporting third-party plugins, thank you for your understanding.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,
I have added the IP to my host file but I can’t load your site, I get this error: Error establishing a database connection
I also get an error that your site uses an unsupported protocol ERR_SSL_VERSION_OR_CIPHER_MISMATCH
Please try to resolve this so we can examine the elements, I can’t offer a solution based on a screenshot.
You could also try Enabling the Avia Layout Builder Debugger and copy the page to another install on a test site so we can see the page with the issue.Best regards,
MikeHey fw100,
“Blog-Breaking News” is not a default header, please link to your page so we can see if you are refuring to the page Title or the breadcrumbs.
If it is one of these there is not a place that you can edit the HTML, and that would not be a good idea as you would lose your customization with each update.
Please link you your page and tell us what you want to change it to so we can help.Best regards,
MikeHi,
The original function Yigit posted works correctly for classic editor posts:add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1); function avia_change_postgrid_excerpt_length($length) { $length = 100; return $length; }
But since this doesn’t seem to be working for you I assume that you have created the posts with the Advanced Layout Builder (ALB) and have manually added the excerpts:
In this case try this function:add_filter('avf_post_slider_entry_excerpt', 'avf_post_slider_entry_excerpt_mod', 10, 4); function avf_post_slider_entry_excerpt_mod($excp, $prep, $perm, $entry) { $the_id = $entry->ID; $permalink = '<div class="read-more-link"><a href="' . get_permalink( $the_id ) . '" class="more-link">' . __( 'Read more', 'avia_framework' ) . '<span class="more-link-arrow"></span></a></div>'; $excp = substr($excp, 0, 100).'...'.$permalink; return $excp; }
Best regards,
MikeHi,
To display the featured image for a Advanced Layout Builder post, add the image to the Featured Image in the WordPress editor sidebar, in the Classic Editor it looks like this:
In the Block Editor it looks like this:
and then you can use Guenni007’s shortcode [thumbnail] in a code block element on the page where you want the featured image to show after adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function thumbnail_in_content($atts) { global $post; return get_the_post_thumbnail($post->ID); } add_shortcode('thumbnail', 'thumbnail_in_content');
This is the thread the Guenni007 shaired the function in.
Thanks Guenni007Best regards,
Mike -
AuthorPosts