-
AuthorSearch Results
-
September 12, 2023 at 8:27 am #1418848
In reply to: Productpage
Oh, actually the image-aspect ratio is best on mobile phone now. Also still sqeezed on the desktop. It would be great if it would be the same everywhere…
September 12, 2023 at 8:24 am #1418846In reply to: Productpage
Thanks Ismael,
Looks good on desktop and mobile phone. Thanks a lot!
On my tablet there is still no image on Privé-(Foto)bespreking (4th item) and the images are still distorted (to sqare size this time). Would be very grateful if you could also fix that.
September 12, 2023 at 8:19 am #1418845In reply to: Social button in the header on mobile phones
Hi,
Thank you for the update.
You can add this css code to align the social icons and the subnavi beside each other.
@media only screen and (max-width: 767px) { /* Add your Mobile Styles here */ .responsive #top #header_meta .container { display: flex; align-items: center; justify-content: center; } .responsive #top #header .social_bookmarks { display: block !important; float: none; width: auto; } .responsive #header .sub_menu, .responsive #header_meta .sub_menu>ul { float: none; margin: 0; width: auto; position: relative; margin-top: -10px; } }Best regards,
IsmaelSeptember 12, 2023 at 8:01 am #1418842In reply to: Productpage
Hi,
Thank you for the update.
We edited the css code and added a few css media queries to adjust the height of the images on tablet view or smaller screens and prevent distortion.
This is the modified css code.
@media only screen and (min-width: 990px) { #top.archive .thumbnail_container img { height: 324px; } } @media only screen and (min-width: 768px) and (max-width: 989px) { #top.archive .thumbnail_container img { height: 224px; } } @media only screen and (max-width:767px) { .responsive #top #main .sidebar { display: block !important; width: 100% !important; border: 0 !important; } .responsive #top #main .sidebar .inner_sidebar { margin-left: 0 !important; } #top.archive .thumbnail_container img { height: 178px; } }Please make sure to purge the cache before checking the page.
Best regards,
IsmaelSeptember 12, 2023 at 7:49 am #1418841In reply to: Does not work add_filter > ava_after_content hook.
Hey korpak,
Thank you for the inquiry.
You have to use add_action instead of add_filter because ava_after_content is an action hook.
// https://developer.wordpress.org/reference/functions/add_action/
Examples can be found in the following threads.
// https://kriesi.at/support/topic/is-it-possible-to-place-a-button-at-the-bottom-of-all-blog-posts/#post-1418664
// https://kriesi.at/support/topic/custom-post-archive/#post-1302542
// https://kriesi.at/support/topic/is-it-possible-to-place-a-button-at-the-bottom-of-all-blog-posts/#post-1418240Best regards,
IsmaelSeptember 12, 2023 at 7:45 am #1418840In reply to: Resize thumbnails on archive pages
Hey sarawh,
Thank you for the inquiry.
You can use the avf_modify_thumb_size filter to adjust the dimension of the existing thumbnails instead of directly editing the functions.php file. Usage examples can be found in the following threads.
// https://kriesi.at/support/topic/alter-featured-image-on-blog-does-not-work/#post-1342432
// https://kriesi.at/support/topic/title-and-image/#post-1304670
// https://kriesi.at/support/topic/source-for-masonry-image-size/Best regards,
IsmaelSeptember 12, 2023 at 6:58 am #1418829In reply to: Productpage
Thank you so so much, Mike!!! So glad this “not found” box is away! It looks the way I want it to look now!
At least on my desktop. On my tablet there is no image on Privé-(Foto)bespreking (4th item).
And the product-images on tablet and mobile look so out of proportion. From a landscape image it makes a portrait image. Is there any thing I can do to make it display the landscape image that I made?
I hope you can help me out on that too. So glad you are helping me!
September 12, 2023 at 2:07 am #1418817In reply to: Full Width Easy Slider Mobile
Hi jasonlthornton,
Please try to use this CSS code (I just added few things on top of Rikard’s code):
@media only screen and (max-width: 767px) { .html_header_transparency #top .avia-builder-el-0 .container, .html_header_transparency #top .avia-builder-el-0 .slideshow_caption { padding-top: 10px; } #top .avia-fullwidth-slider .avia-slideshow-inner { min-height: 240px; } #top .avia-fullwidth-slider .avia-slideshow-inner img { min-height: 240px; height: 240px; width: auto; max-width: none; } }Hope it helps.
Best regards,
NikkoSeptember 11, 2023 at 11:14 pm #1418804Topic: Add Amazon style search bar in top menu
in forum EnfoldIllingco
ParticipantHello. Can you please give me the steps and code (PHP, CSS) to achieve this in the most current iteration of Enfold? I would like to put it next to SHOP & ORDER NOW to it’s left. Thanks!
September 11, 2023 at 10:40 pm #1418802In reply to: Text Block Justify Parapraph
give a custom-class to those text-block elements – f.e.: justified-textblock
#top .justified-textblock p { text-align:justify; -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto; /*** new options for hyphens auto with less browser support -webkit-hyphenate-limit-chars: auto 4; -ms-hyphenate-limit-chars: auto 4; hyphenate-limit-chars: auto 4; ****/ }don’t know if those browser support prefixes are still in use ;)
but! the browser’s Justified Text setting may give unusual results, as it generally does not set any conditional word wrapping (including hyphens).
There was in former times there was Plugin : Hyphenator that can do a better job – but the plugin has been closed as of July 27, 2023
Maybe the plugin: wp-typography is a good alternative
September 11, 2023 at 9:51 pm #1418797Topic: Issue with dynamic_avia files
in forum Enfoldjedediahzilberberg
ParticipantHi,
I have multiple sites using the Enfold theme. As they should, all of them produce files in the /site/wwwroot/wp-content/uploads/dynamic_avia folder. A few of the site produce 10s of thousands of files, of the type “avia-merged-styles-…”, “avia-footer-scripts…”, and “avia-head-scripts…”. The sites that don’t do this only create these files for the current usage day and seem to delete the past ones. For the sites that are creating 10s of thousands of files, can you please let me know why this may be happening and how I can stop if from happening?
Thanks,
Jed
September 11, 2023 at 6:42 pm #1418790In reply to: Clickable hotspots rather than rollover in 2023
Hi,
When you say that you don’t like the text wrapping, I assume that you want the tooltips larger, currently they are 250px, try this css and adjust to suit:body#top .av-tt-large-width { width: 300px; }It looks like to place the tooltip over the other numbers you need to set the z-index of the open tooltip parent av-image-hotspot to at least 3.
So this will need to be done with jQuery in the above script, perhaps something like $(this).parent().find(‘.av-image-hotspot’).css({‘z-index’:’3′});
For me the draw open looks like a cool animation, but I think to remove it we need to add and remove opacity to the script, I will try to adjust this later unless you get to it first.Best regards,
MikeSeptember 11, 2023 at 6:11 pm #1418788In reply to: Productpage
Hi,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#top.post-type-archive-product .template-shop.content.av-content-full.alpha.units { display: none; }After applying the css, please clear your browser cache and check.
Best regards,
MikeSeptember 11, 2023 at 5:57 pm #1418787In reply to: Clickable hotspots rather than rollover in 2023
Plus, is there a way to get the tooltip to sit above the hotspots? At the moment, a higher numbers hotspot appears on top of the activated tooltip.
September 11, 2023 at 5:55 pm #1418786In reply to: Change Header styling
Hi,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:@media only screen and (max-width: 767px) { .responsive #top #wrap_all #main { padding-top: 90px !important; } .responsive #top.home #fullslider { margin-top: 90px; } }After applying the css, please clear your browser cache and check.
Best regards,
MikeSeptember 11, 2023 at 5:46 pm #1418785In reply to: Clickable hotspots rather than rollover in 2023
Yeah, it’s pretty good. I’m not sure I like the way the tooltip draws from top left to bottom right on activation – I don’t like the way the text wraps. Is there a way to tweak that?
Thanks again, Mike
Dominic
September 11, 2023 at 5:00 pm #1418772In reply to: Upgrading from 4.5.2 –> 5.6.6
Hi,
Great, I’m glad that Mike could help you out. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
RikardSeptember 11, 2023 at 5:00 pm #1418771In reply to: don’t show date on post listing
Hi,
Great, I’m glad that you got it working. Please let us know if you should need any further help on the topic, or if we can close it.
Best regards,
RikardSeptember 11, 2023 at 4:04 pm #1418764In reply to: Social button in the header on mobile phones
Hey Martin,
Please try the following in Quick CSS under Enfold->General Styling:
@media only screen and (max-width: 767px) { .responsive #top #header .social_bookmarks { display: block !important; } }Best regards,
RikardSeptember 11, 2023 at 1:23 pm #1418744In reply to: Change Header styling
Hi Mike,
that’s brilliant, thanks a mill! Just one thing: the mobile header now overlaps with the content at the very top, I have tested with a Google Pixel 6 phone, and browser console hints at this behaviour for other mobiles, too. I dont know how to overcome, e.g. applying padding-top at the body for mobile screens only it does not solve. Any help is much appreciated! :)
Best regards
-
This reply was modified 2 years, 7 months ago by
Alex Freelance.
September 11, 2023 at 12:18 pm #1418734Topic: Resize thumbnails on archive pages
in forum Enfoldsarawh
ParticipantHi,
a while ago I asked how we can change the size of the thumbnails on our blog archive pages. We need to do this because we have text on our images which is cut off with the predefined images size. You gave me a reply which I have understood (see below) – but can I implement this change in the child theme? I´ve tried adding this code but it isn´t making any difference, which suggests that I am doing something wrong ;) I have to add that I don´t know much about php. I re-uploaded one of the thumbnails after adding the code but that also made no difference./* Resize portfolio thumbnails on archive/category pages in the blog */
$avia_config[‘imgSize’][‘portfolio’] = array( ‘width’ => 710, ‘height’ => 375 ); // images for portfolio entries (2,3 column)You replied:
Hi,
Thank you for your patience and the links to your site, the portfolio size images on the archive pages is set by line 190 in the enfold/functions.php fileI didn’t find an easy way to adjust the image size on the archive page so I would recommend changing the portfolio size from array(‘width’=>495, ‘height’=>400 ); to mmatch the magazine size array(‘width’=>710, ‘height’=>375 ); and then you will need to regenerate your thumbnails and then check.
This would also change any other use of the portfolio thumbnails on your site, but it doesn’t look like this would be an issue for you.Best regards,
MikePost Link: https://kriesi.at/support/topic/change-layout-number-of-columns-on-blog-category-pages/#post-1310490
September 11, 2023 at 12:03 pm #1418733In reply to: Clickable hotspots rather than rollover in 2023
Thanks, Mike
Close, but no cigar for me yet. If you check this page: https://oxwedev.wpengine.com/this-is-a-map-test/ – password below – you’ll see the hotspots appear and disappear quickly. I think this is because the code is clashing with:
// custom script: hide the tooltip on the tab click function ava_custom_script_hide_tooltip() { ?> <script type="text/javascript"> (function($) { $(document).ready(function() { $('.av-tab-section-tab-title-container').on('click', function(event) { $('.avia-tooltip').css({ opacity: 0, display: 'none' }); }); }); })(jQuery); </script> <?php } add_action( 'wp_footer', 'ava_custom_script_hide_tooltip', 9999 );This code hides any visible tooltips when we click on a section tab – very important.
The clash is causing:
1. The clickable hotspots to open and close really quickly, and;
2. The clickable hotspots to stop working at all if you navigate away from the tab and back again.Is there a way to tweak this/these code/s so that they don’t clash?
I really appreciate any help you can provide.
Dominic
September 11, 2023 at 11:34 am #1418731In reply to: Productpage
I’m so sorry… it still does not work.
I placed in in the Appearance Editor. But still this “Not found field”.
There was already some info in the editor. Could that be the reason? Or could it be this text: “Don’t display products in the clothing category on the shop page.”
This is al the info there is in there:
@media only screen and (max-width: 768px) {
/* Add your Desktop Styles here */
.responsive #top .products .product:nth-child(odd) {
clear: none !important;
}
}
post-type-archive .woocommerce-no-products-found {
display: none;
}
function custom_pre_get_posts_query( $q ) {
$tax_query = (array) $q->get( ‘tax_query’ );
$tax_query[] = array(
‘taxonomy’ => ‘product_cat’,
‘field’ => ‘slug’,
‘terms’ => array( ‘cursus’ ), // Don’t display products in the clothing category on the shop page.
‘operator’ => ‘NOT IN’
);
$q->set( ‘tax_query’, $tax_query );
}
add_action( ‘woocommerce_product_query’, ‘custom_pre_get_posts_query’ );For your information: This is in the Enfold Quick CSS. Could that be interfering?
.single-product-main-image {width: 66% !important;}
#top .product div.images img {
width: auto;
margin: 0 auto;
}#top.archive .thumbnail_container img {
height: 324px;
}@media only screen and (max-width:767px) {
.responsive #top #main .sidebar {
display: block !important;
width: 100% !important;
border: 0 !important;
}.responsive #top #main .sidebar .inner_sidebar {
margin-left: 0 !important;
}
}
.avia-button {
background-color:gold!important;
}.product_cat-cursus .single-product-main-image{
width: 30%!important;
}add_action( ‘woocommerce_product_query’, ‘custom_pre_get_posts_query’ );
September 11, 2023 at 1:17 am #1418702Hi,
On your other thread about this I posted this:
In my test with the hotspot tooltip set to show – always
this hides all of the tooltips until one is clicked and when the next one is clicked the others are hidden.(function($) { $(window).ready(function() { $('.avia-tooltip').hide(); $('.av-image-hotspot_inner').on( "click", function(e) { var $this = $(this).parent().find('.avia-tooltip'); $(this).siblings('.avia-tooltip').toggle('slow'); $('.avia-tooltip').not($this).hide(); }); }); })(jQuery);Best regards,
MikeSeptember 10, 2023 at 11:16 pm #1418698In reply to: Change Header styling
Hi,
Thank you for your patience, to make the header sticky on mobile try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:@media only screen and (max-width: 767px) { .responsive #top #wrap_all #header { position: fixed; } }For the mobile menu fonts try this css:
@media only screen and (max-width: 767px) { #av-burger-menu-ul a { font-family: kalam; } }After applying the css, please clear your browser cache and check.
Best regards,
MikeSeptember 10, 2023 at 9:37 pm #1418691In reply to: issues after create lightbox content
Hey mediafacto,
Thanks for the link to your site, in the popup the blue one was not correct, try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field to correct:#top .mfp-content .avia-button.av-4pqcoe-31648334b4896fbdfea9d05f47606f6f, #top .mfp-content .avia-button.av-eh4dwu-7ff5582dbec01723c9e3c0eb24a72468{ background-color: #0e76a8; border-color: #0e76a8; color: #ffffff; }After applying the css, please clear your browser cache and check.
To stop your page from scrolling try adjusting your script to this solution.Best regards,
MikeSeptember 10, 2023 at 9:18 pm #1418690In reply to: Make font on reviews submission form bigger
Hey CharlieTh,
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#top #main #commentform .comment-form-rating label[for=rating]{ background:green; color:red; font-size: 25px; }After applying the css, please clear your browser cache and check.
Best regards,
MikeSeptember 10, 2023 at 9:04 pm #1418687In reply to: mega menu & full width map
Hey Yaphoon,
For your Gaode Map page try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:.responsive #top.page-id-53 #av_section_1 .container { max-width: 100%; padding: 0; } .responsive #top.page-id-53 #av_section_1 .container main { padding: 0; }the expected results:

as for your mega menu, it looks like each of your menu items is a column title which by defalt has a different color and font size than the regular menu items:

so perhaps you could adjust the mega menu items to correct your font size and color.
I don’t know what you mean by “adjust the square size”, if you mean the whole mega menu size, it is created by the number of items in it with js and not easy to change.Best regards,
MikeSeptember 10, 2023 at 5:59 pm #1418664Hi,
If you are using a child theme then yes leave the code in the functions.php, otherwise I recommend the WPcode plugin this plugin supports PHP code snippets, JavaScript code snippets, & CSS code snippets and you will not lose your code when you update as you would if the code is in your parent theme functions.php.
To change it into a button using the magic wand in the Post editors we will need to change the function a little to use do_shortcode
Here is an example that I tested on my yest site and works, you can change the button code to suit your needs:add_action("ava_after_content", function() { if (is_singular('post')) { echo do_shortcode("[av_button label='Back to Bolg' icon_select='yes' icon='ue830' font='entypo-fontello' icon_hover='aviaTBicon_hover' link='manually,#' link_target='' size='medium' position='center' label_display='' title_attr='' size-text='' av-desktop-font-size-text='' av-medium-font-size-text='' av-small-font-size-text='' av-mini-font-size-text='' margin='' margin_sync='true' padding='' padding_sync='true' av-desktop-margin='' av-desktop-margin_sync='true' av-desktop-padding='' av-desktop-padding_sync='true' av-medium-margin='' av-medium-margin_sync='true' av-medium-padding='' av-medium-padding_sync='true' av-small-margin='' av-small-margin_sync='true' av-small-padding='' av-small-padding_sync='true' av-mini-margin='' av-mini-margin_sync='true' av-mini-padding='' av-mini-padding_sync='true' color_options='' color='theme-color' custom_bg='#444444' custom_font='#ffffff' btn_color_bg='theme-color' btn_custom_grad_direction='vertical' btn_custom_grad_1='#000000' btn_custom_grad_2='#ffffff' btn_custom_grad_3='' btn_custom_grad_opacity='0.7' btn_custom_bg='#444444' btn_color_bg_hover='theme-color-highlight' btn_custom_bg_hover='#444444' btn_color_font='theme-color' btn_custom_font='#ffffff' btn_color_font_hover='white' btn_custom_font_hover='#ffffff' border='' border_width='' border_width_sync='true' border_color='' border_radius='' border_radius_sync='true' box_shadow='' box_shadow_style='0px,0px,0px,0px' box_shadow_color='' animation='' animation_duration='' animation_custom_bg_color='' animation_z_index_curtain='100' hover_opacity='' sonar_effect_effect='' sonar_effect_color='' sonar_effect_duration='1' sonar_effect_scale='' sonar_effect_opac='0.5' css_position='' css_position_location=',,,' css_position_z_index='' av-desktop-css_position='' av-desktop-css_position_location=',,,' av-desktop-css_position_z_index='' av-medium-css_position='' av-medium-css_position_location=',,,' av-medium-css_position_z_index='' av-small-css_position='' av-small-css_position_location=',,,' av-small-css_position_z_index='' av-mini-css_position='' av-mini-css_position_location=',,,' av-mini-css_position_z_index='' id='' custom_class='' template_class='' element_template='' one_element_template='' av_uid='' sc_version='1.0' admin_preview_bg='']"); } }, 10);Best regards,
MikeSeptember 10, 2023 at 2:24 pm #1418650In reply to: Text Centered Next To An Image
Mike,
That’s great! Thank you! Much appreciated! And so I understand…in case I decided to move the position of the two lines…I would just have to change the percentages for “right” and “top” in the css? And is there a logic to changing the percentages…or do you just “play with it” and see how it looks?
Again, many thanks!
Steve
-
This reply was modified 2 years, 7 months ago by
-
AuthorSearch Results
-
Search Results
-
Hello. Can you please give me the steps and code (PHP, CSS) to achieve this in the most current iteration of Enfold? I would like to put it next to SHOP & ORDER NOW to it’s left. Thanks!
Hi,
I have multiple sites using the Enfold theme. As they should, all of them produce files in the /site/wwwroot/wp-content/uploads/dynamic_avia folder. A few of the site produce 10s of thousands of files, of the type “avia-merged-styles-…”, “avia-footer-scripts…”, and “avia-head-scripts…”. The sites that don’t do this only create these files for the current usage day and seem to delete the past ones. For the sites that are creating 10s of thousands of files, can you please let me know why this may be happening and how I can stop if from happening?
Thanks,
Jed
Hi,
a while ago I asked how we can change the size of the thumbnails on our blog archive pages. We need to do this because we have text on our images which is cut off with the predefined images size. You gave me a reply which I have understood (see below) – but can I implement this change in the child theme? I´ve tried adding this code but it isn´t making any difference, which suggests that I am doing something wrong ;) I have to add that I don´t know much about php. I re-uploaded one of the thumbnails after adding the code but that also made no difference./* Resize portfolio thumbnails on archive/category pages in the blog */
$avia_config[‘imgSize’][‘portfolio’] = array( ‘width’ => 710, ‘height’ => 375 ); // images for portfolio entries (2,3 column)You replied:
Hi,
Thank you for your patience and the links to your site, the portfolio size images on the archive pages is set by line 190 in the enfold/functions.php fileI didn’t find an easy way to adjust the image size on the archive page so I would recommend changing the portfolio size from array(‘width’=>495, ‘height’=>400 ); to mmatch the magazine size array(‘width’=>710, ‘height’=>375 ); and then you will need to regenerate your thumbnails and then check.
This would also change any other use of the portfolio thumbnails on your site, but it doesn’t look like this would be an issue for you.Best regards,
MikePost Link: https://kriesi.at/support/topic/change-layout-number-of-columns-on-blog-category-pages/#post-1310490
