Forum Replies Created

Viewing 30 posts - 15,151 through 15,180 (of 35,013 total)
  • Author
    Posts
  • in reply to: Change logo when scrolling down #1283669

    Hi,
    Sorry for the late reply and thanks I believe I understand better now. please try this script instead, you will notice two new lines targting the logo width, on scroll it will be 200px, after scroll it sets to 115px, which is the current width.

    function change_logo_on_scroll(){
      ?>
      <script>
    (function ($) { 
      $(window).scroll(function() {
        var width = $(window).width(), height = $(window).height();    
        var scroll = $(window).scrollTop();
          if (scroll > 20 && width >= 900) {
        $('.logo a').find( 'img' ).attr('src', 'https://your-site.com/wp-content/uploads/2021/01/2nd-logo.png').css({ 'padding-top': '20px'});
        $('.logo').css({ 'width': '200px'});
       } else {
        $('.logo a').find( 'img' ).attr('src', 'https://your-site.com/wp-content/uploads/2021/01/logofinale.svg').css({ 'padding-top': '0px'});
        $('.logo').css({ 'width': '115px'});
       }
      });
     })(jQuery);
     </script>
    <?php
    }
    add_action('wp_footer', 'change_logo_on_scroll');

    also check the url in the code above.

    Best regards,
    Mike

    in reply to: Different font – full-width slider element #1283658

    Hi,
    Thank you for the screenshot, it looks very similar to my example above with the shortcode, to me this looks like the correct solution, please give this a try.
    You can use the same slider as on your homepage if you copy and use that shortcode, you can see all of the pages shortcodes by using the Avia Layout Builder Debugger, or just recreate the element with the shortcode wand as described above.

    Best regards,
    Mike

    in reply to: Remove featured image from blog pages #1283655

    Hi,
    Sorry for the late reply, I didn’t notice that this is not your thread, that is why you can not see the Private Content area and the screenshots.
    Anyways, you said you like the result now, but you would like to have the read more button like it was in the “list layout”, unfortunately, the “Single Author, small preview Pic” layout doesn’t have a read more button, so for a workaround I added the “read more” to one of your posts:
    2021-02-25_062635.jpg
    Then I added this css to your Quick CSS:

    #top.blog .entry-content .more-link {
        text-align: right;
        position: relative;
        margin-top: 40px;
    }
    #top.blog .entry-content .more-link {
        display: inline-block;
        border-width: 1px;
        border-style: solid;
        border-radius: 100px;
        padding: 0 20px;
        text-transform: uppercase;
        font-size: 0.8em;
        font-weight: bold;
        position: relative;
        z-index: 2;
        background-color: #ffffff;
        color: inherit;
        line-height: 2.1em;
        font-size: 0.75em;
    }

    Now for the one post on your Blog the read more button is showing like on the “List Layout”
    2021-02-25_063053.jpg
    Please try adding the “read more” to the other posts, to show less of the excerpt try adding the “read more” above the post content.
    The page is [your-domain]/news/

    Best regards,
    Mike

    in reply to: Images metadata lost in Enfolds generated images #1283411

    Hi,
    These fields in the WP media library are a part of the WP core and are not designed to get info from the images, they are designed to be entered manually by the user. (remember from above: “GD always strips profiles by default”)
    2021-02-24_073816.jpg
    But remember that the default WordPress has the functions for working with the GD script and not ImageMagick, so now that you are using ImageMagick and you want to incorporate its features I would recommend seeking out advice from an ImageMagick on WordPress expert, as in a freelancer, since ImageMagick is not used by WordPress by default researching into this further is beyond the scope of our support.

    Best regards,
    Mike

    in reply to: Read more buttin in masonry blogelement #1283401

    Hi,
    I’m not sure what you mean, on my localhost when I remove the css there are no issues?
    Anyways this thread is starting to get off-topic, the topic of this thread is adding a “read more” button to the masonry items, and not the gallery. Which I was able to do for you.
    While I would like to assist with your next topic of customizing the style your masonry items, I don’t see how this can effectively be done without seeing your site. I write this because often issues that I see are a result of css designed to target a different element and was not specific enough. This is one reason we typically ask to see the page you are working on, most css customization is not a “one-size-fits-all” situation.
    We should close this thread as solved, and if you decide you would like more help customizing your masonry style and are willing to create a test page that we can work on together, then please open a new thread explaining what you are trying to achieve with a link, a screenshot is always welcome too.

    Best regards,
    Mike

    in reply to: Different font – full-width slider element #1283396

    Hi,
    To remove the ajax search result date, please try this css:

    .ajax_search_excerpt {
    	display: none !important;
    }

    I’m not sure what you mean by adding the FULL-SCREEN SLIDER element inside a 1/1 layout, for a single product page, please include a mockup. I think you would like to edit the product page with the Advanced Layout Builder (ALB), and use columns, sliders, etc.
    Which you can by switching the ALB:
    2021-02-24_063455.jpg
    and using these ALB elements:
    ALB_woocommerce_plugin_additions.jpg
    But you can not re-create the exact same product page as the default Woocommerce product page, but you could create your own layout. Try editing a test product and see if this will help.
    If it is important to keep the current layout and add a slider as I did above in the screenshot, then the steps I showed would be the solution.

    Best regards,
    Mike

    in reply to: Gallery slider problem #1283370

    Hi,
    Ok, when I check your /laboratorio/ page I see that no changes to the Initial Active Image have been made like I suggested to correct this. I made this change for you and now the issue is solved, please clear your browser cache and check.

    Best regards,
    Mike

    in reply to: Different font – full-width slider element #1283111

    Hi,
    I couldn’t find the single product page in your screenshot but I did find another linked below.
    It is possible to inject a slider below the title bar on a single product page with a function and the slider shortcode in your functions.php
    But I’m unsure if every single product gets the same slider or a different one, and if you plan on changing this often or never.
    This example would be to add one slider to all single product pages. First, we will want to get the shortcode for our slider by using the Magic Shortcode Wand tool in the Classic Editor:
    magic_wand_easy_slider_shortcode.jpg
    Then for this example I added only one image using the “featured” image size (1500px x 430px) with a title & caption, this is the shortcode result:
    magic_wand_easy_slider_shortcode_result.jpg
    Then we will add that shortcode to this function, replacing [shortcode-here] with your shortcode.

    the rresults:
    easy_slider_shortcode_above_single_product_result.jpg
    Please note that the slider is inside the page container so the page padding and margin still apply.

    If you are going to try this please edit your functions.php via FTP so if you make an error in the code and it crashes your site, you will be able to correct it. The WordPress > Appearance > Editor works good and is easy to use, but if your site crashes you can not reach the editor, but with FTP you can.

    Best regards,
    Mike

    in reply to: Read more buttin in masonry blogelement #1283051

    Hi,
    I tested the masonry with the large gap and your css, and the issue I see is with your css, for example the padding: 5px; adds the padding like this (the green area):
    2021-02-23_050005.jpg
    as you notice it is displacing the inner-masonry. I would recommend removing this padding.
    The margin-bottom: 15px; is increasing the “large gap”, I don’t believe that you wanted to increase the gap, so I would recommend removing this also (orange area):
    2021-02-23_050505.jpg
    as you can see, when the padding & margin is removed from your css, the issue is resolved:
    2021-02-23_051340.jpg

    Best regards,
    Mike

    in reply to: LayerSlider WP Navigation Visuals Not Right #1283025

    Hi,
    Glad to hear this helped, unless there is anything else we can help with on this issue, shall we close this then?

    Best regards,
    Mike

    in reply to: Duplicate WPML Language Switcher / #1282827

    Hi,
    Glad we were able to help, 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: Change logo when scrolling down #1282824

    Hi,
    Thanks, currently your code is like this:
    $('.logo a').find( 'img' ).attr('src', 'xxx/uploads/2021/01/2nd-logo.png').css({ 'padding-top': '20px','width':'max-content'});
    try removing the width part of the css and only use the padding part in the jQuery, then use this css in your Quick CSS to make the logo 200px:

    .logo {
    	width: 200px !important;
    }

    The reason is that you want the logo 200px wide always, but the script is only fired on-scroll, so css in the Quick CSS would work better. The padding css is only for the second image (small one) to center it vertically, and is used only on scroll so the css in the jQuery is the correct approach.
    I hope this helps.

    Best regards,
    Mike

    • This reply was modified 4 years, 11 months ago by Victoria.
    in reply to: Soft Hypens is not working on mobile for me #1282806

    Hi,
    Sorry for the late reply, I believe that Guenni007’s advice to use the “Special Character Translation” plugin from the dev team is a good idea. I tested your page by copying the html from your code block and added it to my localhost along with the relevant css, I then removed your line brake from the word “Halsschlagadern” and added the &shy;
    2021-02-22_062937.jpg
    on larger screens it doesn’t show on the frontend:
    2021-02-22_063117.jpg
    but on smaller screens, in this case 320px with is typically the smallest phones like the iPhone 5, it does show:
    2021-02-22_063926.jpg
    I believe that this demonstrates that the technique works, but as Guenni007 pointed out, each time you edit the page WordPress will try to remove these, so using the “Special Character Translation” plugin is a good idea.

    Please note that the iPhone’s 6/7/8 have a screen width of about 375px, and at this size the word “Halsschlagadern” doesn’t break, because there is no need:
    2021-02-22_070052.jpg
    So perhaps you feel it doesn’t work on your device because it is not being triggered to work.
    Another option might be to set the character width like this:

    .mobilleistung li {
        max-width: 30ch !important;
    }
    

    you could try changing the “30ch” to cause the brake where you want it, but to me currently even though the word doesn’t brake where you want it to, the text seems to display well in the table.
    2021-02-22_071633.jpg

    Best regards,
    Mike

    in reply to: LayerSlider WP Navigation Visuals Not Right #1282781

    Hey egouldmedia,
    Sorry for the very late reply and thanks for the login, I checked the layerslider template store, in the layerslider plugin, and found that the “ecommerce” template is a premium template, and I couldn’t download. I was able to export your slider to my localhost, but when I tested it I got this notice:
    Notice: LayerSlider skin "numbers" not found. Defaulting to "noskin"
    I found the setting the skin in the slider settings solved the error:
    2021-02-22_054216.jpg
    since this is a premium template I can imagine that it may not use premium features such as the skin in a premium template.
    On your site I don’t see the prev/next buttons, but on the demo they look normal. I found that the Show navigation buttons are disabled:
    2021-02-22_055556.jpg
    I also found that the “Slide Transition” is not set. Please try looking at the slider settings for that slide and try changing any blank settings, these were probably the ones influenced by the premium settings.
    After I made these changes to the copy on my localhost the slider seems to work well and similar to the demo.

    Best regards,
    Mike

    in reply to: Center socket on mobile only #1282759

    Hi,
    Gracias por los comentarios, revisé su página nuevamente y el CSS parece estar funcionando correctamente. Intente borrar la caché de su navegador y cualquier complemento de almacenamiento en caché y vuelva a verificar.
    2021-02-22_043219.jpg

    — Translated with Google —

    Thanks for the feedback, I checked your page again and the css seems to be working correctly. Please try clearing your browser cache and any caching plugins and check again.
    2021-02-22_043219.jpg

    Best regards,
    Mike

    in reply to: Change logo when scrolling down #1282758

    Hi,
    Good try, you were almost there, between the two css rules you needed a comma like this:
    $('.logo a').find('img').attr('src','https://url.com/wp-content/uploads/2021/01/2nd-logo.png').css({'padding-top':'20px','width':'200px'});
    Please give this a try.

    Best regards,
    Mike

    Hey BierPlus,
    Sorry for the very late reply, it looks like the layerslider is loading before jQuery, I tried many settings except for disabling your plugins, did you try this?
    I also note that your theme editor is disabled so I’m unsure if your child theme is causing this, did you try enabling your parent theme?
    I also exported your current slide to my localhost with a new install of v4.7.6.4 and it works correctly.
    What is the “Raidbox” plugin? It has a “purge cache” dropdown but it doesn’t seem to work.

    Best regards,
    Mike

    Hey samebluesky,
    Sorry for the very late reply and thanks for the link to your site, please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    #top #header .av-main-nav > li#menu-item-782:hover > a {
        background-color: #328283 !important;
    }

    or if you want this to work for all menu items, try this css:

    #top #header .av-main-nav > li:hover > a {
        background-color: #328283 !important;
    }

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

    Best regards,
    Mike

    Hi,
    Sorry for the very late reply, to remove all google fonts, try adding this code to the end of your functions.php file in Appearance > Editor:
    ` /*remove all google fonts*/
    add_action( ‘init’, ‘enfold_customization_switch_fonts’ );
    function enfold_customization_switch_fonts() {
    global $avia;
    $avia->style->print_extra_output = false;
    }`

    I tested this on my localhost with adding a downloaded Google font in the Custom Font Manager of the theme settings, so that the font is loaded locally, I then set the elements to use this font in the Advanced Styling, H1-H6, and it worked correctly without connecting to fonts.google

    Best regards,
    Mike

    • This reply was modified 3 years, 1 month ago by Yigit.
    in reply to: display single blog post #1282676

    Hi,
    Sorry for the very late reply, and thanks for the login, I see that you are using the blog element to show one post, to show a specific post on your page please try filtering the posts by date:
    2021-02-21_145153.jpg
    I see that one of your posts was on 01/29 and the other was 02/15.

    Best regards,
    Mike

    in reply to: Inline text styling issue #1282668

    Hi,
    Sorry for the very late reply and thanks for the login. Unfortunately, I could not find the text referenced or any other text link on that page, do you have another example page?
    I believe that the issue can be solved with more specific css, typically links like the ones you are trying to target are also influenced by another tag such as H1, span, p, etc.
    So if your link is in a special heading element in a color section with the custom ID “features”, you would want to try #features > h2 > a instead of #features a *for example.
    If I could see examples of these links I’m sure we can sort this out.

    Best regards,
    Mike

    in reply to: Playing video on mobile automattically #1282645

    Hey projectt_co_uk,
    Sorry for the very late reply, please try using the layerslider instead of the full-screen slider, they seem to have a workaround.
    Just in case you didn’t know, the issue with mobile auto video playing is a browser restriction, while there may be other workarounds it is generally frowned upon by the browsers.

    Best regards,
    Mike

    in reply to: Center socket on mobile only #1282635

    Hi,
    I checked your site and I do not see this css in your source code, so please ensure that it is in only one place, I recommend WordPress > Customize > Additional CSS and also ensure the code looks exactly the same as in this thread on a desktop. Sometimes if you copy the code from an email the arrow in the code looks like letters: > or &gt;

    Best regards,
    Mike

    in reply to: Read more buttin in masonry blogelement #1282623

    Hi,
    Thank you, this script has been adjusted:

    function savvy_custom_mod(){
    ?>
    <script>
    (function($){
      $(window).on('av-height-change', function() {
        $('.av-masonry:not([class*="-gallery"]) .av-masonry-entry').each(function() {
          var more = $(this).find('.av-masonry-read-more');
          var cont = $(this).find('.av-masonry-entry-content');
      
          if( more.length == 1 ) return;
          cont.append('<div class="av-masonry-read-more">Read more</div>');
        });
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'savvy_custom_mod');

    Please ensure to clear your browser and any caching plugins before checking.

    Best regards,
    Mike

    in reply to: Duplicate WPML Language Switcher / #1282617

    Hi,
    Glad to hear, unless there is anything else we can help with on this issue, shall we close this then?

    Best regards,
    Mike

    in reply to: Roboto font not working #1282616

    Hi,
    Sorry about that, I’ll be more careful. I also removed it from the server.
    Unless there is anything else we can assist with on this issue, shall we close this then?

    Best regards,
    Mike

    in reply to: Change logo when scrolling down #1282612

    Hi,
    Glad to hear that the code worked for you, the message:

    Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.

    is a part of WordPress’s self-check, which can give false positives due to many things, but also ensure that you are trying to remove all of the code and are not removing or leaving an extra character.
    That said I tried to remove the function also and received the same message, I see this message quite often with or without customizations so I would not be concerned. If you have FTP access, or cPanel “file manager” access you or I could remove this if you wish. I would recommend using FTP or the cPanel “file manager” over the WordPress built-in editor, because if the site crashes you can not use the WordPress built-in editor, but you can always use FTP.

    I also checked the Site Health tool and see the error is Error: cURL error 28, based on my research I disabled the REST API: Head endpoint option in the Yoast plugin and the Site Health tool error was solved.
    2021-02-21_095250.jpg
    cURL is a server function, so there is a chance that your webhost can use the error log to make adjustments to your server settings to allow this option to be enabled. Or perhaps Yoast support has also seen this and has another solution.

    To change the padding to the second image we could add the css to the jQuery like this:

    $('.logo a').find( 'img' ).attr('src', 'https://your-full-url.com/wp-content/uploads/2021/01/logofinale.svg').css({ 'padding-top': '15px'});

    so the full script would be like this:

    function new_custom_script() { ?>
        <script>
    (function ($) { 
      $(window).scroll(function() {
        var width = $(window).width(), height = $(window).height();    
        var scroll = $(window).scrollTop();
          if (scroll > 20 && width >= 1440) {
        $('.logo a').find( 'img' ).attr('src', 'https://your-full-url.com/wp-content/uploads/2021/01/2nd-logo.png').css({ 'padding-top': '0px'});
       } else {
        $('.logo a').find( 'img' ).attr('src', 'https://your-full-url.com/wp-content/uploads/2021/01/logofinale.svg').css({ 'padding-top': '15px'});
       }
      });
     })(jQuery);
     </script>
        <?php
    }
    add_action('wp_footer', 'new_custom_script');

    *Please note that I added zero padding to the first image to help clear the second image padding on scrolling back to the top, without it you might notice the padding if you quickly scrolled up & down over and over 🙂
    Please feel free to adjust the urls and padding to suit.

    Best regards,
    Mike

    in reply to: Center socket on mobile only #1282607

    Hi,
    Prueba este código en el campo Estilo general> CSS rápido o en el campo WordPress> Personalizar> CSS adicional

    #socket > .container {
    	display: flex !important;
    	flex-direction: column-reverse !important; 
    }

    Luego borre la caché de su navegador y cualquier complemento de caché, y verifique.

    — Translated with Google —

    Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    #socket > .container {
    	display: flex !important;
    	flex-direction: column-reverse !important; 
    }

    Then clear your browser cache and any cache plugin, and check.

    Best regards,
    Mike

    in reply to: Remove featured image from blog pages #1282601

    Hi,
    Thanks for the feedback, I do understand that we are talking about your blog page /news/
    Currently, your blog layout setting is for List Layout – Excerpt (Title, meta information and excerpt only), you would want to choose Single Author, small preview Pic (no author picture is displayed, feature image is small).
    and you need to change this css to show the image on the blog page, but because you added it to remove the image on single posts I modified it to only work on single posts, from:

    .blog-meta .small-preview {
        display: none;
    }

    to:

    .single-post .blog-meta .small-preview {
        display: none;
    }

    So now from screenshot one below, you can see the layout I believe you were looking for on your blog page /news/
    The issue I now see is that the image in the blog post is showing in the excerpt, perhaps you will like this, but since your previous blog layout didn’t show images or videos in the excerpt, I’m thinking that you don’t want to show these. So the first option would be to edit each post and add the -more- tag above the images so they don’t show, or we could use this css to hide the excerpt images/videos only on the blog page.

    #top.blog .post-entry.single-small .entry-content img,
    #top.blog .post-entry.single-small .entry-content .avia-iframe-wrap{
        display: none !important;
    }

    Now you will see from the second screenshot the blog page is much closer, but it is still quite different from before because the layout in the theme options is different, the classes and css is different, it’s not one-for-one between the layouts.

    I typically don’t leave changes like this in place on live sites, but I will leave it like this today because I think it would be easier for you to see the result.

    Best regards,
    Mike

    in reply to: ACF & Enfold – Post template builder? #1282557

    Hi,
    Sorry, anyways this is some good info and I submitted this to the dev team and I will update as I hear back from them.

    Best regards,
    Mike

Viewing 30 posts - 15,151 through 15,180 (of 35,013 total)