Forum Replies Created

Viewing 30 posts - 15,151 through 15,180 (of 34,221 total)
  • Author
    Posts
  • in reply to: Downloading page Consulting #1248836

    Hi,
    To implement a horizontal scrolling menu, please go to Enfold Theme Options > General Styling > Logo and Main Menu and choose which side you would like it to be.

    Best regards,
    Mike

    Hi,
    Thanks for the feedback and the login, I tried to investigate your shop page, but you don’t have woocommerce installed on your site, is this just temporary?
    I also investigated your child theme functions.php and wanted to disable this function:

    add_action('wp_footer', 'ava_add_rel_nofollow');
    function ava_add_rel_nofollow(){
    	?>
    	<script type="text/javascript">
    		(function($) {
    			$('.single_add_to_cart_button').attr('rel', 'nofollow sponsored');
    		})(jQuery);
    	</script>
    	<?php
    }

    but WordPress gave the error Uncaught Error: Call to undefined function is_shop() in wp-content/themes/enfold-child/functions.php:24 for this code in your child theme functions.php:

    function woocommerce_disable_shop_page() {
        global $post;
        if (is_shop()):
        global $wp_query;
        $wp_query->set_404();
        status_header(404);
        endif;
    }
    add_action( 'wp', 'woocommerce_disable_shop_page' );

    so I had to disable this also, this will have to be re-written if you plan on using it in the future.
    Please let us know when woocommerce is installed again so we can investigate further, but I believe your “noopener noreferrer” can be removed with this solution, please give it a try and let us know.

    Best regards,
    Mike

    in reply to: fullwidth-sub-menu one-page menu highlight stoped working :-( #1248808

    Hi,
    Sorry for the late reply, and thanks for the login, so I copied your two pages to my localhost to test, and applied the css & javascript from the documentation and observed the menu “active-item” class being added & removed constantly.
    This seems to lead to a performance issue, as you pointed out. So I researched this and found a better working script, which I adjusted to work with the sub-menu and css.
    So the css is the same:

    /* Active menu styles */
    #top .submenu-onepage .active-menu-item,
    #top .submenu-onepage .active-menu-item a {
    background: #000 !important;
    color: #FFF !important;
    }
    
    
    
    #top .submenu-onepage .av-subnav-menu > li > a {
    border-left-style: none !important;
    border-left-width: 0px !important;
    }

    Try adding this script to the end of your functions.php file in Appearance > Editor:

    
    function custom_sub_menu_highlighting_script(){
      ?>
      <script>
    (function($){
    // Cache selectors
    var lastId,
        topMenu = $("#sub_menu1"),
        topMenuHeight = topMenu.outerHeight()+15,
        // All list items
        menuItems = topMenu.find("a"),
        // Anchors corresponding to menu items
        scrollItems = menuItems.map(function(){
          var item = $($(this).attr("href"));
          if (item.length) { return item; }
        });
    
    // Bind click handler to menu items
    // so we can get a fancy scroll animation
    menuItems.click(function(e){
      var href = $(this).attr("href"),
          offsetTop = href === "#" ? 0 : $(href).offset().top-topMenuHeight+1;
      $('html, body').stop().animate({ 
          scrollTop: offsetTop
      }, 300);
      e.preventDefault();
    });
    
    // Bind to scroll
    $(window).scroll(function(){
       // Get container scroll position
       var fromTop = $(this).scrollTop()+topMenuHeight;
       
       // Get id of current scroll item
       var cur = scrollItems.map(function(){
         if ($(this).offset().top < fromTop)
           return this;
       });
       // Get the id of the current element
       cur = cur[cur.length-1];
       var id = cur && cur.length ? cur[0].id : "";
       
       if (lastId !== id) {
           lastId = id;
           // Set/remove active class
           menuItems
             .parent().removeClass("active-menu-item")
             .end().filter("[href='#"+id+"']").parent().addClass("active-menu-item");
       }                   
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_sub_menu_highlighting_script');

    In my tests this works much better and the scroll to anchor action from clicking the menu items also is much smoother, so please give this a try and if you still find a performance issue try disabling your other scripts and plugins to check for a conflict.
    In the script above it looks for the ID sub_menu1 for the sub-menu here: topMenu = $("#sub_menu1")
    This is the default ID for the first sub-menu on each page, so this should be fine, but if you use a custom ID for the sub-menu in the future please ensure to change this too.
    I also noticed that in your child theme it looks like the other script was added twice, once in the functions.php and in menu-highlight.js, after you remove the other script please ensure the new script is only added once. I’m sure that you would, I just wanted to point that out 😉

    Best regards,
    Mike

    in reply to: Mobile only footer #1248772

    Hi,
    Sorry for the late reply, I took a look at your mobile footer and the order you wish to display them seems to be reversed, so 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) {
    #footer > div {
    	display: flex !important;
    	flex-direction: column-reverse !important;
    }
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    in reply to: Pop-up plugin #1248740

    Hey Eefke,
    Sorry for the late reply, I found the plugin WP Popups to work well and not a lot of bloat, but our built-in popup also works well if you are comfortable with HTML.

    Best regards,
    Mike

    in reply to: Enfold and q-Translate XT #1248739

    Hey fbeger,
    Sorry for the late reply, I have not used the q-translate XT plugin, but I have used Polylang some and it allows you to have separate pages for each language, for example, I set up Polylang with the languages en-us & en-ca, then to create a page for the second language I click the plus sign:
    2020-09-26_211332.jpg
    and edit the page to suit.
    Then when I view the page each language shows a different page, which can be checked by using the language switcher.
    This article goes deeper into Polylang if you want to check it out.
    But since you don’t want to translate the pages, perhaps a redirect plugin would be more efficient, like this.

    Best regards,
    Mike

    Hi,
    On my install I do not have the “noopener noreferrer”, but the function above removes the attribute which should be all three for you
    “nofollow noopener noreferrer” unless the “noopener noreferrer” is being loaded after the DOM, which would indicate that this is being added by a plugin.
    Please give it a try.

    Best regards,
    Mike

    in reply to: avia-menu-subtext messes with Google Sitelinks #1248734

    Hi,
    Sorry for the late reply, and thanks for the details, I believe it would be possible to separate these into separate links, but then you would have twice the links for Google to decide what to show in the sitemaps, which may not work out well.
    While researching I found that Google suggests in the context of sitelinks, to: use anchor text and alt text that’s informative, compact, and avoids repetition.
    So perhaps we can add a title or alt to the text & sub-text of your menu to clarify them to Google.
    For example, try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_script(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
      $(".menu-item-top-level").each(function(){
        $(this).find(".avia-menu-text").attr('title','title');
        $(this).find(".avia-menu-subtext").attr('title','subtitle');
    
    });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');

    This is the result:

    <a href="https://your-site.de/aktuelles/">
        <span class="avia-bullet"></span><span class="avia-menu-text" title="Title">Aktuelles</span>
        <span class="avia-menu-subtext" title="subtitle">Neuigkeiten rund um Huber</span>
        <span class="avia-menu-fx">
            <span class="avia-arrow-wrap"><span class="avia-arrow"></span></span>
        </span>
    </a>

    I was not able to find out if “titles” are best to use, but since Google recognizes other titles this might be enough to help.

    Best regards,
    Mike

    in reply to: transparent grid cell #1248732

    Hi,
    Sorry for the late reply and thanks for the login, I see that you are using a Grid Row element for the section that is two cells, unfortunately, the background for each cell is apart of that cell so we are not able to display one cell’s background over both cells.
    I would recommend using a color section with a background and a 1/2 column for your text, I created a clone of your page and replaced the Grid Row with this solution, as an example, please see the link in the Private Content area.
    You will note that I added the custom ID “book-background” to the color section and the following css to your Enfold Theme Options > General Styling > Quick CSS field, this was to force the background image size to “contain”.

    #book-background {
    	    background-size: contain !important;
    }

    Please let us know if this follows the idea for your page.

    Best regards,
    Mike

    in reply to: Return to preview/fallback image when video ends #1248725

    Hey ashlandwebsites,
    Sorry for the late reply, unfortunately I do not see a dependable way to do this from within the element, but if you have Vimeo Plus account you can add a Custom image to your End Screen which would be dependable because Vimeo would trigger the end of the video.

    Best regards,
    Mike

    Hey Ganubis,
    Sorry for the late reply, woocommerce adds the “nofollow” to the cart button, to remove try adding this code to the end of your functions.php file in Appearance > Editor:

    add_filter( 'woocommerce_loop_add_to_cart_args', 'remove_rel', 10, 2 );
    function remove_rel( $args, $product ) {
        unset( $args['attributes']['rel'] );
    
        return $args;
    }

    I tested this on my localhost and it works, after you add the code please clear your cache and check.

    Best regards,
    Mike

    in reply to: Flex Container #1248721

    Hi,
    Not in this situation. I checked your other pages in your “Supplements” menu to see if there is a way to have each of these columns have the same height for the text block element across these pages and it can be achieved with the following script. Try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_equal_height_row_script(){
      ?>
      <script>
    (function($){
      $(window).load(function(){
        (function() {
    
          var currentTallest = 0,
              currentRowStart = 0,
              rowDivs = new Array();
    
          function setConformingHeight(el, newHeight) {
            el.data("originalHeight", (el.data("originalHeight") == undefined) ? (el.height()) : (el.data("originalHeight")));
            el.height(newHeight);
          }
    
          function getOriginalHeight(el) {
            return (el.data("originalHeight") == undefined) ? (el.height()) : (el.data("originalHeight"));
          }
    
          function columnConform() {
          	$('.hr-custom.hr-center.hr-icon-no.el_after_av_textblock').css({'margin-top':'0'});
            $('.flex_column.av_one_third section:nth-of-type(2)').each(function() {
    
              var $el = $(this);
    
              var topPosition = $el.position().top;
    
              if (currentRowStart != topPosition) {
                for(currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) setConformingHeight(rowDivs[currentDiv], currentTallest);
    
                rowDivs.length = 0;
                currentRowStart = topPosition;
                currentTallest = getOriginalHeight($el);
                rowDivs.push($el);
    
              } else {
    
                rowDivs.push($el);
                currentTallest = (currentTallest < getOriginalHeight($el)) ? (getOriginalHeight($el)) : (currentTallest);
    
              }
              
    
            });
    
            for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) {
              setConformingHeight(rowDivs[currentDiv], currentTallest);
            }
    
          }
    
          $(function() {
            columnConform();
          });
    
        })();
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_equal_height_row_script');  

    While this works for your six pages I would recommend adding custom classes to each of the columns so there won’t be any conflicts with other columns.

    Best regards,
    Mike

    in reply to: Imported images not showing on posts #1248668

    Hi,
    Thank you for the login, one challenge was that on your original site the media was organized into mouth & year directories, but your new site didn’t. I was able to download your files and re-organize and upload to your new site, all seem to be working now, please clear your browser cache and check.

    Best regards,
    Mike

    in reply to: Imported images not showing on posts #1248441

    Hi,
    Thank you, if both are in the same cPanel, then please provide access and I can assist.
    I would only need access to your export domain backend to check if this works correctly, which I believe is still good from above.

    Best regards,
    Mike

    Hi,
    Sorry for the late reply, so for the “LearnDash Settings tab” do you mean the tab/link at the top of the page, or in the sidebar controls? Sorry I have not used LearnDash, I have just helped with these issues which is usually sorted out with some css, but I don’t think I’m looking in the right place.
    So I took a few screenshots with the Classic Editor & ALB side-by-side, to show what I’m looking at, in the Private Content area, but could you please create a video that I can follow along with to the error, thanks :)
    Also, for me, I find the “Block Editor” to be a “pain” and I typically switch to the “Classic Editor” in the theme settings so I can find some of the settings that I’m used to seeing (because of the way the Block Editor shows them), anyways is this a similar situation?
    I’m sure we can sort this out, I feel I’m not looking at the right thing :)

    Best regards,
    Mike

    in reply to: polyfill JS error in Internet Explorer 11 #1248409

    Hi,
    Thanks for sharing your solution, and glad you were able to sort this out, I assume we can close this now?

    Best regards,
    Mike

    in reply to: Imported images not showing on posts #1248395

    Hi,
    Please include FTP access in the Private Content area, or your webhost file manager access, such as cPanel, for both sites.

    Best regards,
    Mike

    in reply to: Overlay logo and drop shadow below header #1248144

    Hey navindesigns,
    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: 780px) {
    #header .logo {
        transform: translate(-50%,18%) !important;
    }
    #header {
    	 box-shadow: 3px 10px 9px rgba(0,0,0,0.3) !important;
    }
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    Hey leftangle,
    Sorry for the late reply and thanks for the login. I tried to change some settings and received this error:
    wp-admin/admin-ajax.php 500 (Internal Server Error) please check your server error log for a cause.
    I believe that your web host is forcing jQuery to be loaded in the footer, there are several ways web hosts may do this, please ask your web host to remove this, and load jQuery Migrate.
    This is how your Enfold Theme Options > Performance > Change WordPress defaults option looks: https://savvyify.com/img/image/t4oD
    This is how it should look: https://savvyify.com/img/image/tJW9

    Best regards,
    Mike

    in reply to: Translation ready- Español #1247875

    Hi,
    Sorry for the late reply, I do believe that I understand, are you using the language “Español” or “Español de Mexico”?
    “Español” seems to have more translations for the theme panel.
    2020-09-23_081830.jpg

    Best regards,
    Mike

    in reply to: polyfill JS error in Internet Explorer 11 #1247869

    Hi,
    Thanks for the screenshot, so the error on line 44 is basically “if null throw error ‘must not be null'” but since it is for the Ga hosted script the error must be before this. I wonder if it has to do with cookie permissions, I see you have a custom script to “delete already set cookies if disabling afterwards”?
    But checking your other site on IE11 the plugin seems to be working with Enfold and you said the plugins are the same? Is this on the same server, PHP version?
    If so, then there should be something that is different. I noticed on your live site, on IE11 the map shows and then when I accept the cookie banner the page reloads, slowly almost like it was going to crash, and then it shows again. So this is why I’m thinking this is related, but perhaps not.
    So the one that works is your live site, and the other is a dev site? If the live site is cloned to the dev site, does the map then work on IE11?
    Are you trying to have a cloned dev site to test with, or is the dev site ment to be a future new site? Just wondering if cloning would be an option.

    Best regards,
    Mike

    in reply to: reCAPTCHA and Enfold Contact Form #1247832

    Hi,
    Thank you for sharing your solution, glad this is working for you, we will submit to the dev team for review. As this thread is over a year old now and not relevant to the current builds, we will close this thread now. Thank you for using Enfold.

    Best regards,
    Mike

    in reply to: Change Icon List Font and Other Icon Fonts? #1247829

    Hi,
    Thank you for the screenshot, so to me it looks like the three columns of icons do not align consistently across all three columns because some icon text is two lines while others are only one line. I recommend having the icons with two lines of text in the same place in each column, for example, if the first item in each column has two lines of text while the rest are only one line, then each column will align. The same would be true if all items had only one line of text, or if all had two lines. But since only a few have two lines, try to split them between the columns evenly.

    Best regards,
    Mike

    in reply to: Display hamburger menu in shrinking header #1247626

    Hi,
    Glad to hear this helped, as for moving your burger menu to the right, you css seems to only move it about 20px, correct?
    I would recommend removing this css and move the burger menu by making the “av-main-nav-wrap” container 100% width, and then float the “menu-item-avia-special” to the right.
    This may move it too far, so try different widths, like 80%
    Do you have a mockup of the burger menu placement?

    Best regards,
    Mike

    Hi,
    Thanks for the login, I tried checking your “Session One” page as in your screenshot, and I set the Classic Editor in the theme options, but I don’t see the same.
    Right now Session One & Two are created with the Advanced Layout Builder, viewing the page with the Classic Editor doesn’t show the error, but you would not want to edit the page with the Classic Editor for losing the ALB elements.
    Perhaps I looked at the wrong section, please explain how I can recreate and what browser and OS are you using.

    Best regards,
    Mike

    in reply to: TinyMCE showing HTML tags in custom shortcode elements. #1247616

    Hi,
    Glad to hear that you have sorted this out, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

    in reply to: polyfill JS error in Internet Explorer 11 #1247613

    Hi,
    Thanks for the feedback and screenshot, I tried switching to the Gutenberg editor and checking on IE11, but it didn’t recreate the error. If the error shows you again try clicking on the first error in the console:
    script5005: string expected js (44,436)
    typically this will take you to the error in the script, I see this happens twice in your screenshot before the polyfill error.
    In my research I did find a similar error, but I’m not sure how this relates to your issue other than another IE11 issue.
    So you have another identical page on the same site that works on IE11? Can you link to it?

    Best regards,
    Mike

    in reply to: Imported images not showing on posts #1247604

    Hi,
    OK, please let us know if your web host was able to assist with this and if we can close this thread.

    Best regards,
    Mike

    in reply to: Timeline bar, Tab Section and progress bar NOT WORKING #1247603

    Hi,
    Alright, shall we close this then?

    Best regards,
    Mike

    in reply to: Hotspots #1247602

    Hi,
    Glad to hear that the css helped, to make it more permanent with a custom class, I added the class special-pulsate to each special heading with a check mark on your homepage, like this:
    2020-09-22_062602.jpg
    then I changed the css at Enfold Theme Options > General Styling > Quick CSS field to this:

    .special-pulsate:before {
    	content:"";
    	display: block;
        background: #fff;
        border-radius: 100px;
        height: 40px;
        width: 40px;
        position: absolute;
        -webkit-animation: av_pulsate 2s ease-out infinite;
        animation: av_pulsate 2s linear infinite;
        opacity: 0;
        top: -11px;
        left: -11px;
        z-index: 1;
    }

    Please clear your browser cache and check.
    When I check your “Podcast” menu link, it seems to work for me, I tried going each page in your menu and then clicked the “Podcast” menu item and it loaded correctly. Please check again.

    Best regards,
    Mike

Viewing 30 posts - 15,151 through 15,180 (of 34,221 total)