Viewing 30 results - 4,591 through 4,620 (of 142,856 total)
  • Author
    Search Results
  • #1451612
    manurimini
    Participant

    Hi
    I would like to return to the closed topic: Alb full width submenu sticky on mobile to share an important upgrade.
    The topic explained how to use the Fullwidth Sub Menu of the ALB also sticky on mobile devices.
    After entering the code, I noticed that the pages were scrolling jerkily. So I added the following CSS code:

    html {
      scroll-behavior: smooth;
    }

    I don’t know if this is the most orthodox solution, but it works.
    I tried to solve it with a smooth scrolling function but I couldn’t. I used this code but it doesn’t work:

    function smooth_scroll(){
        ?>
        <script>
            // Your function here
            document.querySelectorAll('a[href^="#"]').forEach(anchor => {
        anchor.addEventListener('click', function (e) {
            e.preventDefault();
    
            document.querySelector(this.getAttribute('href')).scrollIntoView({
                behavior: 'smooth'
            });
        });
    });
        </script>
        <?php
    }
    add_action('wp_footer', 'smooth_scroll');

    If you have any suggestions to improve smooth scrolling, they are welcome.
    Best Regards
    Manu

    #1451397

    Hi,
    I notice that you are not using a child theme and have your customization in the parent theme functions.php
    all of these customizations will be lost the next time that you update the theme.
    If you are not going to use 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:
    use wpcode php snippet and activate
    and ensure that it is activated, then save.
    I recommend that you move your customizations so you don’t lose them.
    I changed your Reading time code to this for your last requests:

    function add_reading_time_to_masonry_entry($content, $entry, $config) {
        $reading_time_html = "<div class='reading-time'></br>" . do_shortcode('[rt_reading_time post_id="' . $entry['ID'] . '" label="Lesedauer:" postfix="min" postfix_singular="min"]') . "</div>";
        $content .= $reading_time_html;
        return $content;
    }
    add_filter('avf_masonry_entry_title', 'add_reading_time_to_masonry_entry', 10, 3);

    Best regards,
    Mike

    #1451379

    Hi,
    Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    #top #wrap_all .all_colors h3 .span-reading-time {
    	font-size: 12px;
    }

    and adjust the font size to suit.
    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1451371

    Hi,
    Thanks, I didn’t see this at all yesterday, but I did today, this looks like it is from the Autoptimize cache, so I disable the Autoptimize plugin and checked in different browsers.
    Please clear your browser cache and check, once you see that it is now not showing you can try enabling the Autoptimize again and try clearing the Autoptimize cache.
    Many users have issues with Autoptimize.

    Best regards,
    Mike

    #1450787

    Hi,
    This is an example with using text elements to hold the text for each popup and the script in a code block element that automatically numbers each box and link so you can add as many popup boxes as you wish. The boxes and links are number from the top down so the first link on the page will open the first box on the page.
    For this example this is how the backend looks:
    Enfold Support 6099
    you can add the text elements anywhere on your page, top or bottom it doesn’t matter because they will not show on the frontend.
    Each text element will have the custom classes: multi-popup mfp-hide
    Enfold Support 6101
    notice that the classes have no dots and the space between them.
    Then in your code block element add this code:

    <script>
    window.addEventListener('DOMContentLoaded', function() {
      (function($) {
        function assignUniqueIDs() {
          $('.multi-popup').each(function(index) {
            var uniqueID = 'multi-popup-' + (index + 1);
            $(this).attr('id', uniqueID);
          });
          
          $('.multi-popup-link').each(function(index) {
            var uniqueID = 'multi-popup-' + (index + 1);
            $(this).attr('href', '#' + uniqueID);
          });
        }
    
        assignUniqueIDs();
    
        $('.multi-popup-link').magnificPopup({
          type: 'inline',
          midClick: true
        });
      })(jQuery);
    });
    </script>
    
    <style>
    .multi-popup {
      position: relative;
      background: #FFF;
      padding: 20px;
      width: auto;
      max-width: 500px;
      margin: 20px auto;
    }
    </style>
    
    
    <a class="multi-popup-link" href="#">Link to box one</a></br>
    <a class="multi-popup-link" href="#">Link to box two</a></br>
    <a class="multi-popup-link" href="#">Link to box three</a></br>
    <a class="multi-popup-link" href="#">Link to box four</a></br>

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    notice the four links at the bottom, you can add these in a different element if you wish, this is to show you the custom class that the links must have.
    Enfold Support 6097
    then on the frontend when you click a link the popup box will show:
    Enfold Support 6105

    Best regards,
    Mike

    #1450617

    Hi,
    Thank you for your patience, I checked the sites that you linked to but I found no errors like your screenshots.
    In your original thread using the avf_post_css_create_file snippet seemed to help you and two other users.
    It also seem to be due to a server setting: X-Content-Type-Options “nosniff” another user found that when they change this on their server the issue was solved. But as I recall you can not change this on your server, so you should use the avf_post_css_create_file snippet.
    I am unable to reproduce this issue even if I change the server settings to: X-Content-Type-Options “nosniff” so it seems that only certain servers have this error and it doesn’t seem to be directly a result of the theme settings but how the server handles X-Content-Type-Options “nosniff”

    Best regards,
    Mike

    #1450614

    Hey Christoph,

    I’m not sure if we can help you with that. What happens if you activate one of the default WordPress themes?

    Best regards,
    Rikard

    #1450609

    Hi,
    To me your example page the popup:
    Enfold Support 6089
    is the same as our lightbox popup examples, I think this solution would be the best one to follow, it uses buttons but with a minor adjustment it could use plan text links, you can see that the popup has the “X” to close, in the screenshot there is only two words, but you can add as much text as you like:
    2022 01 27 004
    In your example page there are five links and popups:
    Enfold Support 6091
    Are you going to use this in the same way? If so how many popups do you want to use?

    Best regards,
    Mike

    #1450584

    Thanks but These links don’t show any examples at all. I don’t need an image or lightbox popup. I just need when you click on a text link, a window pops up with a page full of text, and then an “X” at the top right to close it. Any ideas on this?

    • This reply was modified 1 year, 9 months ago by bemodesign.
    #1450579

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1450578

    Hi,

    Please try the following in Quick CSS under Enfold->General Styling:

    #top .avia-button:hover .avia_button_background {
      opacity: 0;
    }

    Best regards,
    Rikard

    -wol-
    Participant

    Dear Kriesi-Team,
    I have encountered a strange problem: A website, which worked perfectly fine changed her overall-Fontsize (or I did something stupid) and is now stuck with a fontsize of 13 pt on most of the parts – menue-entrys and Slidercaptions. This is somehow inheritet from the body-element but i didn‘t set it in your typographie-settings. Also (and I hope I don‘t have to open a new topic for this) the Fontsize of the Menue-Items ist stuck in the same size and I can‘t change it via your typography-options.
    I hope sombody can take a look and give me a hint…

    Best regards
    Wolfram

    #1450418
    #1450227
    bemodesign
    Participant

    All I need is a way to click on a text link, and have a floating window with content pop up. And then close when you click the “X” at the top. And ideas on how to do this?

    I saw this on https://momcozy.com/checkout at the bottom left. There are “link texts” that when you click on one like “Refund Policy”, a window with text info pops up and then you can click it closed.

    Thanks!

    #1450038

    Hi,

    Thank you for the update.

    It should be -10px. You forgot to include the unit. Please replace the css rule with the following code:

    .post-border-jd::before {
        content: url(//welstestdev.wpenginepowered.com/wp-content/uploads/2024/06/blogTabPerspective.png);
        position: relative;
        top: -62px !important;
        left: -10px;
    }
    

    Best regards,
    Ismael

    #1449610
    This reply has been marked as private.
    #1449543

    Hi,
    Try changing your border-radius so the top left side is zero:
    border-radius: 0 35px 35px 35px !important;
    then for the image make left:
    left: -10px !important;
    for this:
    Enfold Support 6081

    Best regards,
    Mike

    #1449442
    This reply has been marked as private.
    #1449382

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1449374

    In reply to: Accessibility

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1449356

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1449355

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1449313

    Topic: accessibility

    in forum Enfold
    Advantage09
    Participant

    I found this post when looking through the forum. As I am working on getting my clients sites up to WCAG standard, is it possible to get the files in question?

    Regards
    Nina

    #1449144

    Hey MikeTandySwag,
    Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    .html_header_top.html_header_sticky #header:not(.av_header_transparency) {
        position: fixed;
        top: 0;
    }

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    Hi Ismael,

    thx for your quick feedback….

    After much trial and error, I found the bug responsible… it was a code I found here in the support to hide titles on hover (for function.php):

    Apparently this code also deactivates all hover actions that have to do with a tooltip… even the tooltip for the icon element was no longer displayed on hover!

    But I found another code from Guenni007:

    With this titles are no longer displayed on hover WITHOUT deactivating tooltips of the “Image with hotpots”

    Thx to the Enfold team AND everyone – especially Guenni007 – who shares their knowledge here with us non-programmers 👍🏻
    So this problem is solved for now… hopefully

    #1448991

    the point is that on emulators ( developer tools of all my desktop browsers ) your mobile menu is sticky and fullwidth on screen width less than 767px.

    But on a real mobile device, the header scrolls out of the screen.

    It is hard to check – because on most cases – the css rules to make are built with dev tools.

    #1448962

    In reply to: Accessibility

    Hey Meetx,

    Thank you for the inquiry.

    1-2) Please add this css code to adjust color of the icon on hover and make it bigger on mobile view.

    .html_bottom_nav_header #top .av_seperator_big_border .av-main-nav>#menu-item-search:hover a {
        color: red;
    }
    
    @media only screen and (max-width: 767px) {
    
      /* Add your Mobile Styles here */
      .responsive #top #wrap_all .menu-item-search-dropdown>a {
        font-size: 32px;
        margin-right: 20px;
      }
    }

    Best regards,
    Ismael

    Hey amyncuih,

    Thank you for the inquiry.

    You can adjust the default style of the Button elements in the Enfold > Advanced Styling panel, or you can use this css code:

    #top #wrap_all .main_color .avia-button {
        color: red;
    }

    Best regards,
    Ismael

    #1448952

    In reply to: Video on mobile

    Hi,

    Thank you for the inquiry.

    I still get the bar on top which says the title of the video and two other icons that say watch later and share

    This feature can no longer be disabled due to changes in YouTube’s parameters. You may need to upload the video to your server and host it yourself.

    // https://developers.google.com/youtube/player_parameters?hl=en#release_notes_08_23_2018

    Best regards,
    Ismael

    #1448939

    In reply to: Video on mobile

    I have a small problem, I have disabled controls, show info to disabled but I still get the bar on top which says the title of the video and two other icons that say watch later and share. They appear initially then disappear. Is there a way to not show that?

Viewing 30 results - 4,591 through 4,620 (of 142,856 total)