Forum Replies Created

Viewing 30 posts - 12,541 through 12,570 (of 34,910 total)
  • Author
    Posts
  • Hi,
    Thank you

    Best regards,
    Mike

    Hi,
    Thank you for your question and the link to your test page, I removed the image element inside of the color section and add a background image and a special-heading element, the color section had a costom ID of verksamhet-color-section I changed the css to this:

    #verksamhet-color-section  {
          background-size: cover;
    }

    and I added this script to your functions.php

    function custom_script() { ?>
        <script>
    function setHeight(el,val){
        var box = document.querySelectorAll(el);
        var i;
        for(i = 0;i < box.length;i++){
            var width = box[i].offsetWidth;
            var height = width * val;
            box[i].style.height = height + 'px';        
        }
    }
    setHeight('.avia_desktop #verksamhet-color-section > .container',.40);
    setHeight('.avia_mobile #verksamhet-color-section > .container',.30);
    
    
    
    var container = document.querySelector("#verksamhet-color-section");
    var inner = document.querySelector("#verksamhet-color-section .av-special-heading");
    var inHeight = inner.offsetHeight;
    container.style.height = window.innerHeight;
    container.style.width = window.innerWidth;
    var conHeight = container.offsetHeight;
    inner.style.marginTop = ((conHeight-inHeight)/2)+'px';
    </script>
        <?php
    }
    add_action('wp_footer', 'custom_script');

    now on page load the height of the color section is set based on the width of the page, with a different percentage for mobile & desktop, it also centers the special-heading vertically in the color section.
    Please note that this works on page load, so if you test by resizing the browser you need to reload the page for each size. This will not affect your users as their screen size will not change after load.
    I recommend using a child theme and moving this to it so it won’t be lost in updates.

    Best regards,
    Mike

    in reply to: Your support license has expired #1343305

    Hi,
    Glad Rikard could help, Thank you for using Enfold.

    Best regards,
    Mike

    in reply to: Dual (english/french) strange menu behavior #1343303

    Hey underlying,
    Thanks for the link, but the login is not working, please check.

    Best regards,
    Mike

    Hi,
    Thanks but the WordPress login and the cPanel login didn’t work for me please try creating a new WordPress admin user with a new password.

    Best regards,
    Mike

    in reply to: error in #1343300

    Hi,
    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,
    Mike

    in reply to: Close video button? #1343299

    Hey Jak73,
    The second video is in a video element so it is not poping up like the third video so there is no “close” button, there is nothing to close.
    The original image is the background image for the video, stoping the video doesn’t go back to the background image, we don’t have a way to do that.

    Best regards,
    Mike

    in reply to: Issue with video #1343298

    Hey Jak73,
    Please try this code in the General Styling ▸ Quick CSS field or in the WordPress ▸ Customize ▸ Additional CSS field:

    @media only screen and (min-width: 768px) { 
    #top.page-id-600 .mfp-iframe-scaler iframe.mfp-iframe,
    #top.page-id-600 .mfp-iframe-scaler {
        width: 507px;
        height: 507px;
        margin: auto;
    }
    }
    @media only screen and (max-width: 767px) { 
    #top.page-id-600 .mfp-iframe-scaler iframe.mfp-iframe,
    #top.page-id-600 .mfp-iframe-scaler {
        width: 300px;
        height: 300px;
    }
    }

    Best regards,
    Mike

    in reply to: TeamViewer Logo placement change #1343296

    Hey attifilm,
    Thank you for the login, the TeamViewer item is a menu item that can be dragged anywhere in the menu, I moved it for you in both languages, please clear your browser cache and check.

    Best regards,
    Mike

    in reply to: Widget Title with custom icon #1343294

    Hi,
    Glad Guenni007 could help, thanks for sharing 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,
    Mike

    in reply to: Setting up blog format #1343293

    Hi,
    Glad Nikko was able to help, shall we close this then?

    Best regards,
    Mike

    in reply to: Add Enfold Page Headings to The Events Calendar pages #1343292

    Hey GWS,
    Thank you for your patience and the link to your pages, it looks like what you have done is good, the only other alternative I can think of is to create a script to inject the same div you have, but since you already have it that wouldn’t make sense to do.
    Is there something that you don’t like about your solution?

    Best regards,
    Mike

    in reply to: Hotspots stay open #1343291

    Hi,
    Thank you for your patience, this was due to this css in your Quick CSS:

    .page-id-195 .avia-tooltip.avia-tt {
        display: block!important;
        opacity: 1!important;
    }

    I commented it out for you, please clear your browser cache and check.

    Best regards,
    Mike

    in reply to: LayerSlider Front End Problem #1343290

    Hi,
    Thanks for your patience, I don’t have a lot of experience with Polylang so I added this script into your functions.php to change bei ▸ to on the English page

    function layer_slider_translation() { ?>
        <script>
    (function($){
      $(window).load(function(){
      	setInterval(function () {
    $('html[lang="en-US"] #layer_slider_1 h6').text(function(index, text) {
        	return text.replace('bei', 'to');
    		});
      }, 500);
    });
    })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'layer_slider_translation');

    please clear your browser cache and check.
    I recommend using a child theme and moving this to it so it won’t be lost in updates.

    Best regards,
    Mike

    Hi,
    Thank you for your patience, if you don’t remember where your contact form element is and you want to disable all contact forms on your site, you can go to Enfold Theme Options ▸ Performance ▸ Disable Template Builder Elements ▸ Manually manage loaded elements and disable the contact form
    2022-03-05_004.jpg

    Best regards,
    Mike

    Hi,
    There are two ways to do this, the first is outlined in our documentation here: How to add Custom Social Icons to Enfold options
    Or if you are going to use an image you caan replace the rss-feed-icon with this css in your Quick CSS:

    .social_bookmarks_rss a:before{
        content: "";
        width: 20px;
        height: 20px;
        display: inline-block;
        vertical-align: middle;
        background: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png) no-repeat center center;
        background-size: contain;
    }

    just adjust the image to suit and clear your browser cache.

    Best regards,
    Mike

    in reply to: Woocommerce category thumbs size setting #1343281

    Hey marcusss,
    Thank you for your patience and the links, when I look at your category image above description example and compare it to the direct 512×512 image file the quality looks the same,
    but when I compare the 512×512 to the original there does seem to be a difference.
    I also see that your images in your media library are jpg but are webp on the frontend, perhaps this is related to your EWWW Image Optimizer plugin or perhaps some quality is lost when WordPress generates thumbnails from webp?
    Try disabling your image plugin and upload a new different image to test with, in a good quality jpg format and check again.

    Best regards,
    Mike

    in reply to: image size #1343273

    Hi,
    Thank you for your patience and the link to your page, your first image in the text block behaves differently because it is not a background image like your second one.
    An image in a text block is wrapped in a paragraph tag that adds some margin and it’s display is set to inline-block.
    We can adjust this with css and set it to cover the element, similar to how a background image does.
    Please try this code in the General Styling ▸ Quick CSS field or in the WordPress ▸ Customize ▸ Additional CSS field:

    .flex_column.av_two_fifth .avia_textblock > p {
    	margin: 0;
    }
    .flex_column.av_two_fifth .avia_textblock > p > img {
    	display: block;
    	object-fit: cover;
    	height: 327px;
    	width: 455px;
    }

    it will work on your first image but you will not want this to work on all images because it could cause conflicts and the height and width must be set, so I recommend adding a custom class to your column and adjusting the css above to match.
    If your not sure how to adjust the css, then add a custom class to your column and tell us so we can advise.
    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    Hi,
    Thank you for your patience and the login, I enabled your function and disabled line 153 in your stylesheet to test, I see that you are using the burger menu so the main menu language selectors are hidden. I assume that you want to show the language selectors next to the burger menu so I added this css:

    .js_active.html_burger_menu #header_main #avia-menu > li.av-language-switch-item.language_de,
    .js_active.html_burger_menu #header_main #avia-menu > li.av-language-switch-item.language_it,
    .js_active.html_burger_menu #header_main #avia-menu > li.av-language-switch-item.language_en {
    	display: block;
    }
    

    I also found that your language selectors were duplicating in the header so I added this script to remove the duplicates:

    
    function custom_script() { ?>
        <script>
    const tags = [...document.querySelectorAll('#avia-menu > li.av-language-switch-item')];
    const texts = new Set(tags.map(x => x.innerHTML));
    tags.forEach(tag => {
      if(texts.has(tag.innerHTML)){
        texts.delete(tag.innerHTML);
      }
      else{
        tag.remove()
      }
    })
    </script>
        <?php
    }
    add_action('wp_footer', 'custom_script');

    Now your language selectors are showing and you have different menus on different pages.
    Please clear your browser cache and check.

    Best regards,
    Mike

    Hi,
    Thank you for your patience and the link to your post, as you know when the Advanced Layout Builder is used to open a Classic Editor post it will show the content in a plain text element, this is the correct behavior.
    In your case, it is showing Advanced Layout Builder elements that have different content, I have seen this in the past when the same page or post was edited in both editors, this is why we do not recommend using both editors on the same page or post, or switching back and forth.
    To correct this please decide which editor you want to use for this post, then copy that content to your desktop in a plain text editor, then delete the content and save the post, then view the frontend and try editing it again in the other editor and delete that content, then view the frontend again and finally edit the post in the editor you want to use and use your saved content to recreate and save.
    You may want to clear and disable any caching plugins and server cache, if it is an “object” cache such as Memcached, Redis, Varnish, Litespeed

    Best regards,
    Mike

    in reply to: sku on product page disappeared with theme update #1343252

    Hi,
    Thank you for your patience, when I compare your two versions 4.8.1 & 4.9
    I see that your v4.8.1 has a lot of custom functions in the parent theme functions.php and a lot of custom css in the parent theme /css/custom.css
    these are not in the 4.9 version, so it is not going to look the same, for example you have a custom footer widget in the v4.8.1 which is not in the 4.9 version.
    Please see the screenshot in the Private Content area of the two pages side by side, perhaps there are other modifications made that you forgot about that is affecting the sku?

    Best regards,
    Mike

    in reply to: Redirect page programmatically to custom 404 page #1343225

    Hey seferdemirci,
    Thank you for your patience, from your snippet above I can’t see if you are using the add_action('template_redirect', '...');
    So I tested creating a custom 404 page with the Advanced Layout Builder page and set this in the theme options
    2022-03-04_001.jpg
    then added this function in my child theme functions.php

    function is_category_to_custom_404(){
      if( is_category() ) {
        global $wp_query;
        $wp_query->set_404();
      }
    }
    add_action('template_redirect', 'is_category_to_custom_404');

    and now when I try to go to a post category I see the custom 404 page, try to see if you can model this for your needs.

    Best regards,
    Mike

    in reply to: header on the mobile horizontally #1343224

    Hi,
    Thank you for the screenshot, I see that you are using v4.8.7.1, please try disabling Enfold Theme Options ▸ Performance ▸ JS & CSS file merging and compression and disable any other caching plugins and enable Enfold Theme Options ▸ Performance ▸ Delete old CSS and JS files and then update to v4.9 and check again.
    If this doesn’t correct please include admin login in the Private Content area so we can investigate.

    Best regards,
    Mike

    in reply to: Toggle Background Color When Opened #1343153

    Hey advteksol,
    Thanks for the login, I added this css to your Quick CSS:

    #top.page-id-821 #main .togglecontainer .toggle_wrap.active_tc .toggle_content {
        background-color: #072f4c;
        color: #fff;
    }

    I added the page ID so it will only work on the FAQ page so it won’t interfere with other toggles on your site.
    Please clear your browser cache and check.

    Best regards,
    Mike

    in reply to: Failed Orders through WooCommerce #1343137

    Hey jaimemerz,
    Thank you for your patience and the login, when I check I see 7 failed orders and in the Order details, it says
    Could not process order. Order status changed from Pending payment to Failed.
    It looks like these failed in the payment processing, it looks like many are being approved so perhaps these people made an error in their info.
    Try checking with your payment processor, this doesn’t look like a theme issue.

    Best regards,
    Mike

    in reply to: Image Flip Box #1343134

    Hi,
    Thanks Guenni007
    GoodfishGroup_Marketing were you able to sort this out, shall we close this then?

    Best regards,
    Mike

    in reply to: Easy Slider & Partner Logo Element not working #1343131

    Hi,
    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,
    Mike

    in reply to: sticky submenu in mobile #1343089

    Hi,
    Thank you for sharing your filter, 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,
    Mike

    in reply to: Easy Slider & Partner Logo Element not working #1343086

    Hi,
    Thanks for the login, the first issue I found was that you had jQuery errors because it was not loading correctly, I found that your Performance Cache plugin was causing the issue and enabling it in the Exclude these Header Scripts option solved.
    The second issue I found was that you had the Autorotation disabled and the slider arrows disabled so there was no way to see the slider work, I enabled the Autorotation so you can see it work.
    2022-03-03_006.jpg
    Please clear your browser cache and check.

    Best regards,
    Mike

    in reply to: Horizontal gallery image caption #1343021

    Hey Chris,
    Thank you for your patience, the scrolling effect of the Horizontal Gallery has two options, one is to enlarge the active image and move to the next with each click, the second doesn’t enlarge the image but it also moves to the next with each click, it doesn’t “scroll” through the images it “steps” through them.
    To change this would require re-writing the script, a better solution is to enlarge the current image so that the users will know which image is active.
    I see that you say you are using this for products, perhaps the Product Slider (see the top element “Recent Top Sellers”) would be a better option as it slides the way you wish.
    Anyways to add a caption & sub caption below the Horizontal Gallery you first need to add a image title and alt in the media library, not the caption in the Horizontal Gallery
    2022-03-03_003.jpg
    then add this code to the end of your functions.php file in Appearance ▸ Editor:

     function horizontal_gallery_subline(){
        ?>
        <script>
    (function($){
             $('.av-horizontal-gallery-link').css({'bottom':'30px'});
             $('.av-horizontal-gallery-img').each(function(){
                 var imgTitle = $(this).attr('title');
                 var imgAlt = $(this).attr('alt');
                 $(this).after('<span class="title-under-image">' + imgTitle + '</span><span class="alt-under-image">' + imgAlt + '</span>').css({"margin": "-20px 0"});
                 $(this).css({'padding-bottom' : '20px','background-color' : 'transparent'});
                 $('.title-under-image').css({"display":"block","text-align": "center","color": "#000","font-weight":"bold"});
                 $('.alt-under-image').css({"display":"block","text-align": "center","color": "#444"});
             });
    
     })(jQuery);
        </script>
        <?php
        }
        add_action('wp_footer', 'horizontal_gallery_subline'); 

    the results expected are this
    2022-03-03_002.jpg

    Best regards,
    Mike

Viewing 30 posts - 12,541 through 12,570 (of 34,910 total)