Forum Replies Created
-
AuthorPosts
-
Hi,
Please try this code in the General Styling ▸ Quick CSS field or in the WordPress ▸ Customize ▸ Additional CSS field:@media only screen and (max-width: 989px) { #top #header.header_color .header_bg { background: #ffffff url(/staging/wp-content/uploads/2022/07/Calcott-Construction-Header-Mobile.png) top left no-repeat scroll; background-size: contain; } }After applying the css, please clear your browser cache and check.
Best regards,
MikeHi,
Opps, my mistake it’s Enfold Theme Options ▸ General Styling ▸ Heading FontBest regards,
MikeJuly 3, 2022 at 6:44 pm in reply to: Enfold CSS/JS merging function still not working properly #1357144Hi,
Ok, but can your team try again, in the past I have seen situations where a long-standing plugin started a conflict, it’s worth a try.
I have checked three different test environments that I have access to with the latest theme versions and the CSS & JS merging is working on them, and a handful of other sites that I have worked on this weekend with v5.0.1 and merging enabled, plus I haven’t seen any other threads about this, so it doesn’t look like a widespread error, and my guess is that it is specific to your site/server.
But I have asked the rest of the team to also check, but since it’s Sunday afternoon I don’t expect a reply right away, we are all remote in different parts of the world.Best regards,
MikeJuly 3, 2022 at 4:50 pm in reply to: whitespace on mobile instead of header on pages that the header is hidden #1357140Hi,
I’m not seeing it when I check, please clear your browser cache and check.
Please note that testing with iPhones can be hard to clear the cache, often you need to also clear the history to fully purge the cache, following these steps for Safari and note Step 4 where you will Clear the History.Best regards,
MikeHi,
Thank you for the screenshot about your sidebar for your /blog/ page, but I do see a sidebar there, unfortunately I can not login because the password is not correct please check.
Is the problem with the sidebar because it is too small in width?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,
MikeJuly 3, 2022 at 3:38 pm in reply to: Enfold CSS/JS merging function still not working properly #1357134Hi,
Glad to hear that the Mailchimp sidebar widget is sorted out, but unfortunately CSS & JS merging doesn’t seem to be occurring, I’m not sure what could be causing this so I have asked the rest of the team if they have any ideas.
In the meanwhile, I don’t see any reference to you trying to disable all of your plugins and check if that resolves, if you have not tried this yet please do so that we have ruled out this possibility.
If this does correct the CSS & JS merging, please enable the plugins one at a time a check until the error occurs again.
Thank you for your patience.Best regards,
MikeJuly 3, 2022 at 3:20 pm in reply to: whitespace on mobile instead of header on pages that the header is hidden #1357133Hey Reut Rachel,
Please try this code in the General Styling ▸ Quick CSS field or in the WordPress ▸ Customize ▸ Additional CSS field:@media only screen and (max-width: 989px) { .responsive.html_mobile_menu_tablet.html_header_top #top.page-id-28 #main, .responsive.html_mobile_menu_tablet.html_header_top #top.home #main { padding-top: 0px !important; } }After applying the css, please clear your browser cache and check.
Best regards,
MikeJuly 3, 2022 at 2:30 pm in reply to: Enfold CSS/JS merging function still not working properly #1357131Hi,
When I check the Mailchimp sidebar widget is showing for me with no errors, please see the screenshot in the Private Content area.Best regards,
MikeHey peterolle,
Thanks for your question, try adding *br* as a substitute for <br> in the tab title field:

then add this code to the end of your child theme functions.php file in Appearance ▸ Editor:function tab_title_br_substitute() { ?> <script> var elements = new Array(); var elements = document.getElementsByClassName('av-inner-tab-title'); for (var e = 0; e < elements.length; e++) { var newHTML = elements[e].innerHTML; newHTML = newHTML.replace('*br*','<br>'); elements[e].innerHTML = newHTML; }; </script> <?php } add_action('wp_footer', 'tab_title_br_substitute');this will create the link break on the frontend.

Best regards,
MikeHi,
Thanks for your question, but we don’t have a built-in way to do this but you can try adding this javascript to the end of your child theme functions.php file in Appearance ▸ Editor:function add_nofollow_to_external_links() { ?> <script> function myFunction() { var x = document.getElementsByTagName("a"); var i; for (i = 0; i < x.length; i++) { if (location.hostname!=x[i].hostname){ x[i].rel = "nofollow"; x[i].target = "_blank"; x[i].title = "Click to open in new window"; }}} mft=setTimeout("myFunction()",0); function LoadEvent(func){ var oldonload = window.onload; if (typeof window.onload != 'function'){ window.onload = func; } else{ window.onload = function() { if(oldonload) {oldonload();} func();}}} LoadEvent(function(){ myFunction(); }); </script> <?php } add_action('wp_footer', 'add_nofollow_to_external_links');In my test this works with buttons, images and text links
Source: How To Make All External Links No-follow Using JavaScriptBest regards,
MikeHi,
For the scrolling stutter on mobile, please try this code in the General Styling ▸ Quick CSS field or in the WordPress ▸ Customize ▸ Additional CSS field:@media only screen and (max-width:767px) { #top #wrap_all .av_mobile_menu_phone { position:absolute!important } }After applying the css, please clear your browser cache and check.
Best regards,
MikeHey schweg33,
Do you mean this one: https://kriesi.at/support/topic/include-javascript-in-the-head/
I reopened it for you, if your site is not loading because of an error in your functions.php then use FTP or your web host file manager to remove the code from your functions.phpBest regards,
MikeJuly 2, 2022 at 11:44 pm in reply to: Enfold CSS/JS merging function still not working properly #1357100Hi,
Thanks for the login, I found that you had a PHP function in your Quick CSS:

add_filter('avf_magazine_excerpt_length','avf_magazine_excerpt_new_lenght', 10, 1); function avf_magazine_excerpt_new_lenght($excerpt) { $excerpt = 100; return $excerpt; }I removed this but merging still doesn’t seem to be working, is this site using object-oriented cache such as Memcached, Redis, Varnish, Litespeed, etc. if so please clear the server level cache as the function above may still be in the object cache.
Best regards,
MikeHi,
Thank you for the link to your site, if you notice in your screenshot the editor font is different than the preview font, the preview shows what it should look like on your site, while the font in the editor is loaded by the WordPress TinyMCE editor, it is not ment to be a visual depiction of the front end:

If you want to use the font “Georgia” for all of your H2 headings you can choose this in the Enfold Theme Options ▸ General Layout ▸ Heading Font

or if you only want it in your H2 headings choose it in Enfold Theme Options ▸ Advanced Styling ▸ H2

After applying the change, please clear your browser cache and check.Best regards,
MikeHey delmonte,
Thanks for your question but unfortunately you will need to change the order of your form to do this.Best regards,
MikeHey blaircomm1,
Try targeting the mfp-iframe-scaler like this:.mfp-iframe-scaler { width: 100% !important; max-width: 100% !important; height: 100vh !important; max-height: 100vh !important; } .mfp-iframe-holder .mfp-content { max-width: 90vw!important }After applying the css, please clear your browser cache and check.
Best regards,
MikeJuly 2, 2022 at 8:59 pm in reply to: Inline POPUP Enabler – popup backcground opacity and color #1357090Hi,
Thank you for your patience and the link to the GitHub project, I first noticed that the project has an option to define a button on line 72 by adding the attribute to the shortcode like this:
[mfp_post_popup post_slug_id="3460" popup_id="1" link_text="Popup Button" button="true"]
in the project on line 105 you will see it has an image attributeimage_linkso it will allow an image like this:
[mfp_post_popup post_slug_id="3460" popup_id="2" link_text="" image_link="/wp-content/uploads/2015/07/portfolio-2-2-260x185.jpg"]
notice the link_text=”” is empty for the image, without the empty attribute the default is “Click Me”

Now considering that your goal is:to create a portfolio page style by clicking on the image from the main page, then loading the pop-up window in which more detailed information is shown as a scrolling popup window.
I tested this GitHub project on some portfolio items and found that full width elements break it and display some the target page below the footer on the trigger page, it works fine if the target page has no full width elements.
If you are going to have full width elements on the target page why not just use a button or image with
?iframe=truein the link?

you could use css like this to make the lightbox larger:.mfp-iframe-scaler { width: 100% !important; max-width: 100% !important; height: 300vh !important; max-height: 300vh !important; } .mfp-iframe-holder .mfp-content { max-width: 90vw!important }and use the theme options to hide the footer and header on the target page:

So since you want to create a grid of images that link to pages that show in a lightbox, I don’t see an advantage to using this GitHub project to create a grid of shortcodes when you could use the image elements to do it without errors.
Another built-in option would be to use the portfolio ajax, true it’s not a lightbox but it loads the content on the same page.For the example page you linked to, I didn’t find any lightbox popups on it, each grid image that I clicked loaded a new page, perhaps you meant to link to a different page.
Best regards,
MikeHey Chris_85,
Thanks for your question, but unfortunately there would not be a reasonable solution from our end to work with this plugin’s option because it replaces the <img> tags with <picture> tags, and thus the theme’s scripts and css in the elements would need to be rewritten, not just the Horizontal Gallery element, but all of the elements that use images.
Note that the plugin points out that this may break some themes:

Try using the plugin’s first option which adds rewrite rules to your site’s configuration file instead.Best regards,
MikeHi,
Thank you for the link to your site, I see that you have used custom css to hide the checkout col-2, this is where the shipping information is located.
Please disable your custom css to for the checkout and clear your cache and check again.Best regards,
MikeJuly 2, 2022 at 2:32 pm in reply to: Notification when embeded youtube video isn't shown because of cookies. #1357076Hey Garrfild,
Thank you for your patience, please try using a Choose a preview/fallback image in the video options with the message embeded:

this is the image I created for this example, feel free to download and use:

On my example page linked below, the video now shows this message before the cookies are allowed.
Please note that you will need to use the Enfold Theme Options ▸ Privacy and Cookies ▸ Advanced Options ▸ Auto Reload Page so the page will reload and the video to show.

Best regards,
MikeHi,
Glad Rikard could 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 Rikard could 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 Guenni007 could help, thank you Guenni007, 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 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,
MikeJuly 1, 2022 at 1:12 pm in reply to: Font-size in search result list pages, editing of search-result pages, e #1357009Hi,
You can add a Horizontal Ruler Separator shorcode in a custom HTML widget in your sidebar, here is an example:[av_hr class='short' icon_select='yes' icon='ue808' font='entypo-fontello' position='center' shadow='no-shadow' height='50' custom_border='av-border-thin' custom_width='50px' custom_margin_top='30px' custom_margin_bottom='30px' custom_border_color='' custom_icon_color='' id='' custom_class='' template_class='' av_uid='' sc_version='1.0' admin_preview_bg='']
to reduce the padding and margin around the separator use this css in your Quick CSS:#main .sidebar .widget_custom_html { padding: 0; } #main .sidebar .widget_custom_html .custom-html-widget .hr-short { margin: 0; }Best regards,
MikeJuly 1, 2022 at 12:38 pm in reply to: Inconsistent loading times for portfolio pages and blog posts #1357006Hi,
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,
Guenni007 thank you for sharing, I agree that it is not practical which is unfortunate because for Chrome, Edge, Safari it was a simple and easy css solution.
As you pointed out if the image is a direct child of the background-image container then it works good.For future readers that want to try this with a code block element that will work in all browsers:
<div> <img src="/wp-content/uploads/2022/06/BV-Associates-Banner-Main-1.jpg"> <img src="/wp-content/uploads/2022/06/badges.jpg" style="position: relative;top: -300px;left: 100px;mix-blend-mode: multiply;"> </div>Best regards,
Mike -
AuthorPosts



