Forum Replies Created
-
AuthorPosts
-
Hey schweg33,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:@media only screen and (max-width: 767px) { #footer .av_one_half { width: 100%; } }
After applying the css, please clear your browser cache and check.
Best regards,
MikeHey StephenStamp,
Can you link to the steps that you followed and your site, perhaps you made an error.Best regards,
MikeHi,
When you add a media query you will also want to wrap the above rule, so for example for desktop & mobile try this:@media only screen and (min-width: 768px) { .main_color .pricing-table li.avia-heading-row { height: 290px; min-height: 290px; } } @media only screen and (max-width: 767px) { .main_color .pricing-table li.avia-heading-row { height: 150px; min-height: 150px; } }
After applying the css, please clear your browser cache and check.
Best regards,
MikeHey StephenStamp,
Do you mean like the sort in our demo shop
this seems to work when I try. But to change these options I believe you need to use a plugin like this one or perhaps there is a official woocommerce plugin that will do this, but I don’t see any woocommerce options that will change these.Best regards,
MikeMarch 17, 2024 at 12:04 am in reply to: Button clicks tracking for Google Ads and Analytics can't be set up with Enfold #1437391Hi,
Thanks for your patience, this is a older thread, I don’t recognize the screenshots that you provide, but most of the threads that I have seen all use javascript to capture the click and send it to GTM, it sounds like you have this part figured out but you want to use classes instead, I would expect that using a clstom class to trigger click would work for any element, like a image, or a button, these are clickable elements. If it will only work on the link “a” tag why don’t you add “a” after your custom class like.customClass a
?
But if you would like to request a new feature, the Dev Team has opened a new Github Feature Request for users to place requests and follow them as the Dev Team reviews them.Best regards,
MikeHey menainfosec,
For your category page please go to Enfold Theme Options ▸ Blog Layout ▸ Blog Layout and choose List Layout – excerpt, or Grid Layout.
For the author you can go to the user profile and add info in the Biographical Info, or you can create a custom page and use a redirect plugin, or if you are really handy with PHP you can edit the author.php file but this is very advanced and may be tricky if you want to set it up for many authors.Best regards,
MikeHey khrntanya,
Thank you for your patience, for the grid row cell that is not showing on mobile, please add a white space element to it with a height of about 500px so it will show.
or you can try this css:@media only screen and (max-width: 767px) { .responsive #top #wrap_all .av-flex-cells .avia-builder-el-last.no_margin { height: 500px !important; } }
Best regards,
MikeMarch 16, 2024 at 9:10 pm in reply to: This YITH plugin does not work as expected with Enfold #1437386Hey marxsvjetlana64,
Thank you for your patience, the YITH plugin doesn’t work with Enfold because the plugin doesn’t seem to provide correct css to work with our page structure, I tried examining the css but it is just too big of a job to make it work with Enfold, and we are limited to providing support for third party plugins.
If you really want this to work you could probably hire a freelancer on Upwork to rewite the css for you.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 was going to suggest :nth-child() but it looks like you have it sorted out now.Best regards,
MikeMarch 16, 2024 at 7:15 pm in reply to: detele/disable the Text “Erweiterter Layout Architekt” #1437381Hey dillionline,
Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function remove_ALB_post_state( $post_states, $post ) { if("! has_blocks( $post->ID )") { unset($post_states['wp_editor']); } if("!= Avia_Builder()->get_alb_builder_status($post->ID)") { unset($post_states['avia_alb']); } return $post_states; } add_filter('display_post_states','remove_ALB_post_state',999,2);
If you are not using a child theme you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:
then add the above code and save.Best regards,
MikeMarch 16, 2024 at 6:31 pm in reply to: CSS for list item font colour on hover in post block editor #1437375Hi,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#top ol li a:hover { color: red; }
Best regards,
MikeHey LUISCANAL,
Try a back slash before the icon number:.my-custom-tabs .toggle_icon:before { font-family: 'entypo-fontello'; content: '\e817'; position: absolute; font-size: 18px; top: 50%; transform: translateY(-50%); left: 0px; line-height: 0; color: red; }
Best regards,
MikeHi,
Thanks for your help Guenni007, Lin84 it sounds like you have sorted out what you wanted to achieve, if this is correct shall we close this thread then?Best regards,
MikeHi,
Thank you for your patience as I understand what you would like to achieve, a full width changing image with a logo in the center at the top of every, post, page, & archive.
I note a few limitations, first none of our sliders offer a random image on page load, so they would always start with the same image and rotate in order. Second you would like to add this to the top of every, post, page, & archive without editing each post & page, etc.
So try this custom code to create this, if you are not using a child theme you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:
then add this code and save:function random_image_slider_shortcode($atts) { // Define default attributes and override with user-defined attributes $attributes = shortcode_atts( array( 'mobile_height' => '300px', // default mobile height 'desktop_height' => '500px', // default desktop height ), $atts ); // Define your image URLs here $images = array( 'https://example.com/wp-content/uploads/image1.jpg', 'https://example.com/wp-content/uploads/image2.jpg', 'https://example.com/wp-content/uploads/image3.jpg', 'https://example.com/wp-content/uploads/image4.jpg', 'https://example.com/wp-content/uploads/image5.jpg', ); // Start building the output $output = '<div id="random-image-slider" class="avia-section container_wrap fullsize" style="height: ' . $attributes['desktop_height'] . '; background-size: cover; position: relative;">'; // Add logo overlay $output .= '<img src="https://example.com/wp-content/uploads/logo.png" style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);" alt="Logo">'; // Add script for changing the background image $output .= '<script> (function() { var images = ' . json_encode($images) . '; var currentIndex = Math.floor(Math.random() * images.length); // Start at a random index var container = document.getElementById("random-image-slider"); function changeImage() { container.style.backgroundImage = "url(" + images[currentIndex] + ")"; currentIndex = (currentIndex + 1) % images.length; } changeImage(); // Initial call to set the first image setInterval(changeImage, 3000); // Change image every 3 seconds // Responsive height adjustment function adjustHeight() { var windowHeight = window.innerHeight; var isMobile = window.matchMedia("(max-width: 768px)").matches; container.style.height = isMobile ? "' . $attributes['mobile_height'] . '" : "' . $attributes['desktop_height'] . '"; } window.addEventListener("resize", adjustHeight); adjustHeight(); // Initial call to set height })(); </script>'; $output .= '</div>'; return $output; } add_shortcode('random_image_slider', 'random_image_slider_shortcode');
In the code above change the 5 images to your image urls, and ensure to use full urls to the images, and also change the image url in the logo overlay.
If you just wanted to use this script and add the element manually to your pages you could use this shortcode in a code block:[random_image_slider mobile_height="300px" desktop_height="500px"]
Note that you can change the height of the element for mobile and desktop. Also note that if you use large square images the whole image will not show on every device, the image will be cropped to the height that you set, also this will not be full width when used in a code block element, this is an example of the results:
Now since you want this added automatically to the top of every, post, page, & archive create a second PHP snippet in the WP Code plugin and add this code:
add_action('ava_after_main_title', 'ava_after_main_title_mod'); function ava_after_main_title_mod() { if(is_single() || is_page() || is_archive() ) { echo do_shortcode('[random_image_slider mobile_height="300px" desktop_height="500px"]'); } }
You can change the heights to suit, since this is added to the pages while the page is being created the element will be full width:
Give this a try.Best regards,
MikeHi,
Thank you for your patience, I don’t find a filter solution but this css solution seems to work well, in this example I want to only show the category “oil painting” on a specific page using the masonry element and enable the sorting for the tags “available” and “sold”
I have used the the tags “available” and “sold” also on other categories to simulate your issue:
now in the masonry element I sort my tag for the two tags “available” and “sold”
now on the page both categories “oil painting” & “order” show even though I only want “oil painting” to show the sorting tags:
so I use this css with the page ID and the only category that I want to show:.page-id-7542 .av-masonry-entry:not(.category-oil-painting) { display: none; }
and now only “oil painting” with the tags “available” and “sold” show:
and the sorting works fine:
please give this a try, and if you need help with finding the page ID or category classes please link to your page so we can examine and help.Best regards,
MikeHi,
First add the custom class specialHeight to each 1/4 column that you want the button the hot pepper image to line up below the special heading.
You don’t need to add this to the third odd item or items with no button or image.
Then typically I would add the following script to the end of your child theme functions.php file in Appearance ▸ Editor, but I see that you are not using a child theme so you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:
then add this code and save.function custom_specialHeight_script() { ?> <script> (function($){ $('.flex_column_table').each(function(){ var $specialHeading = $('.specialHeight .av-special-heading',this); var specialHeadingHeight = Math.max.apply(Math, $specialHeading.map(function(){ return $(this).height(); }).get()); $specialHeading.height(specialHeadingHeight); }); var resizeId; window.addEventListener('resize', function() { clearTimeout(resizeId); resizeId = setTimeout(doneResizing, 300); }); function doneResizing(){ location.reload(); } })(jQuery); </script> <?php } add_action( 'wp_footer', 'custom_specialHeight_script', 99 );
I did this for you on your test site.
Best regards,
MikeHi,
I believe that it has successful imported this time, please clear your browser cache and check.Best regards,
MikeHey Bernd,
Thanks for the link to your site, I don’t have any experience with GTranslate but the mobile menu and desktop menus seems to contain all of the same classes.
The menu items don’t contain real links just a hashtag, so this leads me to believe the GTranslate plugin is preforming a javascript “onclick” event and for some reason it is not working on mobile.
Please note that event pointerenter will not fire on mobile, your plugin should use touch-action I recommend asking your plugin for help with this as they are creating the javascript “onclick” event to change the hashtag into a link.Best regards,
MikeHey micheladalcastagne,
I was not able to see your screenshot because it requires a login, so I had to guess, try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#top .container_wrap { border-top-style: none; }
After applying the css, please clear your browser cache and check.
Best regards,
MikeHi,
I believe that I removed the “float” from the css that I gave you earlier, please compare the css from the two sites.Best regards,
MikeHi,
I’m not sure what the conflict is, perhaps from a lasyloading plugin, but I added this css to make it spin:.av-siteloader-wrap .av-preloading-logo { -webkit-animation-name: spin; -webkit-animation-duration: 4000ms; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; } @keyframes spin { from {transform:rotate(0deg);} to {transform:rotate(360deg);} }
please clear your browser cache and check.
Best regards,
MikeMarch 15, 2024 at 4:31 pm in reply to: Facing some bugs / issues after upgrading the ENFOLD version to 5.6.10 #1437328Hi,
I see that whenever a page is edited there is a permissions error for core WordPress files:
one is for a plugin “easy pricing” and I see and error that your Rest API has been disabled, so you made have other plugin conflicts.
comparing the wayback page with your current one, I only see the your headings have a color of #666 now and were #222 but the font sizes is the same, and you icon element font was 21px and now 16px. The problem is that the wayback page uses the Autoptimize cache and now you are not, Autoptimize often breaks the cache styles due to multiple minifying, typically people notice the error and the disable Autoptimize to correct, so I’m not sure if you didn’t realize the error until now when Autoptimize has been disabled and the cache cleared.
When I examine your general style you are using the font color #666 so this leads me to believe that this color is correct and the Autoptimize version was wrong.
I recommend disabling the above plugin and any others that are causing the permissions & Rest API errors.Best regards,
MikeHi,
Glad to hear that this custom menu is working. Please note that we ask that each request is asked in a new thread so it will be easier for us to help, this thread is getting quite long now covering multiple requests.
Thanks for your understanding and for using Enfold.Best regards,
MikeHi,
Glad Günter could help. If you have any other questions please open a new thread, thanks for using Enfold.Best regards,
MikeHey Solo Mesumbe,
unfortunately we don’t have a reseller program, but you could sign up as a Envato affiliate and permote that way.Best regards,
MikeMarch 14, 2024 at 5:25 pm in reply to: Audio Playlist showing Artist Name and current track with Quotation Marks #1437237 -
AuthorPosts