Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #923241

    Have spent ages reading up on various posts but want to know if setting changes made under general and advanced styling can also be copied over. It copies over my custom css but not the other changes. What is the best way to do this?

    #923247

    Hi,

    I activated child theme and then saved Enfold child theme options to flush dynamic cache and that helped. Please review your website :)

    Cheers!
    Yigit

    #923261

    Thanks
    What did you do to make this work that I had not?? An explanation would help me and others as I have a few other sites I would like to move to a child theme

    #923273

    Hey!

    After activating Enfold child theme, i went to Enfold theme options > General Styling and added a space in Quick CSS field, just to make Save button clickable and then clicked Save button and that was it :)

    Regards,
    Yigit

    #925965
    This reply has been marked as private.
    #926120
    This reply has been marked as private.
    #926388

    Hi,

    You are likely missing one line at the top of your code, please try this instead in your child theme functions.php file:

    function ava_custom_script_fix() } ?>
    <script>
    (function($){
    var a = function() {
    var isMobile = ”;
    if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && ‘ontouchstart’ in document.documentElement)
    {
    isMobile = true;
    }
    else
    {
    isMobile = false;
    }
    
    if(isMobile || $(window).width() <= 767) {
    $(‘#top #wrap_all .av-social-link-facebook a’).attr(‘href’,’fb://profile/941820895904497′);
    } else {
    $(‘#top #wrap_all .av-social-link-facebook a’).attr(‘href’, ‘https://www.facebook.com/wclestates’);
    }
    }
    
    $(window).resize(function() {
    a();
    }).resize();
    })(jQuery);
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘ava_custom_script_fix’);

    Best regards,
    Rikard

    #926525

    Pretty sure that this is what I actually did use as was taken from another site where this script was working. Will try again and report back.

    Think I may have lost some details as saved cript in ansi and not unicode!

    #926692

    Added exactly that code and website would not load!

    Below is the code from another website where this works..But is not in child theme. The current wcl website worked with this script in functions.php when added to the main theme page!! It was lost when you transferred this over to a child theme!

    working code from other website is..

    function ava_custom_script_fix(){
    ?>
    <script>
    (function($){
    var a = function() {
    var isMobile = ”;
    if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && ‘ontouchstart’ in document.documentElement)
    {
    isMobile = true;
    }
    else
    {
    isMobile = false;
    }

    if(isMobile || $(window).width() <= 767) {
    $(‘#top #wrap_all .av-social-link-facebook a’).attr(‘href’,’fb://profile/1184375088251044′);
    } else {
    $(‘#top #wrap_all .av-social-link-facebook a’).attr(‘href’, ‘https://www.facebook.com/Little-India-Didcot-1184375088251044&#8217;);
    }
    }

    $(window).resize(function() {
    a();
    }).resize();
    })(jQuery);
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘ava_custom_script_fix’);

    #926741

    Ok.. Have now managed to install scriot without crashing but does not work with facebook plugin at bottom of page which is what I had hoped we could manage to do

    #927852

    Hi,

    Thank you for the update. Please post the login details in the private field. We would like to test the script.

    Best regards,
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.