-
AuthorPosts
-
March 7, 2018 at 7:22 pm #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?
March 7, 2018 at 7:39 pm #923247Hi,
I activated child theme and then saved Enfold child theme options to flush dynamic cache and that helped. Please review your website :)
Cheers!
YigitMarch 7, 2018 at 7:55 pm #923261Thanks
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 themeMarch 7, 2018 at 8:11 pm #923273Hey!
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,
YigitMarch 13, 2018 at 9:42 am #925965This reply has been marked as private.March 13, 2018 at 3:57 pm #926120This reply has been marked as private.March 14, 2018 at 5:23 am #926388Hi,
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,
RikardMarch 14, 2018 at 10:24 am #926525Pretty 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!
March 14, 2018 at 4:39 pm #926692Added 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’);
}
}$(window).resize(function() {
a();
}).resize();
})(jQuery);
</script>
<?php
}
add_action(‘wp_footer’, ‘ava_custom_script_fix’);March 14, 2018 at 5:48 pm #926741Ok.. 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
March 16, 2018 at 3:31 am #927852 -
AuthorPosts
- You must be logged in to reply to this topic.