Viewing 30 results - 931 through 960 (of 16,891 total)
  • Author
    Search Results
  • #1430092
    Chip Jones
    Guest

    Hi there, had two questions… one, will Enfold continue to be updated in the future? (I am having a bad experience with another theme builder). Two, will Enfold be update to support WooCommerce 8.2+ and if so, will it also support the required PHP update to PHP 7.4? Thank You!

    Hi Vanwynsberghe Bart,

    You cannot update the theme anymore using API key with Enfold 4.0.7, you’ll need to use a personal token for that, in order to generate it, please follow the instructions in our documentation: https://kriesi.at/documentation/enfold/theme-registration/#how-to-generate-a-envato-personal-token

    Please do the following process:

    First make a backup:
    – Site Backup: https://kriesi.at/documentation/enfold/backup-wordpress-site/
    – Theme Settings Backup: https://kriesi.at/documentation/enfold/backup-theme-settings/

    Option 1: Use Envato Market to update your site
    – link: https://envato.com/market-plugin/

    Option 2: Update manually
    1. Login to ThemeForest and download the Enfold theme, right-click over the downloaded zip file and extract/unzip it.
    2. It should generate a new folder, open it and look for the enfold folder
    3. Right-click the enfold folder then zip it, here’s a tutorial on how to create a zip file in windows: https://www.howtogeek.com/668409/how-to-zip-and-unzip-files-on-windows-10/ (this should create enfold.zip
    4. Log in to WordPress as and Admin.
    5. Install and activate a maintenance plugin and put your site in Maintenance mode.
    6. Go to Appearance > Themes, switch to a default WordPress theme like TwentyTwenty then delete Enfold.
    7. Click on the ADD NEW button.
    8. Click on the UPLOAD THEME button.
    9. Click BROWSE and choose enfold.zip file
    10. Click the INSTALL NOW button and switch to Enfold or your child theme.
    11. Remove the maintenance mode then deactivate and remove the maintenance plugin.

    Then register the theme by following the instructions in https://kriesi.at/documentation/enfold/theme-registration/
    Once this is done, the next time you update, you’ll only need to go to Enfold > Theme Updates and click on the Update button.

    Once the latest version of Enfold is installed and activated, update your PHP version from 7.4 to 8.2.

    Hope it helps.

    Best regards,
    Nikko

    Vanwynsberghe Bart
    Guest

    Hi,
    I’m using the Envato Forrest Theme for 4 years now and it always served my real well.
    Yet, lately I have 2 problems:.
    I try to contact the author of the Envato Enfold Theme to ask my 2 questions and hope this is te right place to be therefor:.

    1. If I update the PHP from 7.4 to 8.2, then I can no longer get acces to my dashbaord.
    I have try to ugrade the theme versoin 4.0.7.but that doesn’t works. If I set the PHP back to 7.4 I get back access to my Dashboard.

    2. I can not change any images anymore on my wordpress website (Enfold Theme). Also putting a new picture into a (new) element is not working anymore.

    I had a 1 houre chat with Vimexx (my Dutch hoster) and they told me to send you this faultmessage:

    [lsapi:error] [pid 55953:tid 140055343503104] [client 185.220.173.16:60547] [host http://www.barthsmusic.eu] Backend fatal error: PHP Fatal error: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /home/barthsm/domains/barthsmusic.eu/public_html/wp-content/themes/enfold/functions-enfold.php on line 265n,

    I do hope sincerely that you can help me.

    Best regards,
    Bart

    #1429821

    @Guenni007 thank you! And here I was looking to add more code to the functions.php ¯\_(ツ)_/¯
    Thanks again!

    #1429787

    In reply to: Align Buttons

    Hi,

    Thank you for the screenshot.

    We edited the script in the functions.php file to enable cells to readjust when the browser size changes. Here is the updated code.

    
    function grid_row_special_headings_and_text_blocks_equal_heights() { ?>
        <script>
        (function($){
            function resizeGridCells()
            {
                var width = $(window).width();
                if (width > 767) {
                    $('.page-id-3083 .av-layout-grid-container').each(function(){  
                        var $specialHeading = $('.flex_cell .av-special-heading-tag',this);
                        var $textBlock = $('.flex_cell .av_textblock_section p',this);
                        var specialHeadingHeight = Math.max.apply(Math, $specialHeading.map(function(){
                            return $(this).height();
                        }).get());
    
                        var textBlockHeight = Math.max.apply(Math, $textBlock.map(function(){
                            return $(this).height();
                        }).get());
    
                        $specialHeading.height(specialHeadingHeight);
                        $textBlock.height(textBlockHeight);
                    });
                } 
            }
        
            $(window).on('debouncedresize', function() {
                resizeGridCells();
            });
    
            resizeGridCells();
        })(jQuery);
      </script>
        <?php
      }
      add_action( 'wp_footer', 'grid_row_special_headings_and_text_blocks_equal_heights', 99 );

    Best regards,
    Ismael

    #1429748

    Hey Francesco,
    Thanks for your patience the file that the report seems to point to: /wp-content/themes/enfold/includes/helper-privacy.php
    is for the theme cookie settings, but it doesn’t look like you are using the theme cookie settings on your site, it looks like you are using a third party cookie manager.
    The cookie PHPSESSID is the default WordPress session cookie.
    I would first recommend disabling all of your plugins including your third party cookie manager and check again.
    In another thread the SiteGround support has said that the WPML plugin uses the WordPress PHPSESSID and this leads to the SiteGround cache to fail, so your third party cookie manager, or another plugin may also be doing the same on your site.
    Since you are not using the Theme cookie settings the file above would not be loaded, but please check the settings at Enfold Theme Options ▸ Cookie Consent ▸ Cookie Consent Message to ensure that you have this disabled, perhaps you are using a combination of the two that I don’t know about.
    I would also point out that in another thread the SiteGround support has said that the files at:
    \enfold\config-layerslider\LayerSlider\assets\classes\class.ls.exportutil.php ▸ line 178
    \enfold\framework\php\wordpress-importer\avia-export-class.php ▸ line 215
    contain the line header(‘Pragma: no-cache’); and this also causes the SG cache to fail, but these files are only loaded in the backend when a admin exports the theme settings, so this would not be loaded on the frontend or be a part of a cache.
    You can try to manually remove these line to see if this helps your situation.
    If it does then perhaps the SG cache is adding backend files to the cache in error.
    Another solution that one user found helpful was to add this code to the child theme functions.php, which is from this Stack Exchange solution to override the WordPress default PHPSESSID to solve issues with a Varnish server.

    function varnish_safe_http_headers() {
        header( 'X-UA-Compatible: IE=edge,chrome=1' );
        session_cache_limiter('');
        header("Cache-Control: public, s-maxage=120");
      if( !session_id() )
      {
        session_start();
      }
    }
    add_action( 'send_headers', 'varnish_safe_http_headers' );

    Hopefully one of these suggestions will help you, it’s kind of a hard issue because each SiteGround support tech points to a different cause, but they all seem to point to the WordPress default PHPSESSID breaking the SG cache.

    Best regards,
    Mike

    #1429720

    Topic: PHP Version

    in forum Enfold
    Schock-Fensterwerk
    Participant

    Hallo, wir haben aktuell das Problem, dass unsere WordPress-Seite und einige Plugins ein PHP-Update fordern. Egal auf welche Version (8.1, 8.2) wir updaten kann die Seite nicht mehr geladen werden. Laut unserem Hosting-Anbieter liegt das an fehlender Kompatibilität des Themes.

    Word-Press-Version: 6.4.2
    PHP-Version aktuell: 7.3.33
    Enfold-Version: 4.5.6

    Laut unserer Seite ist bis auf die PHP-Version nun alles auf aktuellem Stand. Auf welche PHP-Version können wir updaten bzw. was können wir tun, damit wir PHP updaten können und unsere Website trotzdem funktioniert?

    Vielen Dank vorab

    #1429709

    In reply to: cache not working

    Hi,
    As I read their report he PHPSESSID cookie is defined by the wp-content/plugins/sitepress-multilingual-cms/
    So I guess your SG cache is not campatable with the WPML plugin and you should disable it.
    They say that they found a no-cache in the /wordpress-importer/avia-export-class.php but this is only used when you export the theme settings, these files are only loaded on the backend when you perform an export of the theme files. If you want to manually remove this from the theme you can by editing the files below, but the theme export feature may not work correctly and you will need to edit these files after each update. As it stands now SG says you won’t be able to use a cookie notification, or the WPML plugin and you will need to modify the export feature, in order to use their cache. Perhaps you should look into a cache plugin like WPRocket or WP Fastest Cache, neither of these have this issue with WPML or Enfold.

    If you want to manually modify your files look for header(‘Pragma: no-cache’); in:
    \enfold\config-layerslider\LayerSlider\assets\classes\class.ls.exportutil.php ▸ line 178
    \enfold\framework\php\wordpress-importer\avia-export-class.php ▸ line 215

    Best regards,
    Mike

    goldengate415
    Participant

    Hi there,
    You may remember this thread I created and that we worked on 5 years ago. It comes up #1 on Google search when looking for ways to reduce the wordpress media library size:
    https://kriesi.at/support/topic/photos-taking-up-a-huge-amount-of-space-on-my-site-storage-anything-i-can-do/

    I am once again bumping up against my 10 gig limit and realize that i really use very few of the sizes on my site. I would like to take a look at this but I see that at least one of the plugins involved is no longer supported and has some fairly signifiant issues with PHP 7+ according to support forums that are no longer monitored. :( Having said that, I still have the Simple Image Sizes plugin running on my site and it does appear I can use it to further reduce the number of photo size options.

    Has Enfold added anything in theme functionality to make it easier to seelct the default photo sizes or do we still need to do this in functions.php or the Simple Image Sizes Plugin? Any further advice before I embark on this?

    Thanks!
    Rob

    • This topic was modified 2 years, 3 months ago by goldengate415.
    #1429551

    In reply to: cache not working

    Hi,
    The function that they posted:

    function varnish_safe_http_headers() {
        header( 'X-UA-Compatible: IE=edge,chrome=1' );
        session_cache_limiter('');
        header("Cache-Control: public, s-maxage=120");
      if( !session_id() )
      {
        session_start();
      }
    }
    add_action( 'send_headers', 'varnish_safe_http_headers' );

    is the function that you added from this post above.
    Which is from this Stack Exchange solution to override the WordPress default PHPSESSID to solve issues with a Varnish server.

    Best regards,
    Mike

    #1429482

    In reply to: Align Buttons

    Hey ballindigital,
    Thank you for the link to your site, when I check your page on my desktop the height of the elements are the same and so the buttons are lined up, but I believe that your screen size is smaller, so we need to set the height of the elements at certain screen sizes when the content length causes the text to wrap into a new line. I see you are using three grid rows with two cells each, and in each is a image, special heading, text block and a button. So we need to set the height for all special headings and text blocks to the same.
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function grid_row_special_headings_and_text_blocks_equal_heights() { ?>
      <script>
    (function($){
    	var width = $(window).width();
      	if (width > 767) {
      $('.page-id-3083 .av-layout-grid-container').each(function(){  
         var $specialHeading = $('.flex_cell .av-special-heading-tag',this);
         var $textBlock = $('.flex_cell .av_textblock_section p',this);
         var specialHeadingHeight = Math.max.apply(Math, $specialHeading.map(function(){
             return $(this).height();
         }).get());
         var textBlockHeight = Math.max.apply(Math, $textBlock.map(function(){
             return $(this).height();
         }).get());
         $specialHeading.height(specialHeadingHeight);
         $textBlock.height(textBlockHeight);
      });
    } else {}
    })(jQuery);
    </script>
      <?php
    }
    add_action( 'wp_footer', 'grid_row_special_headings_and_text_blocks_equal_heights', 99 );

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.

    Best regards,
    Mike

    #1429478

    In reply to: Pop-Up/LIghtbox

    Hi,
    To enable a button to open the popup, add a button to your page and set the link URL to #open-popup:
    Enfold_Support_4357.jpeg
    then go to Advanced ▸ Developer Settings and add the custom class open-popup-button:
    Enfold_Support_4359.jpeg
    then update the popup script in your child theme functions.php to this:

    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 );

    then you can use both text links and buttons for your popup like in the example:
    Enfold_Support_4361.jpeg
    Enfold_Support_4363.jpeg

    Best regards,
    Mike

    #1429408

    on docu – you can find a possibility not to use for those images a different source :
    see https://kriesi.at/documentation/enfold/magazine/ and search for: image_size

    maybe we can use the avf_magazine_defaults filter to change that. … ;)
    put this to your child-theme functions.php:

    
    function avia_magazine_thumbnail($atts, $magazine){
    	$atts['image_size']['small'] = 'square';
    	return $atts;
    }
    add_filter('avf_magazine_settings', 'avia_magazine_thumbnail', 10, 2);
    #1429265
    Maxime
    Guest

    Hi!

    I’ve been hired recently to update a website that’s running under your theme.
    I’ve updated everything but it seems that the theme prevent me to update the php version in order to run some other plugins. I cannot create new pages or article without critical errors under php 7.3 or above.
    could you please tell me which php version this theme is compatible with? also, if not compatible >= php 7.3 could you please send me the udpated version ?

    many thanks!!
    maxime

    #1429223

    Hey Jody,

    Thank you for the inquiry.

    You can use the following css code to adjust the style of the placeholder text.

    ::-webkit-input-placeholder { /* WebKit, Blink, Edge */
        color:    #909;
    }
    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
       color:    #909;
       opacity:  1;
    }
    ::-moz-placeholder { /* Mozilla Firefox 19+ */
       color:    #909;
       opacity:  1;
    }
    :-ms-input-placeholder { /* Internet Explorer 10-11 */
       color:    #909;
    }
    ::-ms-input-placeholder { /* Microsoft Edge */
       color:    #909;
    }
    
    ::placeholder { /* Most modern browsers support this now. */
       color:    #909;
    }

    And to change the placeholder text itself, add this code in the functions.php file.

    
    /* AJAX SEARCH */
    if ( ! function_exists( 'avia_append_search_nav_mod' ) ) {
        //first append search item to main menu
        remove_filter( 'wp_nav_menu_items', 'avia_append_search_nav', 9997, 2 );
        remove_filter( 'avf_fallback_menu_items', 'avia_append_search_nav', 9997, 2 );
        add_filter( 'wp_nav_menu_items', 'avia_append_search_nav_mod', 9997, 2 );
        add_filter( 'avf_fallback_menu_items', 'avia_append_search_nav_mod', 9997, 2 );
    
        /**
         *
         *
         * @param string $items
         * @param array $args
         * @return string
         */
        function avia_append_search_nav_mod ( $items, $args )
        {
            if ( avia_get_option( 'header_searchicon', 'header_searchicon' ) != 'header_searchicon' ) {
                return $items;
            }
    
            if ( avia_get_option( 'header_position', 'header_top' ) != 'header_top' ) {
                return $items;
            }
    
            if ( ( is_object( $args ) && $args->theme_location == 'avia') || ( is_string( $args ) && $args = 'fallback_menu' ) ) {
                ob_start();
                get_search_form();
                $form = ob_get_clean();
    
                $form = str_replace( '<form ', '<form role="search" ', $form );
                $form = htmlspecialchars( $form );
    
                /**
                 * Avoid duplicate indexing or empty search page
                 *
                 * @since 4.5.3
                 * @param string $items
                 * @param array $args
                 * @return string
                 */
                $nofollow = apply_filters( 'avf_nav_search_icon_nofollow', 'rel="nofollow"', $items, $args );
    
                $aria_label = __( 'Search', 'avia_framework' );
                $aria_label = apply_filters( 'avf_nav_search_aria_label', $aria_label, $items, $args );
    
                $items .=	'
     	<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown menu-item-avia-special" role="menuitem">';
                $items .=		'<a aria-label="' . $aria_label . '" href="?s=" '. $nofollow . ' data-avia-search-tooltip="' . $form . '" ' . av_icon_string( 'search', false ) . '>';
                $items .=			'<span class="avia_hidden_link_text">' . __( 'ADJUST THIS TEXT', 'avia_framework' ) . '</span>';
                $items .=		'</a>';
                $items .=	'</li>
    ';
            }
    
            return $items;
        }
    }

    Replace “ADJUST THIS TEXT” with your own text.

    Best regards,
    Ismael

    #1429117

    Hi,

    Great, I’m glad that @guenni007 could help you out. The calculation basically says that the max height should be the height of the browser minus 20px. https://www.w3schools.com/cssref/css_units.php

    Best regards,
    Rikard

    Hi,
    The code Ismael posted above worked for me changing the backend “portfolio” labels to “sites” after I adjusted it some:

    add_action('after_setup_theme', function() {
    	remove_action('init', 'portfolio_register');
    });
    
    add_action('init', 'portfolio_register_mod');
    function portfolio_register_mod()
    {
    	global $avia_config;
    
    	$labels = array(
    		'name' => _x('sites', 'post type general name','avia_framework'),
    		'singular_name' => _x('sites', 'post type singular name','avia_framework'),
    		'add_new' => _x('Add New', 'sites','avia_framework'),
    		'add_new_item' => __('Add New Sites Entry','avia_framework'),
    		'edit_item' => __('Edit Sites Entry','avia_framework'),
    		'new_item' => __('New Sites Entry','avia_framework'),
    		'view_item' => __('View Sites Entry','avia_framework'),
    		'search_items' => __('Search Sites Entries','avia_framework'),
    		'not_found' =>  __('No Sites Entries found','avia_framework'),
    		'not_found_in_trash' => __('No Sites Entries found in Trash','avia_framework'),
    		'parent_item_colon' => ''
    	);
    
        $permalinks = get_option('avia_permalink_settings');
        if(!$permalinks) $permalinks = array();
    
        $permalinks['portfolio_permalink_base'] = empty($permalinks['portfolio_permalink_base']) ? __('sites', 'avia_framework') : $permalinks['portfolio_permalink_base'];
        $permalinks['portfolio_entries_taxonomy_base'] = empty($permalinks['portfolio_entries_taxonomy_base']) ? __('sites_entries', 'avia_framework') : $permalinks['portfolio_entries_taxonomy_base'];
    
    	$args = array(
    		'labels' => $labels,
    		'public' => true,
    		'show_ui' => true,
    		'capability_type' => 'post',
    		'hierarchical' => false,
    		'rewrite' => array('slug'=>_x($permalinks['portfolio_permalink_base'],'URL slug','avia_framework'), 'with_front'=>true),
    		'query_var' => true,
    		'show_in_nav_menus'=> true,
    		'taxonomies' => array('post_tag'),
    		'supports' => array('title','thumbnail','excerpt','editor','comments')
    	);
    
    	$args = apply_filters('avf_portfolio_cpt_args', $args);
    	$avia_config['custom_post']['portfolio']['args'] = $args;
    
    	register_post_type( 'portfolio' , $args );
    
    	$tax_args = array(
    		"hierarchical" => true,
    		"label" => "Sites Categories",
    		"singular_label" => "Sites Category",
    		"rewrite" => array('slug'=>_x($permalinks['portfolio_entries_taxonomy_base'],'URL slug','avia_framework'), 'with_front'=>true),
    		"query_var" => true
    	);
    
     	$avia_config['custom_taxonomy']['portfolio']['portfolio_entries']['args'] = $tax_args;
    
    	register_taxonomy("portfolio_entries", array("portfolio"), $tax_args);
    
    	//deactivate the avia_flush_rewrites() function - not required because we rely on the default wordpress permalink settings
    	remove_action('wp_loaded', 'avia_flush_rewrites');
    }

    but to change the permalinks from ‘portfolio-items’ to ‘sites’ you will need to adjust the permalink field and then resave the permalinks:
    Enfold_Support_4262.jpeg
    then the database will be updated:
    Enfold_Support_4264.jpeg
    You will need to do this because you can not overwrite the register-portfolio.php file in the child theme and the original file still add the portfolio function, otherwise you will have your new CPT and the portfolio CPT both showing in the permalinks options.
    Or you can try laptophobo’s plugin option.

    Best regards,
    Mike

    #1428870

    Hello Guenni007
    Thank you very much for your help

    I have now adjusted the functions.php

    Yes, your suggestion is correct
    when I open Portfolio
    I can now only browse through the individual categories.

    you can close this request

    kind regards
    Franz

    #1428869

    first tell me if my suggestion from above is correct.
    it belongs to the post-navigation left/right arrows? If you have opened a single post – there are left and right arrows to navigate to the other posts.
    And now you only want to reach other posts inside the same category ?

    And you put that filter to the child-theme functions.php ?

    try : maybe the is_fullwidth setting is only missing

    
    function enfold_customization_postnav($settings){
      $settings['is_fullwidth'] = false;
      $settings['skip_output'] = false;
      $settings['same_category'] = true;
      return $settings;
    }
    add_filter('avf_post_nav_settings','enfold_customization_postnav', 10, 1);
    

    here is the github part showing the long version with comments on that filter:
    https://github.com/KriesiMedia/enfold-library/commit/969ff37a8219fee349bb94fcfdbd28fd02d22713

    #1428867

    hello Guenni007
    I have inserted the filter into the functions.php
    Unfortunately it does not work !

    how is the other way

    thanks
    kind regards
    Franz

    #1428792

    Hey MikeTandySwag,
    Thanks for the mockup, I recommend using the Masonry Element with the Display Title and Excerpt and Display as centered overlay (overlays the image) selected:
    Enfold_Support_4206.jpeg
    then under styling choose a Large Gap and Perfect Grid:
    Enfold_Support_4208.jpeg
    Then under the Advanced tab ▸ Developer Settigs add the custom class custom-masonry-with-button, note that you do not add the class dot:
    Enfold_Support_4210.jpeg
    For my example I choose to use two columns and only show four posts.
    Then add this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    .custom-masonry-with-button .av-masonry-date {
    	display: none;
    }
    #top .custom-masonry-with-button.av-caption-style-overlay .av-masonry-item-with-image .av-inner-masonry-content-pos {
        vertical-align: bottom;
    }

    Then add this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    add_filter('avf_masonry_loop_prepare','avia_change_default_link', 10, 2);
    function avia_change_default_link($loop, $entries)
    {
    	foreach($entries->posts as $key => $entry)
        {
            if($entry->post_type == "post")
            {
                $more 	 		 =  "<br /><span class='custom-masonry-more-button avia-button avia-size-x-large avia-position-center avia-color-light'>".__('Read more','avia_framework')."</span>";
    			$loop['content'] =   avia_backend_truncate($entry->post_content, apply_filters( 'avf_masonry_excerpt_length' , 0) , apply_filters( 'avf_masonry_excerpt_delimiter' , ""), "", true, '') . $more;
            }
        }
    
        return $loop;
    }

    If you are not using a child theme I recommend the WPcode plugin this plugin supports PHP code snippets, JavaScript code snippets, & CSS code snippets, for this code you would choose the PHP snippet:
    Enfold_Support_4213.jpeg
    This is the expected results:
    Enfold_Support_4215.jpeg
    Please give this a try.

    Best regards,
    Mike

    #1428713

    Hi,

    Thank you for the update.

    PHP Warning: Use of undefined constant \xe2\x80\x98ALTERNATE_WP_CRON\xe2\x80\x99

    We didn’t find any errors related to the theme. Most of the fatal errors are from the plugin bwp-recaptcha. The constant ALTERNATE_WP_CRON is also not generated by the theme, so this was probably added to the wp-config.php file manually.

    This is the fatal error generated by the bwp-recaptcha plugin.

    mod_fcgid: stderr: thrown in /var/www/vhosts/doshacen1.com.mx/httpsdocs/wp-content/plugins/bwp-recaptcha/bwp-recaptcha.php on line 40
    

    You may need to contact the plugin developers for more info.

    Best regards,
    Ismael

    #1428670
    Alexandre Schweitzer
    Guest

    Hi,

    I’m a freelance web developer and one of my client has an Enfold Theme bought about 7 years ago by another person. As you can guess, I need to update his website and it means update his theme as is actually run in 4.1.2 version. I’m stuck with the PHP update as long as I will not update the theme.

    I don’t have the API key and other information about the Themeforest account that bought the theme so I’m looking for another solution to find the latest update and apply it on my client’s website.

    Could you help me with that ?

    Thank you very much.

    Best Regards,

    Alexandre.S

    #1428652

    Hey Monique,

    Thank you for the inquiry.

    Please temporarily edit the enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php and remove this code around line 672.

    
    			$duplicate  = '<a href="' . $notify_url . '" aria-label="' . esc_attr__( 'Make a duplicate from this element template', 'avia_framework' ) . '" rel="permalink">';
    			$duplicate .=		esc_html__( 'Duplicate', 'avia_framework' );
    			$duplicate .= '</a>';
    
    			$actions['duplicate'] = $duplicate;
    

    Let us know if this removes the Duplicate button.

    Best regards,
    Ismael

    #1428589

    Hi,
    Typically when you add a new social profile following the documentation this is the correct code snippet that you should add to your child theme functions.php:

    
    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons['line'] = array( 'font' =>'icomoon', 'icon' => 'ue900');
    return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    
    // Add new icon as an option for social icons
    function avia_add_custom_social_icon($icons) {
    $icons['Line'] = 'line';
    return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    // Add new icon to sharebox
    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args){
        $tiktok = array('line' => array("encode"=>true, "encode_urls"=>false, "pattern" => "https://line.me/", 'label' => __("Share on Line",'avia_framework')));
        $args = array_merge($line, $args);
        return $args;
    }

    and then you would choose the new social profile from the options”
    Enfold_Support_4185.jpeg
    and then it will show on the front end:
    Enfold_Support_4187.jpeg
    I have done this for you.

    Best regards,
    Mike

    #1428573

    oh wow – did not see that you are only asking for the logo hide/show !
    so forget about my solution – which is meant for hide/show complete header – sorry

    _________ so this is not for your problem ____________

    yes, this is a possibility – but has the disadvantage that this class (header-scrolled) is only removed if you are in the top position on the page. This means that the header only appears again then. If you scroll-direction is up at the bottom (or middle) of a page, nothing happens.
    It would therefore be better to have a class that is removed as soon as a certain distance is scrolled back – and thus restores the header visibility.

    This is a function adding a class (hide-header) depending on scroll distance.

    function hide_header(){
    ?>
    <script>
    (function($){
    
      'use strict';
      var c, 
      currentScrollTop = 0,
      header = $('#header');
    
       $(window).on('scroll', function () {
          var a = $(window).scrollTop();
          var b = header.height();
          currentScrollTop = a;
    
          if (c < currentScrollTop && a > b  ) {
            header.addClass("hide-header");
          } else if (c > currentScrollTop && !(a <= b)) {
            header.removeClass("hide-header");
          }
          c = currentScrollTop;
      });
    })(jQuery);   
    </script>
    <?php
    }
    add_action('wp_footer', 'hide_header');
    

    The css you need on that must reflect your header height you set on Enfold options. And the options – f.e. if you have a top-menu or phone-info field above the header. And if it scrolls away.

    The trick now is to shift the header in y-direction above the viewport.
    And because we do not want to do that if the burger menu is opend – we exclaim it bei not selector ( :not(.av-burger-overlay-active) )
    The media query settings are individual – and you have to adjust it to your needs – if you got pages with transparency headers – maybe there had to be different padding-top settings of #main.

    css – first settings:

    
    .responsive:not(.av-burger-overlay-active) #header {
      top: 0px;
      -webkit-transition: transform 0.5s ease-in;
      transition: transform 0.5s ease-in;
    }
    
    .responsive:not(.av-burger-overlay-active) #header.hide-header {
      -webkit-transition: transform 0.5s ease-in;
      transition: transform 0.5s ease-in;
    }
    
    .responsive:not(.av-burger-overlay-active) #main {
      top: 0px;
      -webkit-transition: padding-top 0.5s ease-in;
      transition: padding-top 0.5s ease-in;
    }
    
    .responsive.av-burger-overlay-active #header {
      position: fixed !important;
    }
    
    @media only screen and (min-width: 990px) {
      .responsive:not(.av-burger-overlay-active) #header.hide-header {
         transform: translateY(-116px);
      }
    }
    
    @media only screen and (min-width: 768px) and (max-width: 989px) {
      .responsive:not(.av-burger-overlay-active) #header {
        position: fixed !important;
        top: 0;
      }
      .responsive:not(.av-burger-overlay-active) #header.hide-header {
         transform: translateY(-90px);
      }
      .responsive #top #main {
         padding-top: 90px !important;
      }
    }
    
    @media only screen and (max-width: 767px) {
      .responsive:not(.av-burger-overlay-active) #header {
        position: fixed !important;
        top: 0;
      }
      .responsive:not(.av-burger-overlay-active) #header.hide-header {
         transform: translateY(-80px);
      }
      .responsive #top #main {
         padding-top: 80px !important;
      }
    }
    #1428535

    In reply to: Author

    Hi,
    That is strange… I see that you are using a plugin called Co-Authors Plus with the description:
    Allows multiple authors to be assigned to a post.
    Enfold_Support_4179.jpeg
    This plugin is what allows you to add co-authors to posts.
    We are limited to support for third-party plugins, but I tested this plugin on my test site and tested a code snippet that the plugin recommends to show all authors:

    add_filter( 'the_author_posts_link', function( $markup ) {
    	if ( ! function_exists( 'coauthors_posts_links' ) ) {
    		return $markup;
    	}
    
    	ob_start();
    	coauthors_posts_links();
    	$output = ob_get_contents();
    	ob_end_clean();
    	return $output;
    } );

    And it changed the default single author name and link to show the co-author also:
    Enfold_Support_4181.jpeg
    If you are not going to use a child theme on your site, I recommend the WPcode plugin this plugin supports PHP code snippets, JavaScript code snippets, & CSS code snippets for your customizations.
    Try adding the above snippet in a new WP Code snippet and ensure that you use the PHP Snippet option:
    Enfold_Support_4183.jpeg

    Best regards,
    Mike

    #1428455
    Flashpaper
    Participant

    I’ve got the theme license intact and just realized the theme version is rather old. Yet, when I manually check for an update to the theme it returns a message that 4.8.6.2 is the latest. Any ideas on how to correct that? We’re running WordPress 6.4.2, PHP 7.4.33

    Dear Mike,

    the web hoster already answered. They couldn’t find any problems on the server side and recommended me to create a phpinfo.php on the web space to find all the configurations that are running on the web server. I did that, but I have no idea where to search on this phpinfo-page for clues that could have to do with our problem. Do you – or shall I send you the file?

    With the Chrome DevTools I noticed under sources some instances for js, having to do with jQuery (I assume… I am not a programmer):
    jquery
    ui
    core.min.js?ver=1.13.2
    jquery-migrate.min.js?ver=3.4.1
    jquery.min.js?ver=3.7.1
    Does this info make any sense to you?

    Another thing that came up to my mind is that this website became live a couple of weeks ago. Perhaps its transfer might be related to the menu issue? The plugin Better Search Replace was used to run a search/replace on the database. The root directory of the domain was set to the subdirectory with all installations.

    BR, C

    #1428369

    Hi Mike, thanks for your time. I’ve changed PHP versions to 8.0, 8.2 and 8.3 (can’t go back to 7.4 now) and it didn’t help. It’s 8.2 now (as recommended).

    However, I decided to rebuild the home page from the scratch and created the New Home Page. I was adding elements starting from the Fullwidth Easy slider and everything was working perfectly until the last grid row at the bottom of the page, which broke the layout and responsiveness of the footer. It happens even when adding a new empty grid row from layout elements menu of Avia builder. So I thought it must be the grid row element that is responsible for that.
    HOWEVER, when I remove the Fullwidth Easy Slider from the top of the page, then the grid row at the bottom does not break the layout or responsiveness! BUT it makes the grid row directly above it not going full width when changing to tablet/mobile resolution! That leaves me completely puzzled – it looks like some of those elements TOGETHER cannot work correctly.

    You can try this on ‘Kriesi test page’ or ‘New Home Page’ – I’ve saved the top slider as ‘001 Old slider’ and bottom grid row is ‘006 grid row’ in Templates, so you can just remove and add them easily to see how they break the layout and responsiveness together, but when one is deleted everything goes back to normal.

    And what is even more puzzling, when I add the same Fullwidth Easy Slider from the template at the bottom of the page (see New Home Page) it displays differently than at the top, when it’s preceded by that grid row, (colours and font sizes are all wrong, despite the same settings in the slider options). BUT when I delete that 006 grid row which is preceding it, then the slider at the bottom displays correctly, and so does the footer and it’s responsive as it should be. So really that grid row looks to be a problem, but I’ve got no idea why! (check the New Home Page first and then remove the grid row above the bottom slider, you will see the difference).

    I haven’t tried deleting other layout elements, it’s actually enough of the mystery to me :) But it happened all the same on a newly created page (‘New Home Page’) with empty grid row added from the menu, so it looks to me like there must be some issue with the theme elements working together in the layout builder, but again it’s just my gut feeling. I haven’t installed imagick, I also don’t think this would cause the problem. However, if you’ve got no other suggestions, I may try this but I wouldn’t like to add unnecessary things on the server side if possible. I also haven’t yet install caching plugin on that site, but again how would this be the issue here?

    Thanks for your time, let me know if you find the cause and/or solution for all this, but for now I will just rebuild the home page using some configuration and elements that will work correctly together.

    Tom

    UPDATE: I have now changed Fullwidth Easy Slider to Fullscreen Slider on the Home Page, and again adding the grid row at the bottom causes the problem to reappear.

    • This reply was modified 2 years, 3 months ago by Tom_Tom_UK.
    • This reply was modified 2 years, 3 months ago by Tom_Tom_UK.
Viewing 30 results - 931 through 960 (of 16,891 total)