Viewing 30 results - 121 through 150 (of 16,887 total)
  • Author
    Search Results
  • #1491671

    just for understanding – these are the default values from loop-author.php:

    // Default arguments for Author Loop
    $default_args = array(
        'type'              => 'grid',
        'columns'           => 4,
        'items'             => get_option('posts_per_page', 12), // WordPress setting, fallback: 12
        'contents'          => 'excerpt_read_more',
        'preview_mode'      => 'auto',
        'image_size'        => 'portfolio',
        'paginate'          => 'no',
        'class'             => '',
        'show_modified_date' => 'no',  // 'yes' or 'no' - shows "Updated: XX" if post was modified
        'orderby'           => 'date',  // 'date', 'modified', 'title', 'rand', 'comment_count', 'menu_order'
        'order'             => 'DESC',  // 'DESC' (newest first) or 'ASC' (oldest first)
        'fallback_image'    => 'placeholder',      //  'placeholder'  or URL to fallback image 
        'post_types'        => array('post'), // Array: array('post'), array('portfolio'), or array('post', 'portfolio')
    );
    
    // Content Options for 'contents' parameter:
        // 'title'                  - Title only
        // 'title_read_more'        - Title and Read More button
        // 'only_excerpt'           - Excerpt only (no title)
        // 'only_excerpt_read_more' - Excerpt and Read More button (no title)
        // 'excerpt'                - Title and Excerpt
        // 'excerpt_read_more'      - Title, Excerpt and Read More button (default)
    
    

    if you like to have it this way (grid, 4columns, exerpt with readmore, only posts ordered by date – newest first) you do not need to set the filter.
    Then only the second part is needed inside functions.php.

    The filter could do more – you can even differ between authors – f.e by author name. :

    // 1. Layout for different authors by ID
    add_filter( 'avf_author_loop_args', function( $atts, $context ) {
        if( $context == 'author' ) {
            // Common settings for all author pages
            $atts['items']             = -1;
            $atts['image_size']        = 'gallery';
            $atts['contents']          = 'excerpt_read_more';
            $atts['post_types']         = array('post', 'portfolio'); 
    		
    	// Fallback-Image from Media Library (Attachment-ID)
            $fallback_id = 2052;  // Your image ID from Media Library
            $fallback_img = wp_get_attachment_image_src($fallback_id, $atts['image_size']);
            $atts['fallback_image'] = $fallback_img ? $fallback_img[0] : 'placeholder';
            
            $author_slug = get_query_var( 'author_name' );
    
            // Individual configuration for a specific author
            if( $author_slug == 'guenni007' ) {
                $atts['type']              = 'grid';
                $atts['columns']           = 3;
            } 
            else {
                // default setting for the rest
                $atts['type']              = 'list';
            }
        }
        return $atts;
    }, 10, 2);

    the fallback image i get from media-library with the attachment ID
    Advantage of this solution – the fallback image is based on the selected image size setting.

    see:
    grid for guenni007: https://basis.webers-testseite.de/author/guenni007/
    list for johndoe: https://basis.webers-testseite.de/author/johndoe/

    #1491667

    now my final solution is – to upload 3 files to the child-theme includes folder:

    /wp-content/themes/enfold-child/
    └── includes/
      └── loop-author.php ← PHP Loop (loads the css once)
      └── loop-about-author.php
      └── loop-author.css ← all Styles (Grid + List)

    loop-author.php: https://pastebin.com/yaXj5Zfw
    loop-about.php: https://pastebin.com/QQ84LGaw
    loop-author.css: https://pastebin.com/zTJMtth9

    to style the author page now are two entries for child-theme functions.php

    // 1. Configure layout and settings
    add_filter( 'avf_author_loop_args', function( $atts, $context ) {
        if( $context == 'author' ) {
            $atts['type']              = 'list';               // 'grid' or 'list' Layout
            $atts['columns']           = 4;                    // columns count
            $atts['image_size']        = 'gallery';            //  image-size
            $atts['contents']          = 'excerpt_read_more';  // Content-Type
            $atts['items']             = -1;                   // Posts per page
            $atts['paginate']          = 'no';                // Pagination  on/off  (yes or no)
            $atts['show_modified_date'] = 'yes';               // 'yes' = shows  "Updated: XX"
            $atts['orderby']           = 'date';               // orderby : 'date', 'modified', 'title', 'rand', 'comment_count'
            $atts['order']             = 'DESC';               // order: 'DESC' (newest or Z-A) or 'ASC' (oldest or A-Z)
    	$atts['fallback_image']     = get_stylesheet_directory_uri() . '/includes/fallback.jpg';  // an url or  'placeholder'
    	$atts['post_types'] 		= array('post', 'portfolio');    	// 	count posts or portfolios or both
        }
        return $atts;
    }, 10, 2);
    
    // 2.  IMPORTANT: Customise query for pagination, sorting and post types
    add_action( 'pre_get_posts', function( $query ) {
        if( ! is_admin() && $query->is_main_query() && is_author() ) {
            // Get the filtered arguments from above
            $default_args = array(
                'items'      => get_option('posts_per_page', 12),
                'orderby'    => 'date',
                'order'      => 'DESC',
                'post_types' => array('post')
            );
            $atts = apply_filters( 'avf_author_loop_args', $default_args, 'author' );
            
            // Set Query-Parameters
            $query->set( 'posts_per_page', $atts['items'] );
            $query->set( 'orderby', $atts['orderby'] );
            $query->set( 'order', $atts['order'] );
            
            // Set post types - IMPORTANT: even if there is only one type
            if( ! empty( $atts['post_types'] ) && is_array( $atts['post_types'] ) ) {
                // WordPress requires 'any' or an array with multiple types
                if( count( $atts['post_types'] ) == 1 ) {
                    $query->set( 'post_type', $atts['post_types'][0] );
                } else {
                    $query->set( 'post_type', $atts['post_types'] );
                }
            }
        }
    }, 999 );

    see result page : https://basis.webers-testseite.de/author/guenni007/
    Unfortunately, no translation for But we are proud to say that %s contributed %s entries already. has been added to the (at least German) lang files yet. That is why it is in English on my example page.

    i tested all 3 blog styles – it works on all of them.

    #1491663

    Hey Tony T,
    Thanks for your question, since you state that the site was built by a developer long ago, I assume that it was built using their Envato (Theme Forest) account and not your friend’s, unfortunately this occurs. So you will need to purchase a license though a new account with your friend’s email address so they have future updates. Then you can download the latest installable WP version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New
    after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue,
    then you will see the Theme updated successfully message.
    After which you can go to your Theme Forest account and create a new Token for future automatic updates.
    This will not interfere with your child theme modifications.
    Please note that while we don’t expect any errors, the best course of action for such an old version is to create a stagging site, most webhost have this option, then update it first to see if you have errors. If it works fine then create a full backup, with your webhost options, and try the update on your live site.
    Please also note that Enfold 3.0.4 is not PHP v8+ ready, so you will need to switch back to the v7 version before updating the theme.

    Best regards,
    Mike

    #1491641

    In reply to: PHP update

    Hey Robert,

    I’m not sure I understand what you are referring to. PHP is server software, it’s not included in Enfold. If you are asking if Enfold is compatible with PHP versions beyond PHP 7.4, then the answer to that is yes.

    Best regards,
    Rikard

    #1491626

    Topic: PHP update

    Robert Koopman
    Guest

    Hi, by the end of this year PHP 7.4 becomes end of life with my websitehost. Is there an update available? I bought the template a couple of years ago and thought it was a life-time template.

    #1491612

    Hey Mariann_m,

    Thank you for the inquiry.

    The theme should be compatible with the latest PHP versions (8.3 and above). The current site is running version 6.0.8, which is quite outdated. Please make sure that the theme is updated to version 7.1.3.

    https://kriesi.at/documentation/enfold/theme-update/#update-via-ftp

    Best regards,
    Ismael

    #1491580

    Looked at the plugins on the Dashboard, and know the answer:

    Contact Form 7
    Cannot Activate | Delete
    Just another contact form plugin. Simple but flexible.

    Version 6.1.3 | By Rock Lobster Inc. | View details
    Disable auto-updates
    This plugin does not work with your version of PHP. Learn more about updating PHP.

    #1491579

    Actually, one more. I checked the contact form, that uses Contact-Form-7 and this is still showing. Is that because PHP hasn’t been upgraded yet, or something else?

    Questions: Please fill out our Contact form. Remember, you are welcome to attend our next meeting.

    [contact-form-7 id=”106″ title=”Contact form 1″]

    Or just email the CWRTO pres., (Email address hidden if logged out)
    We also have a facebook page. A simple search will find us.

    #1491534

    Hi,
    Sorry that you are having issues, but I see a couple of different issues with your site. First, you site is using v4.1.2, which uses the old Envato (theme forest) API key, I also note that you wrote that your API key is not working. This will not work because Envato has changed to a “token” tha you must login to your Envato account and create.
    You should download the latest installable WP version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New
    after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue
    then you will see the Theme updated successfully message.
    Please do this type of install instead of FTP, unless you delete all files and upload fresh via FTP, otherwise old files will be left behind and cause errors.
    I also note that you are using PHP (7.3.33), WordPress requires v8+ now, so after to update the theme, also update your PHP. Please ensure that you create a full backup of yoursite files & database first, we don’t expect issues, but a full backup is the best course of action.
    I hope this helps, plase let us know if you need further assistance.

    Best regards,
    Mike

    #1491503

    Thank you!
    For everybody this worked for me:

    add_action(‘wp_footer’, function() {
    ?>
    <script>
    jQuery(function($){

    function moveGTranslate() {
    if ($(window).width() > 768) return;

    var targetLi = $(‘.menu-item-3651’); // Ziel-Menu-Punkt
    var gtrans = $(‘.gtranslate_wrapper’);

    // Nur verschieben, wenn beide vorhanden sind
    if (targetLi.length && gtrans.length && !targetLi.find(‘.gtranslate_wrapper’).length) {
    gtrans.appendTo(targetLi);
    }
    }

    // 1) Wiederholen bis GTranslate geladen ist
    var waitGT = setInterval(function(){
    if ($(‘.gtranslate_wrapper’).length) {
    clearInterval(waitGT);
    moveGTranslate();
    }
    }, 300);

    // 2) Wenn Burger-Menü geöffnet wird
    $(document).on(‘click’, ‘.av-hamburger’, function(){
    setTimeout(moveGTranslate, 200);
    });

    // 3) Bei Resize (z. B. Rotation)
    $(window).on(‘resize’, function(){
    setTimeout(moveGTranslate, 150);
    });

    });
    </script>
    <?php
    }, 999);

    This topic can be closed :))

    Best regards
    Barbara

    #1491455

    Hi again,

    I managed to fix it. For those with the same problem, here’s a code snippet to add to the functions.php file that will flush both WP Rocket’s cache and object cache automatically, right after pressing Enfold’s “Save all changes” button.

    // Clear WP Rocket cache and Object Cache when Enfold Theme Options are saved
    add_action( 'avia_ajax_after_save_options_page', function( $new_options ) {
    	
    	// Object Cache Pro: flush object cache
        if ( function_exists( 'wp_cache_flush' ) ) {
            wp_cache_flush();
        }
    	
    	// WP Rocket: full cache purge
        if ( function_exists( 'rocket_clean_domain' ) ) {
            rocket_clean_domain();
        }
    
    }, 20 );


    @Ismael
    , I suggest you forward this to your team, as there is clearly something wrong here:
    – The checkbox “Delete Old CSS And JS Files” is confusing. One expects to not have the CSS deleted if it’s unchecked.
    – If there’s object cache in place, even when all caches are flushed after saving Enfold’s settings, the new CSS is not generated. Object cache needs to be cleared too.

    By the way, the ver=ver-1763353330 parameter is not something of our website. Even Enfold’s demo has it: https://kriesi.at/themes/enfold-2017/

    Thank you.

    #1491440

    Hey walhai,

    Thank you for the update.

    The theme doesn’t natively support the translation plugin, but you can try this script in the functions.php file to move the translation flags inside the mobile menu.

    add_action('wp_footer', function() {
        ?>
        <script>
        jQuery(function($) {
            function moveGTranslate() {
                if ($(window).width() <= 768) {
                    var targetLi = $('.menu-item-3651.av-active-burger-items');
                    if (!targetLi.find('.gtranslate_wrapper').length) {
                        var gtranslate = $('.gtranslate_wrapper');
                        if (gtranslate.length && targetLi.length) {
                            gtranslate.appendTo(targetLi);
                        }
                    }
                }
            }
    
            moveGTranslate();
    
            $(window).on('resize', moveGTranslate);
        });
        </script>
        <?php
    }, 999);
    

    Best regards,
    Ismael

    #1491421

    With PHP 8.3.27 ist all OK. Puhhhh

    #1491217

    Hi,

    Thank you for the update.

    Add the following code to your functions.php file to display an instagram icon next to the mobile menu:

    add_action( 'ava_inside_main_menu', function() {
        $instagram_url = 'https://www.instagram.com/yourusername/';
        echo '<a class="av-custom-header-icon" href="' . esc_url( $instagram_url ) . '" target="_blank" rel="noopener noreferrer">';
        echo do_shortcode('[av_font_icon icon="instagram" font="svg_entypo-fontello" size="30px" av_uid="av-mhvfocn7"]');
        echo '</a>';
    });

    Then add this css code:

    .av-custom-header-icon {
        position: absolute;
        left: 0;
        top: 20px;
        display: none;
    }
    
    @media (max-width: 768px) {
        .av-custom-header-icon {
            display: inline-block;
        }
    }

    Best regards,
    Ismael

    Thanks sir,

    1. I know i cna make my own custome HTML,but that is why I asked about the refund. Making that much custom HTML defeats the purpose of having a template.
    2. I have many test pages. They all do the same thing. login info below.
    3-4. I did this as I stated. I appended the customer copyright with your shortcode. It’s there now. Has no effect.
    5. I am sorry but I need a higher level of support. I can’t post screnshots here so I am not going to waste my time usng workarounds for support tickets to get you screenshots. If you want to email me directly I will give you screenshots. You don’t need this to check the footer.php file. Youwill see at the end it has this code: “‘ id=’scroll-top-link’ class=’avia-svg-icon avia-font-svg_entypo-fontello’ <?php echo $icon_top[‘attr’]; ?> tabindex=’-1′ aria-hidden=’true’>
    <?php echo $icon_top[‘svg’]; ?>
    <span class=”avia_hidden_link_text”><?php echo $icon_title; ?></span>

    <div id=”fb-root”></div>”
    6. what change was this supposed to have? I don’t see any change from this.
    7. You can recreate this. Make color section rox. Add bg image. Next add columns to fill row. Pick any column and add a bg-image to the column. It displays the column under the row and not on top of it. When you modify the higlight option it pushed the bg image off the bottom of the screen.
    8. You can check my home page. I have two independent color sections both with text blocks that have only hedings. The same exact headings. Yet it shows two differnt things. How is that even possible? If it won’t display the same code twice on one page I am noit sure what I can do.

    nearly every element I have to make custom inline because the global options to not seem to work. I really think I need to find a new theme. It’s not about getting used to it, right? It’s about this theme taking me more time to configure than it would be to just write the site from scratch, because the options are severely limited. I did not even know they made themes templates this limited.

    Take a look. Tell me what you think after you see for yourself. Hopefully you can see what is wrong because I am wasting so much time with this theme I could have built three sites. Please sir. I made a mistake. I think it would be best to offer a refund as you do not have the resources to help me resolve this in a way that will work for it’s intended purpose. I can’t even modify image sizes or blog posts. It’s very frustrating. It’s my fault for buying the theme because I did not know it was missing the normal options you find in other themes. It’s great for your purpose, but I need a theme I can customize.

    I can buy another theme and same myself over 70% of the labor costs your theme requires for basic styles. Let me know what you think. I am not trying to give you a hard time, I doubt you will fix any of this stuff and the answer will be the same -“make custome html”. I am just trying to be realistic. I feel like I lost a lot of money using this theme. Please help me cut my losses and move on.

    TasmaniaBV
    Participant

    Hi,

    We have a very old version (3.0.6) of the Enfold theme and we need to upgrade our PHP version from 5.6.40 to the neweset version PHP 8.4.

    However when we tried we also needed to update the theme which we couldn’t find in our themeforest account so now we have bought the newest version.

    I am trying to fix the issues with our IT partner and he tried updating it while running a localhost version on his laptop but he got a lot of errors.

    Also as soon as we try to update through FTP we get a never ending stream of error messages for example:

    Fatal error: Access level to av_email_spam::shortcode_insert_button() must be public (as in class aviaShortcodeTemplate) in ******\htdocs\*******\wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\email_spam.php on line 16

    To be smart i thought to just exclude it from the php file just to have it move on to the next 50 similar error messages.

    Please let me know how to update the theme. As I found on your forums it was suggested you first needed to update to a version 4.5. or something and that would allow auto updates. However we now only have version 3.0.6. and the newest 7.1.3.

    Kind regards

    #1491115

    i’m participant as you are – so i do not see any private content area.

    on general layout – Maximum Container Width – this is the value i pull out in the snippet for the setting

    $responsive_size = avia_get_option('responsive_size');
    

    If you have there a 100% width set – then it wil be synchronized in the snippet too.
    If that is the case – you have to use the other snippet with the “hard-coded” width and replace th 1310px with your 1400px now:

    function grid_layout_notfull(){
    ?>
    <script>
    (function($){
    	$('.av-layout-grid-container.grid-notfull' ).each(function() {
    		var notfullID = $(this).attr('id');
    		$(this).hasClass('main_color') ? $(this).wrap('<div class="main_color notfullsize '+notfullID+'"></div>') : '';
    		$(this).hasClass('alternate_color') ? $(this).wrap( '<div class="alternate_color notfullsize '+notfullID+'"></div>') : '';
    	});
    	$('.notfullsize').css({"clear": "both", "width": "100%" , "float": "left" , "position": "static" , "min-height": "100px" });
    	$('.grid-notfull').css({"max-width": "1400px", "margin": "0 auto" , "padding": "0 50px"});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'grid_layout_notfull');
    #1490964

    can we influence the image shown in the ajax preview ( that img insided avia-gallery-big ) – it seems to use the recalculated “large” image.
    But as you know this might be bigger in file size than the original uploaded image!
    I can not find a filter to adjust it.

    or could we influence it by
    $params['preview_size'] = apply_filters( 'avf_ajax_preview_image_size', 'gallery' );

    i can find this in portfolio.php

    //	create array with responsive info for lightbox
    	$img = Av_Responsive_Images()->responsive_image_src( $attachment->ID, 'large' );

    bring it to full will often reduce file-size – as you know that Enfold standard compression leads to bigger file-sizes on large image.

    ok – i found the place to change in gallery.php (line 757)
    $prev = wp_get_attachment_image_src( $attachment->ID, $preview_size );

    if we would use :
    $prev = wp_get_attachment_image_src( $attachment->ID, 'full' );

    looking to his page f.e.:
    the krebs-treppen-systeme-gelaender-system30-3.jpg is 121kb
    but krebs-treppen-systeme-gelaender-system30-3-1030×839.jpg is 268kb

    the whole page got over 112MB images – and could be reduced to a half size.

    you can find the defintions of standard icons on enfold/includes/config-enfold/init-base-data.php

    Easy Slider is on default using:

    'svg__next_big'  	=> array( 'font' => 'svg_entypo-fontello', 'icon' => 'right-open-big' ),
    'svg__prev_big'  	=> array( 'font' => 'svg_entypo-fontello', 'icon' => 'left-open-big' ),

    The Filter you can use to change these icons is: avf_default_icons

    you can use it like this in your child-theme functions.php:

    function avia_replace_default_icons($icons){
    // e.g.: changed by uploaded svg files - using the ID's and the font-name is svg_wp-media-library
    	$icons['svg__prev_big'] =  array( 'font' =>'svg_wp-media-library', 'icon' => '50913');
    	$icons['svg__next_big'] =  array( 'font' =>'svg_wp-media-library', 'icon' => '50591');     
    	return $icons;
    }
    add_filter('avf_default_icons','avia_replace_default_icons', 10, 1);
    


    but
    : What is the font-name of your uploaded icon-set

    you find that information on :

    now f.e. if you like to replace these standard icons by icons of the iconset : medical

    function avia_replace_default_icons($icons){
    	$icons['svg__prev_big'] =  array( 'font' =>'medical', 'icon' => 'uf101');
    	$icons['svg__next_big'] =  array( 'font' =>'medical', 'icon' => 'uf135');     
    	return $icons;
    }
    add_filter('avf_default_icons','avia_replace_default_icons', 10, 1);

    you can find those font icon codes f.e. on trying to place that icon you like to have and hover it :
    ( it is the value inside the brackets – without that backslash)

    #1490901

    Hi,

    We adjusted the script slightly and added a condition so it only applies when the screen width is equal to or less than 767px. Please edit the functions.php file and replace the script with this code:

    add_action('wp_footer', function() {
        ?>
        <script>
        jQuery(document).ready(function($) {
            if (window.innerWidth <= 767) {
                $(".avia-fold-unfold-section").each(function() {
                    var $section = $(this);
                    var $container = $section.find(".av-fold-unfold-container");
    
                    if ($container.length) {
                        $container.css({
                            "max-height": "none",
                            "transition": "none"
                        }).removeClass("folded").addClass("unfolded");
                    }
    
                    var $buttonWrapper = $section.find(".av-fold-button-wrapper");
    
                    if ($buttonWrapper.length) {
                        $buttonWrapper.css("display", "none");
                    }
                });
            }
        });
        </script>
        <?php
    }, 999);
    

    Best regards,
    Ismael

    #1490822
    felix_frank
    Participant

    Hallo zusammen!

    Ich habe die Schritte wie in https://kriesi.at/support/topic/pop-up-lightbox/#post-1429407 beschrieben umgesetzt und dann den Shortcode von einem Formular eingefügt. Mein Ziel ist es, ein Formular in einem Popup anzuzeigen, wenn man auf einen Button klickt.

    Also:

    
    function magnific_popup_with_no_scroll_and_button() { ?>
      <script>
    (function($) {
      $(window).on('load', function(){
    	$('.open-popup-button a').addClass('open-popup-link');
        $('.open-popup-link').addClass('no-scroll');
        $('.open-popup-link').magnificPopup({
          type:'inline',
          midClick: true,
          callbacks: {
            beforeOpen: function () {
              $('body').css("overflow-y", "hidden");
            },
            close: function() {
              $('body').css("overflow-y", "auto");
            },
          },
        });
      });
      })(jQuery);
    </script>
      <?php
    }
    add_action( 'wp_footer', 'magnific_popup_with_no_scroll_and_button', 99 );
    

    Das in die functions.php eingesetzt.

    Eine Code-Box mit folgendem Inhalt erstellt:

    
    <div id="open-popup" class="popup mfp-hide">
    <p>[av_layout_template template_id='popform']</p>
    </div>
    

    Und auch das im Quick-CSS hinzugefügt:

    
    .popup {
    position: relative;
    background: #FFF;
    padding: 20px;
    width: auto;
    max-width: 500px;
    margin: 20px auto;
    }
    

    Weil es nicht funktioniert hat habe ich auch das noch hinzugefügt:

    
    add_filter('avia_allow_shortcodes_in_codeblock', '__return_true');
    add_filter('avf_alb_support_modal_templates', '__return_true');
    

    Leider funktioniert es nicht. Es öffnet sich ein Modal aber darin steht nur der Shortcode. Ich bin ratlos. Kann mir bitte jemand dabei helfen das hinzubekommen.

    Link zur Testseite im PC.

    #1490801

    Hi,

    The filter we recommended was placed in the style.css file instead of the functions.php file. We removed it and added the following script instead. The text will still display with a slight delay, but the transition should now be disabled.

    add_action('wp_footer', function() {
        ?>
        <script>
        jQuery(document).ready(function($) {
            $(".avia-fold-unfold-section").each(function() {
                var $section = $(this);
                var $container = $section.find(".av-fold-unfold-container");
    
                if ($container.length) {
                    $container.css({
                        "max-height": "none",
                        "transition": "none"
                    }).removeClass("folded").addClass("unfolded");
                }
    
                var $buttonWrapper = $section.find(".av-fold-button-wrapper");
    
                if ($buttonWrapper.length) {
                    $buttonWrapper.css("display", "none");
                }
            });
        });
        </script>
        <?php
    }, 999);
    
    

    We also edited the modification in the Quick CSS field.

    @media only screen and (max-width: 768px) {
      .av-fold-unfold-container {
        max-height: none !important;
        transition: none !important;
        opacity: 1 !important;
      }
    
      .avia-fold-unfold-section .av-fold-button-wrapper,
      .av-fold-button-container {
        display: none !important;
      }
    
      #top .avia-fold-unfold-section .av-fold-unfold-container:after {
        display: none !important;
      }
    
      .avia-fold-init,
      .avia-fold-init-done {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
      }
    }
    

    Best regards,
    Ismael

    #1490800

    Edit: here is the solution with working separators on those color-sections

    the color-section that should react like this:
    give a custom class to it: av-video-section
    give a background-color to it that does not disturb your video switch (not white – something that fits to your video content
    place a codeblock element on top of your color-section ( codeblock to content – not as codesnippet)

    <video class="responsive-background-video" 
            autoplay muted loop playsinline
            data-video-mobile="path/to/mobile.mp4"
            data-video-desktop="path/to/desktop.mp4">
        <source src="" type="video/mp4">
    </video>
    

    this to your quick css:

    .responsive #top #wrap_all .avia-section.av-video-section {
      position: relative;
      overflow: hidden; 
      min-height: initial; /* taken from Enfold section setting  */
    }
    .responsive #top #wrap_all .avia-section.av-video-section .container {
      position: relative;
      z-index: 1;
      max-width: 100% !important;
      width: 100% !important;
      padding: 0 !important;
    }  
    .responsive #top #wrap_all .avia-section.av-video-section .responsive-background-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover !important;
      z-index: 0;
      min-height: inherit; /* transfer from Enfold section setting  */
    }
    .responsive #top #wrap_all .avia-section.av-video-section .avia-divider-svg {
      z-index:2;
    }
    .responsive #top #wrap_all .avia-section.av-video-section .avia-divider-svg.avia-to-front {
      z-index:100;
    }

    the snippet for child-theme functions.php

    function custom_responsive_background_video_script() {
    ?>
    <script>
    (function($) {
        "use strict";
    
        $(document).ready(function() {
            $('.responsive-background-video').each(function() {
                const video = this;
                const $video = $(video);
                const source = video.querySelector('source');
                const win = $(window);
                
                // Get video paths from data attributes
                const mobileVideo = $video.data('video-mobile');
                const desktopVideo = $video.data('video-desktop');
                
                if (!mobileVideo || !desktopVideo) return;
                
                function updateVideoSource() {
                    const isMobile = win.width() < 768;
                    const newSrc = isMobile ? mobileVideo : desktopVideo;
                    
                    if (source.src.indexOf(newSrc) === -1) {
                        source.src = newSrc;
                        video.load();
                    }
                }
                
                // Initial load
                updateVideoSource();
                
                // Resize handling
                win.on('debouncedresize', updateVideoSource);
            });
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_responsive_background_video_script', 999);

    see example page with divider : https://webers-testseite.de/background-video/

    #1490730

    I found this in the header.php

    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?> class="<?php echo $html_classes; ?>">
    <head>
    	<script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="eb73297c-1583-47c6-a2fd-5b6c01c438eb" data-blockingmode="auto" type="text/javascript"></script>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <?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();
     }
    
    ?>

    What part should I take out?

    • This reply was modified 5 months, 1 week ago by Munford.
    #1490647
    swatstudio
    Participant

    Hello,

    I get a new website to manage (updates and so on), made by another web agency in 2019.
    The website is currently using an old 4.5.7 Enfold version but they made customizations directly in the Javascript and PHP files of Enfold.
    In fact, they didn’t use a child theme for it.
    So I’d like to compare files with the original 4.5.7 version before updating to the last version.

    Is it possible to get an old 4.5.7 version for me to manage theses customizations ?

    Waiting for your answer,
    Sincerely,
    François

    #1490626
    yalbarzawi
    Participant

    I don’t receive updates for the theme. This is always shown:
    Theme Updates
    No Updates available. You are running the latest version! (4.7.6.3)
    Your PHP version: 7.4.33
    Last successful check was on 2025/10/27 15:13.

    This version has security vulnerabilities and I need to update it. How can I automate this?

    Hey Patrycja,
    Thanks for your question, glad to hear that you have a full backup prepared, including the database, while we don’t expect any issues updating from v4.8.3 to v7.1.3 (lastest version) since Enfold mantins a good backward compatibly, we would note that your PHP version, 7.4.33 is quite old and some plugins (if any) may not work well with PHP v8+ Enfold now uses PHP v8+ as well as WordPress so you should expect to also update this.
    I recommend creating a staging site to test the update on.
    Then on the staging site, disable all plugins including any caching plugin and server caching & the Enfold theme caching in the Performance theme settings.
    Then update to v7.1.3, and reload the site on the frontend using the browser “hard reload” to clear the browser cache. This will help clear the “post-css” files which serve the css background images in the color sections (if used).
    Then update your PHP to v8+, I recommend  the lower end like v8.2 or such, not the “bleeding edge” highest version like v8.5, you can test this later if you wish.
    If you are using a child theme and have modified header.php, footer.php or any other core theme files in the child theme, please save these to your computer and remove them from the child theme, these will be different in the current version & will most likely cause an error when updating.
    When you update, you may not be able to update though the theme panel “update” feature as just about v4.8.3 Envato (Themeforest) changed from the API key to the Token key, so the best approach is to download the latest installable WP version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New, after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue. Then you will see the Theme updated successfully message.
    After updating see our documentation for creating an Envato Token so future updates can be done in the theme panel.
    If you try to update via FTP, do not try to overwrite the theme files, as this will leave old files behind and cause errors, you would need the delete the old theme directory and then upload the new one, using the WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New is the easiest solution.

    Best regards,
    Mike

    Patrycja
    Guest

    Hi Enfold Support Team,
    I’m working on a client’s website and need your guidance before proceeding with a major update.
    Current situation:

    Enfold version: 4.8.3 (last updated around 2020)
    WordPress: 5.9.12
    PHP: 7.4.33
    The site has been running without major updates for approximately 5 years

    What needs to be updated:

    Enfold: 4.8.3 → latest version (6.0+)
    WordPress: 5.9.12 → 6.8.3
    PHP: 7.4.33 → 8.3

    My concerns:
    I’m worried about such a large version jump potentially breaking the website. The site is live and actively used by my client, so I need to minimize any risks and downtime.
    My questions:

    Is it safe to update directly from Enfold 4.8.3 to the latest 6.0+ version, or should I update incrementally through intermediate versions?
    Are there any known breaking changes or compatibility issues between version 4.8.3 and 6.0+ that I should be aware of?
    What is the recommended update sequence? Should I update Enfold first, then WordPress, then PHP?
    Will existing layouts built with Avia Layout Builder continue to work after the update?
    Are there any specific settings, customizations, or files I should backup or document before updating?
    Should I expect any visual or functional changes that might require adjustments after the update?

    I have a full backup prepared, but I want to understand potential issues and the safest approach before starting the update process.
    Thank you very much for your help and guidance!
    Best regards,

    #1490416
    This reply has been marked as private.
    #1490384

    Hi,

    Thank you for the update.

    We adjusted the filter in the functions.php file.

    add_filter( 'avia_blog_post_query', 'ava_blog_post_query_mod', 10, 2 );
    
    function ava_blog_post_query_mod( $query, $params ) {
        if (is_page(1230)) {
            $query['orderby'] = 'date';
            $query['order']   = 'DESC';
        }
    
        if (is_page(574)) {
            $query['orderby'] = 'modified';
            $query['order']   = 'DESC';
        }
    
        return $query;
    }
    

    Screenshot-2025-10-20-at-12-53-18-PM

    Best regards,
    Ismael

Viewing 30 results - 121 through 150 (of 16,887 total)