Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #1325540

    To whom it may concern,

    This is a bit urgent,

    Do you know why now, SCG logos are not being displayed ? They were working before

    View post on imgur.com

    #1325547

    Update:

    I noticed that the problem is from this code

    function custom_excerpt_setting(){
    ?>
    <script>
    (function($){
    // trim excerpt by words
    function trimByWord(sentence,wordcount = 20) {
    var result = sentence;
    var resultArray = result.split(” “);
    if(resultArray.length > wordcount){
    resultArray = resultArray.slice(0, wordcount);
    result = resultArray.join(” “) + “…”;
    }
    return result;
    }
    $(document).ready(function(){
    $(‘.read-more-link’).each(function() {
    $(this).parent().parent().append($(this));
    });

    $(‘.avia-content-slider .slide-entry-excerpt’).each(function() {
    $(this).text(function(index, currentText) {
    return trimByWord(currentText);
    });
    });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action(‘wp_head’, ‘custom_excerpt_setting’);

    Can you please tell me how to fix it as this is the code I was given for the excerpt and when I remove it, logos work, but when I add it i get the previous error.

    #1325562

    maybe you try that :

    Note for SVG Support plugin users: If you are using SVG Support plugin and your SVG logo does not show up even after updating the file, please re-create your SVG file and re-upload it. If you need assistance with it, please share WP admin logins :)

    from: https://kriesi.at/support/topic/hotfix-for-the-missing-logo-issue-on-enfold-4-8-6-4/

    _____________

    and by the way : why the code from above or here – should influence the logo ???
    there is not even one selector in that code that concerns to logo container ?
    here is my test page for your last topic: https://webers-testseite.de/blog-seite/
    and my svg logo is still there !

    • This reply was modified 3 years, 2 months ago by Guenni007.
    #1325642

    Hi,


    @FamalcoGroup
    : Sorry for the inconvenience. Please make sure to update the theme to version 4.8.6.5, then recreate and upload the logo in the Theme Options, or just follow the instructions that we provided in the previous thread. This should fix the display issue. The script that @Guenni007 provided above should NOT affect the logo.

    // https://kriesi.at/support/topic/hotfix-for-the-missing-logo-issue-on-enfold-4-8-6-4/


    @Guenni007
    : Thank you for your help. :)

    Best regards,
    Ismael

    #1325679

    I did recreate and uploaded the svg again but the problem is still persisting.

    I have also updated the theme to the new version, but whenever I add guenni’s code the svg icons disappears only from the portfolio pages

    #1325681

    could you please post the whole functions.php of the child theme here! – but please use the code tag so we can check it better.

    #1325696
    function custom_excerpt_setting(){
    ?>
    <script>
    (function($){
    // trim excerpt by words
    function trimByWord(sentence,wordcount = 20) {
    var result = sentence;
    var resultArray = result.split(” “);
    if(resultArray.length > wordcount){
    resultArray = resultArray.slice(0, wordcount);
    result = resultArray.join(” “) + “…”;
    }
    return result;
    }
    $(document).ready(function(){
    $(‘.read-more-link’).each(function() {
    $(this).parent().parent().append($(this));
    });
    
    $(‘.avia-content-slider .slide-entry-excerpt’).each(function() {
    $(this).text(function(index, currentText) {
    return trimByWord(currentText);
    });
    });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action(‘wp_head’, ‘custom_excerpt_setting’);
    #1325767

    you only got this in your child-theme functions.php ?

    without on top the

    <?php
    

    the snippets comes below that starting line

    and you copy&pasted it from here : Link ? because there are wrong quotation marks

    #1325817

    Hi, the code you gave me previously I have removed it from the functions.php file as it is effecting the logos on the portfolio pages.

    I have more code in the functions.php file, its not empty, but I would like to know why when I add your code it effects the logos in the portfolio pages.

    #1325827

    first – did you copy&paste it?
    because the code here: Link has wrong quotation marks.

    The code above can’t affect the logo area.
    The function ( trimByWord ) that is defined there is exclusively then applied below to selectors that are not used in the logo or even header.

    please just let a mod look into your installation. I suspect that it is due to something completely different.
    My support on this topic is now over.

    btw – if you load the jQuery in the footer:

    then you must change the code by loading it in the wp_footer too! – last line:

    add_action('wp_footer', 'custom_excerpt_setting');
    
    #1325834

    Note to a moderator,

    Kindly look into my functions.php file.

    – I am using the code guenni gave me and the excerpts work fine.
    – I have enabled to load jquery in footer and changed the last bit of the code he sent me to add_action(‘wp_footer’, ‘custom_excerpt_setting’);

    I am still experiencing the logos in the portfolio pages not being displayed.

    I would really appreciate it if you can help me with this please.

    I have also uplaoded new svgs but still encountering same problem

    #1325908

    Hi,

    Could you please post FTP logins here privately as well? I tried to edit functions.php file in Appearance > Editor but saving did not work.

    Best regards,
    Yigit

    #1325941

    maybe this in the upcomming fixes will give you a hint:

    • fixed: svg logo broken when svg tag in multiple lines
    • fixed: svg logo not displayed for non logged in users
    #1326041
    This reply has been marked as private.
    #1326046

    Hey,

    Logins did not work for me. Could you please check them once again? :)

    Regards,
    Yigit

    #1326053
    This reply has been marked as private.
    #1326063

    Hi,

    The issue was related to selectors so I edited your Color Section element on your Blog page and gave it “blog-section” custom ID in Advanced > Developer Settings and then updated the code to following one

    function custom_excerpt_setting(){
    ?>
    <script>
    (function($){
    // trim excerpt by words
        function trimByWord(sentence,wordcount = 20) {
            var result = sentence;
            var resultArray = result.split(" ");
            if(resultArray.length > wordcount){
            resultArray = resultArray.slice(0, wordcount);
            result = resultArray.join(" ") + "...";
            }
            return result;
        }
        $(document).ready(function(){
            $('#blog-section .read-more-link').each(function() {
                $(this).parent().parent().append($(this));
            });
    
            $('#blog-section .avia-content-slider .slide-entry-excerpt').each(function() {
                 $(this).text(function(index, currentText) {
                    return trimByWord(currentText);
                 });
            });
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_excerpt_setting');

    Please review your website :)

    Best regards,
    Yigit

    #1326070
    This reply has been marked as private.
    #1326072

    Hey,

    You are welcome! Let us know if you have any other questions and enjoy your weekend :)

    Regards,
    Yigit

Viewing 19 posts - 1 through 19 (of 19 total)
  • The topic ‘SVG Logos Issue’ is closed to new replies.