Viewing 30 results - 3,031 through 3,060 (of 16,898 total)
  • Author
    Search Results
  • #1308658

    Hey Mickyhood,
    Thank you for your patience, the /framework/php/ files can not be added to a child theme to override, you can copy the function you want to override to your child theme functions.php and make your changes, so for example to remove the image container from the Latest News widget
    2021-07-04_001.jpg
    I copied this function from \wp-content\themes\enfold\framework\php\class-framework-widgets.php

    if (!class_exists('avia_newsbox'))
    {
    	class avia_newsbox extends WP_Widget {
    
    		var $avia_term = '';
    		var $avia_post_type = '';
    		var $avia_new_query = '';
    
    		function __construct()
    		{
    			$widget_ops = array('classname' => 'newsbox', 'description' => __('A Sidebar widget to display latest post entries in your sidebar', 'avia_framework') );
    
    			parent::__construct( 'newsbox', THEMENAME.' Latest News', $widget_ops );
    		}
    
    		function widget($args, $instance)
    		{
    			global $avia_config;
    
    			extract($args, EXTR_SKIP);
    			echo $before_widget;
    
    			$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
    			$count = empty($instance['count']) ? '' : $instance['count'];
    			$cat = empty($instance['cat']) ? '' : $instance['cat'];
    			$excerpt = empty($instance['excerpt']) ? '' : $instance['excerpt'];
    			$image_size = isset($avia_config['widget_image_size']) ? $avia_config['widget_image_size'] : 'widget';
    			
    			/**
    			 * @since 4.5.4
    			 * @return string
    			 */
    			$image_size = apply_filters( 'avf_newsbox_image_size', $image_size, $args, $instance );
    
    			if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };
    
    
    			if(empty($this->avia_term))
    			{
    				$additional_loop = new WP_Query("cat=".$cat."&posts_per_page=".$count);
    			}
    			else
    			{
    				$catarray = explode(',', $cat);
    
    
    				if(empty($catarray[0]))
    				{
    					$new_query = array("posts_per_page"=>$count,"post_type"=>$this->avia_post_type);
    				}
    				else
    				{
    					if($this->avia_new_query)
    					{
    						$new_query = $this->avia_new_query;
    					}
    					else
    					{
    						$new_query = array(	"posts_per_page"=>$count, 'tax_query' => array(
    														array( 'taxonomy' => $this->avia_term,
    															   'field' => 'id',
    															   'terms' => explode(',', $cat),
    															   'operator' => 'IN')
    															  )
    														);
    					}
    				}
    
    				$additional_loop = new WP_Query($new_query);
    			}
    
    			if($additional_loop->have_posts()) :
    
    
    
    			echo '<ul class="news-wrap image_size_'.$image_size.'">';
    			while ($additional_loop->have_posts()) : $additional_loop->the_post();
    
    			$format = "";
    			if(empty($this->avia_post_type)) 	$format = $this->avia_post_type;
    			if(empty($format)) 					$format = get_post_format();
    	     	if(empty($format)) 					$format = 'standard';
    			
    			$the_id = get_the_ID();
    			$link = get_post_meta( $the_id  ,'_portfolio_custom_link', true) != "" ? get_post_meta( $the_id ,'_portfolio_custom_link_url', true) : get_permalink();
    			
    			
    			echo '<li class="news-content post-format-'.$format.'">';
    
    			//check for preview images:
    			$image = "";
    
    			if(!current_theme_supports('force-post-thumbnails-in-widget'))
    			{
    				$slides = avia_post_meta(get_the_ID(), 'slideshow', true);
    
    				if( $slides != "" && !empty( $slides[0]['slideshow_image'] ) )
    				{
    					$image = avia_image_by_id($slides[0]['slideshow_image'], $image_size, 'image');
    				}
    			}
    
    			if(current_theme_supports( 'post-thumbnails' ) && !$image )
    			{
    				$image = get_the_post_thumbnail( $the_id, $image_size );
    			}
    
    			$time_format = apply_filters( 'avia_widget_time', get_option('date_format')." - ".get_option('time_format'), 'avia_newsbox' );
    
    
    			echo "<a class='news-link' title='".get_the_title()."' href='".$link."'>";
    
    			$nothumb = (!$image) ? 'no-news-thumb' : '';
    
    			echo "<span class='news-thumb $nothumb'>";
    			echo $image;
    			echo "</span>";
    			if(empty($avia_config['widget_image_size']) || 'display title and excerpt' != $excerpt)
    			{
    				echo "<strong class='news-headline'>".get_the_title();
    				
    				if($time_format)
    				{
    					echo "<span class='news-time'>".get_the_time($time_format)."</span>";	
    				}
    				
    				echo "</strong>";
    			}
    			echo "</a>";
    
    			if( 'display title and excerpt' == $excerpt )
    			{
    				echo "<div class='news-excerpt'>";
    
    				if(!empty($avia_config['widget_image_size']))
    				{
    					echo "<a class='news-link-inner' title='".get_the_title()."' href='".$link."'>";
    					echo "<strong class='news-headline'>".get_the_title()."</strong>";
    					echo "</a>";
    					if($time_format)
    					{
    						echo "<span class='news-time'>".get_the_time($time_format)."</span>";	
    					}
    
    				}
    				the_excerpt();
    				echo "</div>";
    			}
    
    			echo '</li>';
    
    
    			endwhile;
    			echo "</ul>";
    			wp_reset_postdata();
    			endif;
    
    
    			echo $after_widget;
    
    		}
    
    
    		function update($new_instance, $old_instance)
    		{
    			$instance = $old_instance;
    			$instance['title'] = strip_tags($new_instance['title']);
    			$instance['count'] = strip_tags($new_instance['count']);
    			$instance['excerpt'] = strip_tags($new_instance['excerpt']);
    			$instance['cat'] = implode(',',$new_instance['cat']);
    			return $instance;
    		}
    
    
    
    		function form($instance)
    		{
    			$instance = wp_parse_args( (array) $instance, array( 'title' => '', 'count' => '', 'cat' => '', 'excerpt'=>'' ) );
    			$title = strip_tags($instance['title']);
    			$count = strip_tags($instance['count']);
    			$excerpt = strip_tags($instance['excerpt']);
    
    
    			$elementCat = array("name" 	=> __("Which categories should be used for the portfolio?", 'avia_framework'), 
    								"desc" 	=> __("You can select multiple categories here", 'avia_framework'),
    					            "id" 	=> $this->get_field_name('cat')."[]",
    					            "type" 	=> "select",
    					            "std"   => strip_tags($instance['cat']),
    					            "class" => "",
    	            				"multiple"=>6,
    					            "subtype" => "cat");
    			//check if a different taxonomy than the default is set
    			if(!empty($this->avia_term))
    			{
    				$elementCat['taxonomy'] = $this->avia_term;
    			}
    
    
    
    
    			$html = new avia_htmlhelper();
    
    	?>
    			<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', 'avia_framework'); ?>
    			<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label></p>
    
    			<p>
    				<label for="<?php echo $this->get_field_id('count'); ?>"><?php _e('How many entries do you want to display: ', 'avia_framework'); ?></label>
    				<select class="widefat" id="<?php echo $this->get_field_id('count'); ?>" name="<?php echo $this->get_field_name('count'); ?>">
    					<?php
    					$list = "";
    					for ($i = 1; $i <= 20; $i++ )
    					{
    						$selected = "";
    						if($count == $i) $selected = 'selected="selected"';
    
    						$list .= "<option $selected value='$i'>$i</option>";
    					}
    					$list .= "</select>";
    					echo $list;
    					?>
    
    
    			</p>
    
    			<p><label for="<?php echo $this->get_field_id('cat'); ?>"><?php _e('Choose the categories you want to display (multiple selection possible):', 'avia_framework'); ?>
    			<?php echo $html->select($elementCat); ?>
    			</label></p>
    
    			<p>
    				<label for="<?php echo $this->get_field_id('excerpt'); ?>"><?php _e('Display title only or title & excerpt', 'avia_framework'); ?></label>
    				<select class="widefat" id="<?php echo $this->get_field_id('excerpt'); ?>" name="<?php echo $this->get_field_name('excerpt'); ?>">
    					<?php
    					$list = "";
    					$answers = array(
    								'show title only'			=>	__( 'show title only', 'avia_framework' ),
    								'display title and excerpt'	=>	__('display title and excerpt', 'avia_framework')
    								);
    					
    					foreach ( $answers as $key => $answer )
    					{
    						$selected = "";
    						if( $key == $excerpt ) $selected = 'selected="selected"';
    
    						$list .= "<option $selected value='$key'>$answer</option>";
    					}
    					$list .= "</select>";
    					echo $list;
    					?>
    
    
    			</p>
    
    
    	<?php
    		}
    	}
    }
    

    and commented out lines 989-991
    2021-07-04_002.jpg
    for this result:
    2021-07-04_003.jpg
    Please give this a try.

    Best regards,
    Mike

    #1308643

    In reply to: Fatal error

    Here is the error message we receive at https://meditationistockholm.se/

    Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, string given in /customers/5/d/6/meditationistockholm.se/httpd.www/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php:1951 Stack trace: #0 /customers/5/d/6/meditationistockholm.se/httpd.www/wp-content/themes/enfold/includes/admin/option_tabs/avia_performance.php(331): avia_count_active_plugins() #1 /customers/5/d/6/meditationistockholm.se/httpd.www/wp-content/themes/enfold/includes/admin/register-admin-options.php(284): include(‘/customers/5/d/…’) #2 /customers/5/d/6/meditationistockholm.se/httpd.www/wp-content/themes/enfold/framework/php/class-superobject.php(246): include(‘/customers/5/d/…’) #3 /customers/5/d/6/meditationistockholm.se/httpd.www/wp-content/themes/enfold/framework/php/class-superobject.php(197): avia_superobject->_create_option_arrays() #4 /customers/5/d/6/meditationistockholm.se/httpd.www/wp-content/themes/enfold/framework/php/class-superobject.php(146): avia_superobject->init() #5 /customers/5/d/6/meditationistockholm.se/httpd.www/wp-content/themes/enfold/framework/php/class-superobject.php(482): avia_superobject::instance(Array) #6 /customers/5/d/6/meditationistockholm.se/httpd.www/wp-content/themes/enfold/framework/avia_framework.php(108): AviaSuperobject(Array) #7 /customers/5/d/6/meditationistockholm.se/httpd.www/wp-content/themes/enfold/functions.php(166): require_once(‘/customers/5/d/…’) #8 /customers/5/d/6/meditationistockholm.se/httpd.www/wp-settings.php(528): include(‘/customers/5/d/…’) #9 /customers/5/d/6/meditationistockholm.se/httpd.www/wp-config.php(97): require_once(‘/customers/5/d/…’) #10 /customers/5/d/6/meditationistockholm.se/httpd.www/wp-load.php(37): require_once(‘/customers/5/d/…’) #11 /customers/5/d/6/meditationistockholm.se/httpd.www/wp-blog-header.php(13): require_once(‘/customers/5/d/…’) #12 /customers/5/d/6/meditationistockholm.se/httpd.www/index.php(17): require(‘/customers/5/d/…’) #13 {main} thrown in /customers/5/d/6/meditationistockholm.se/httpd.www/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 1951

    #1308611

    Hi,
    Thank you for your patience, and the link to your MapBox install instructions, first I would recommend using the Enfold Child Theme so you don’t lose the changes when you update the theme.
    Then add this code to the end of your functions.php file in Appearance > Editor:

    function install_mapbox(){
        ?>
    <script src='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.js'></script>
    <link href='https://api.mapbox.com/mapbox-gl-js/v2.3.1/mapbox-gl.css' rel='stylesheet' />
        <?php
        }
    add_action('wp_head', 'install_mapbox');

    then add this to a code block on your page:

    <div id='map' style='width: 400px; height: 300px;'></div>
    <script>
    mapboxgl.accessToken = 'YOUR_MAPBOX_ACCESS_TOKEN';
    var map = new mapboxgl.Map({
    container: 'map',
    style: 'mapbox://styles/mapbox/streets-v11'
    });
    </script>

    you will need to add your access token to replace this part of the code: YOUR_MAPBOX_ACCESS_TOKEN
    Then the default map will show:
    2021-07-03_011.jpg
    Then you should go to this page to learn how to customize your MapBox map.
    2021-07-03_012.jpg
    If you can’t create a free “Google Maps API” then you can’t use the Google Maps element, unfortunately we currently don’t have a MapBox element.

    Best regards,
    Mike

    Hi,
    Thank you for your patience and the link to your page, I believe you mean the section at the bottom of the page diese Ausflüge könnten Dich auch interessieren:
    this is a posts slider and not a related posts element, to have it not show the current post try setting the offset to Do not allow duplicate posts on the entire page (set offset automatically)
    2021-07-03_008.jpg
    To change the h3 of the titles, it would be best to first add a custom class to the element so the script doesn’t effect other elements, perhaps related-posts-slider
    2021-07-03_009.jpg
    Then try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_script() { ?>
        <script>
    (function($) {
      $(document).ready(function(){
        function replaceElementTag(targetSelector, newTagString) {
          $(targetSelector).each(function(){
            var newElem = $(newTagString, {html: $(this).html()});
            $.each(this.attributes, function() {
              newElem.attr(this.name, this.value);
            });
            $(this).replaceWith(newElem);
          });
        }
        replaceElementTag('.related-posts-slider h3.slide-entry-title', '<p></p>');
      });
    }(jQuery));
    </script>
        <?php
    }
    add_action('wp_footer', 'custom_script');

    it will replace the h3 with p

    Best regards,
    Mike

    Hi,
    Instead of using page IDs you could add a class to all of your “black” styled pages and change the script to look for #top.black instead of #top.page-id-33 To add this class to some of your pages you could use the WordPress Custom Fields option, the Custom Fields options on the Post & Page edit screens are hidden by default if they have not been used before. Using the Block Editor, click the three dots button at the top of the right sidebar and visit Options to enable it. (If you are using the Classic editor, check the screen options).
    So in this case we will add the Name: bodyclass and the Value: black
    custom_fields_name_value.jpg
    to each one of these pages, then add this code to the end of your functions.php file in Appearance > Editor:

    function add_custom_fields_bodyclass( $classes ) {
        global $post;
        $bclass = get_post_meta( $post->ID, 'bodyclass', true );
        if ( empty( $bclass ) ) {
            return $classes;
        }
        $classes[] = $bclass;
        return $classes;
    }
    add_filter( 'body_class', 'add_custom_fields_bodyclass' );

    Please note that this only looks for the Name: bodyclass but it will add any value as a body class.
    As for question #2 I’m not seeing the full-width sub-menu on your home page, which page are you testing on? Which animated gif are you referring to?

    Best regards,
    Mike

    #1308565

    Hey adelinewyp,

    Could you try updating the theme to the latest version (4.8.3) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update. Also make sure that you running PHP 7.4 or higher on the server. If that doesn’t help, then please try disabling all plugins, and activate the parent theme.

    Best regards,
    Rikard

    kinderinstitute
    Participant

    Hello.

    Recently updated the theme version to 4.8.1 and am now seeing the following error message when editing the home page:
    “This page is selected to be displayed as maintenance mode page but is not active at the moment. (Set in Enfold » Theme Options). (Change)”

    I’ve followed instructions on other similar posts from 2019 to change the Maintenance Mode and 404 Settings. That has not helped.

    I’ve contacted the site host, GoDaddy, and asked them to “whitelist api.envato.com” and suggested the problem could be related to “a connection issue between your host and Envato API”. They disagreed that it is a problem on their end and said it’s a theme issue.

    NOTES:
    I have two sites running the theme right now. Both are on the version 4.8.1 with a child theme. Both are displaying the same error message.
    kinderinstitute.com (main site, PHP version 5.6, hosted at GoDaddy)
    sandboxreview.com (live sandbox site, PHP version 7.3, hosted at A2)

    Will you please review and let me know what my next step is? Thank you for any assistance you can offer.

    T

    #1308536
    michaelspencer
    Participant

    Help! I’m trying to show a different logo on my mobile view. I’ve tried all three recommended solutions described here:

    (1) The original CSS solution

    @media only screen and (max-width: 480px) {
    .logo img { opacity: 0; }
    .logo a { background-image: url(https://kriesi.at/wp-content/themes/kriesi/images/logo.png); background-repeat: no-repeat; background-size: contain; background-position: 50% 50%; }}

    (2) The function solution

    function av_dif_mobile_logo(){
    ?>
    <script>
    (function($){
    	$(window).load(function(){
    	if ($(window).width() < 480) {
    		$(".logo img").attr("src", "http://kriesi.at/wp-content/themes/kriesi/images/logo.png");}
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'av_dif_mobile_logo');

    (3) The new CSS solution:

    @media only screen and (max-width:976px){
    .mobile-individual-logo {
    background: url('https://kriesi.at/wp-content/uploads/2019/04/Logo.png') center center no-repeat scroll;
    }
    }

    None of these solutions is working for me. Can anyone see what I’m doing wrong? Thanks in advance.

    As an aside, with so many people apparently struggling with this alternate mobile logo, wouldn’t it be easier to make this a customizable setting?

    #1308529

    Hi Luc,

    Thanks for giving us admin access.
    I have updated your functions.php and re-added function avia_title
    The reason it’s removing your post before was the code I gave wasn’t compatible with Enfold 4.7.6.3 (your current Enfold version) though it works with the latest version 4.8.3.
    Please review your site.

    Best regards,
    Nikko

    #1308520

    yes – but think of jQuery 3.5.1 : jQuery(window).load(function(){ is deprecated now.
    You had to use instead: jQuery(window).on('load', function(){

    or here in the code: Link

    $(window).on('load', function(){
    …

    and if it is the syntax is:

    (function($){
    …
    })(jQuery);

    you can write every jQuery inside as $: ( f.e. $(‘body’) }

    function av_open_inline_popup(){
    ?>
    <script type="text/javascript">
    (function($) {
    $(window).on('load', function(){
    	$('.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', 'av_open_inline_popup');
    #1308504

    I am using a standard wp feed, and the standard wp RSS widget but the featured images are not showing. I can see that the images are in the feed. Can you suggest?

    this page displays the feed: https://mentorhubapp.org/mentorhub-blog/

    THe images are in the feed. Here is the <img snippet of feed (https://www.evidencebasedmentoring.org/category/mentorhub/feed/) for the first article:

    I already added this to functions.php

    `function featuredtoRSS($content) {
    global $post;
    if ( has_post_thumbnail( $post->ID ) ){
    $content = ‘<div>’ . get_the_post_thumbnail( $post->ID, ‘medium’, array( ‘style’ => ‘margin-bottom: 15px;’ ) ) . ‘</div>’ . $content;
    }
    return $content;
    }
    add_filter(‘the_excerpt_rss’, ‘featuredtoRSS’);
    add_filter(‘the_content_feed’, ‘featuredtoRSS’);

    #1308500

    Hi,

    Thanks for that. Could you try updating your PHP version to 7.4 or higher, to see if that helps please?

    Best regards,
    Rikard

    #1308468
    adelinewyp
    Participant

    Hello,

    I received this error message from wordpress regarding my Enfold theme. I am not a developer / programmer so not very apt at coding etc. Can moderator help please?
    —————————

    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with your theme, Enfold.

    First, visit your website and check for any visible issues. Next, visit the page where the error was caught and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 5.7.2
    Current theme: Enfold Child (version 1.0)
    Current plugin: (version )
    PHP version 7.3.25

    #1308463

    In reply to: Update icons

    Hi,

    You have to edit the page and in the Advance Layout Builder, you should see the columns containing the icon boxes. (see private field)

    Looks like the elements or shortcodes were added manually in a template. Did you modify the header.php file or add any scripts in the functions.php file?

    Best regards,
    Ismael

    #1308445

    In reply to: importing font

    Hi,

    We are actually referring to the PHP Zip Archive extension, not the theme files. You should ask your hosting provider if this extension is enabled, or check it in the WordPress > Dashboard > LayerSlider > Options and click “System Status” and look under “Server Settings” as described in the following thread.

    // https://kriesi.at/support/topic/adobe-fonts-in-enfold/#post-1305076

    Best regards,
    Ismael

    Thank you for your quick and complete help.
    Nevertheless, I added the code in functions.php placed in my child theme.

    I have of course customized it, but I don’t get the expected effect.

    Did I forget something?
    Many thanks

    CPT

    #1308331
    This reply has been marked as private.
    #1308296

    Guenni,
    Thank you very much for that fix. I got it to work.
    For those, like me, that need extra hand-holding to get fixes to work, here are the steps I took:

    • Open the functions.php file in enfold-child
    • Add the following code:

    function avia_include_shortcode_template($paths){
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
      return $paths;
    }
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);

    • In enfold-child, create a new folder: “shortcodes” (enfold-child/shortcodes)
    • Copy the file “iconbox.php” within: enfold>config-templatebuilder>avia-shortcodes>iconbox – and add it into enfold-child>shortcodes.
    • Open the iconbox.php file and at (or around) line 576 to 605 is the content that will be replaced with the following (it will look similar to the replacement code):

    if( ! empty( $link ) )
    {
    	$linktitle = $title;
    
    	switch( $linkelement )
    	{
    		case 'both':
    			if( $title ) 
    			{
    				$title = "<a href='{$link}' title='Link to " . esc_attr( $linktitle ) . "' $blank>$linktitle</a>";
    			}
    			
    			$display_char_wrapper['start'] = "a href='{$link}' title='Iconlink to "  . esc_attr($linktitle) . "' {$blank}";
    			$display_char_wrapper['end'] = 'a';
    			break;
    		case 'only_icon':
    			$display_char_wrapper['start'] = "a href='{$link}' title='Iconlink to " . esc_attr($linktitle) . "' {$blank}";
    			$display_char_wrapper['end'] = 'a';
    			break;
    		default:
    			if( $title ) 
    			{
    				$title = "<a href='{$link}' title='Link to " . esc_attr( $linktitle ) . "' {$blank} >$linktitle</a>";
    			}
    			
    			$display_char_wrapper['start'] = 'div';
    			$display_char_wrapper['end'] = 'div';
    			break;
    	}
    }

    • Make sure to clear the cache and then check to see the change.

    • This reply was modified 4 years, 10 months ago by laptophobo.
    #1308198

    Topic: Problem with Masonry

    in forum Enfold
    Joe
    Participant

    Hello!

    I’ve encountered a similar problem with Masonry that occurs with the Woo Commerce plugin:

    Fatal error: Uncaught Error: Call to undefined method avia_masonry::default_args() in /home/customer/www/staging8.slapharma.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php:640 Stack trace: #0 /home/customer/www/staging8.slapharma.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-template.class.php(979): avia_sc_masonry_entries->shortcode_handler(Array, ”, ‘av_masonry_entr…’, Array) #1 /home/customer/www/staging8.slapharma.com/public_html/wp-includes/shortcodes.php(343): aviaShortcodeTemplate->shortcode_handler_prepare(Array, ”, ‘av_masonry_entr…’) #2 [internal function]: do_shortcode_tag(Array) #3 /home/customer/www/staging8.slapharma.com/public_html/wp-includes/shortcodes.php(218): preg_replace_callback(‘/\\[(\\[?)(av_mas…’, ‘do_shortcode_ta…’, ‘[av_masonry_ent…’) #4 /home/customer/www/staging8.slapharma.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/ in /home/customer/www/staging8.slapharma.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php on line 640

    I’ve disabled all the plugins and I’ve also tried finding reinstalling Enfold – but no luck with a fix.

    Any ideas?

    • This topic was modified 4 years, 10 months ago by Joe.
    #1308184
    cbesondy1
    Participant

    After updating to WP 5.7.2 a background image for a color section now conceals text and video code block within the section. I have tried recreating the color section and get same result.

    I also have a colored bar above the menu/logo header section that wasn’t there before.

    After updating to Enfold 4.8.3 the problem persisted.

    A link to the staging site is attached. This illustrates the issue. I’ve also attached link to production for reference

    I’m running PHP 7.3.28, if that matters.

    Thanks for attention to this issue.

    #1308087

    Hey Jake,

    Thanks for contacting us!

    The latest version of Enfold is compatible up to PHP version 8 and with the latest version of WordPress. Updating the theme would fix incompatibility issues that are related to WordPress and PHP version.

    It is good that previous developers used a child theme. Updating should go pretty smoothly. In case they modified files such as header.php or footer.php on child theme, those files might need updating as well because Enfold 3.4.7 is a pretty old version and many of theme files were updated since then.

    Could you please check which files are modified on the child theme? If there are only style.css and functions.php files, you can simply go ahead and update the theme :)

    Regards,
    Yigit

    #1308060

    Guenni,

    Well, no luck on getting your code to work. Here is what I did:

    I added the following to my child theme function.php file:

    function avia_include_shortcode_template($paths){
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
      return $paths;
    }
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);

    I then made a copy of iconbox.php file and placed it in enfold-child>config-templatebuilder>avia-shortcodes>iconbox

    in that file, I replaced the content between lines 576 to 605 (which looked like your example) and replaced it with the content you provided.

    But no change in the results.

    • This reply was modified 4 years, 10 months ago by laptophobo.
    Jacob Wright
    Guest

    Hi there,

    I’ve recently taken over the SEO efforts for a client who’s running a child theme on Enfold. I tried updating the PHP for the site from 7.0 to 7.4, however, this ended up breaking the editor section for any page on the site. By breaking it I mean it just gave me the spinning wheel of death. I think this is because the Enfold version (3.4.7 is running deprecated Jquery functions (i.e .Live).

    I tried to get the themeforest key from the client but they said because it was built in 2014 they’ve either lost it or their developer at the time failed to send it across as they didn’t know they’d need it.

    My question is, if I bought a new key, would I be able to simply update the Enfold theme or would the key need to match up with the site (not entirely sure how it works).

    Also the child theme was custom built by the developers back in 2014 so I’m afraid this could also be an issue?

    Any help would be greatly appreciated. I feel as though buying a new key would be the right thing to do but I don’t want to purchase one if I’m going to be in the same situation.

    Thanks,

    Jake

    #1307995
    denisechapman
    Participant

    Hi, on http://www.primadesign.com/JB where I am working on the site… it will be moving to johnstonesbenefits.com… when I go into debug mode this shows above:

    Warning: include(C:\inetpub\vhosts\johnstonesbenefits.com\new.johnstonesbenefits.com/wp-content/uploads/avia_fonts/medical/charmap.php): failed to open stream: No such file or directory in C:\inetpub\vhosts\johnstonesbenefits.com\new.johnstonesbenefits.com\wp-content\themes\enfold\config-templatebuilder\avia-template-builder\php\font-manager.class.php on line 477

    Warning: include(): Failed opening ‘C:\inetpub\vhosts\johnstonesbenefits.com\new.johnstonesbenefits.com/wp-content/uploads/avia_fonts/medical/charmap.php’ for inclusion (include_path=’.;.\includes;.\pear’) in C:\inetpub\vhosts\johnstonesbenefits.com\new.johnstonesbenefits.com\wp-content\themes\enfold\config-templatebuilder\avia-template-builder\php\font-manager.class.php on line 477

    #1307948

    In reply to: importing font

    Hey Spiru_show1,

    Thank you for the inquiry.

    Please make sure that PHP Zip Archive extension is enabled. For more info, please check the following thread.

    // https://kriesi.at/support/topic/adobe-fonts-in-enfold/#post-1305076

    Best regards,
    Ismael

    #1307908

    In reply to: Tag archive

    Hey marcie73,

    Thank you for the inquiry.

    For the tag archive page, you can use this code in the functions.php file to replace div with h1.

    /**
    	 * Show an archive description on taxonomy archives.
    	 */
    	function woocommerce_taxonomy_archive_description() {
    		if ( is_product_taxonomy() && 0 === absint( get_query_var( 'paged' ) ) ) {
    			$term = get_queried_object();
    
    			if ( $term && ! empty( $term->description ) ) {
    				echo '<h1 class="term-description">' .  wp_kses_post( $term->description )  . '</h1>'; 
    			}
    		}
    	}
    

    And modify the hooks that we created previously. Try to replace it with:

    // ADD PRODUCT CATEGORY DESCRIPTION IN RIGHT PLACE
    add_action("after_setup_theme", function() {
    	if(is_product_category()) {
                 add_action( "woocommerce_before_shop_loop", "woocommerce_taxonomy_archive_description", 10 );
            }
    	add_action( "woocommerce_before_shop_loop", "woocommerce_before_shop_loop", 10 );
    }, 20);
    

    Best regards,
    Ismael

    #1307826

    Topic: Error on editing pages

    in forum Enfold
    Iloivar
    Participant

    hello all,

    I have since the update to wordpress 5.7.2 problems when editing pages.

    Ein Fehler vom Typ E_ERROR wurde in der Zeile 529 der Datei /mnt/web309/b2/00/5259000/htdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php verursacht. Fehlermeldung: Uncaught Error: Call to undefined function gutenberg_can_edit_post_type() in /mnt/web309/b2/00/5259000/htdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:529
    Stack trace:
    #0 /mnt/web309/b2/00/5259000/htdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(389): Avia_Gutenberg->can_use_block_editor()
    #1 /mnt/web309/b2/00/5259000/htdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(424): Avia_Gutenberg->init_force_classic_post_types()
    #2 /mnt/web309/b2/00/5259000/htdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(499): Avia_Gutenberg->get_force_classic_post_types()
    #3 /mnt/web309/b2/00/5259000/htdocs/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(1623): Avia_Gutenberg->force_classic_editor()
    #4 /mnt/web309/b2/00/5259000/htdocs/wp-includes/class-wp-hook.php(294): Avia_Gutenberg->handler_wp_use_block_editor_for_post_type()
    #5 /mnt/web309/b2/00/5259000/htdocs/wp-includes/plugin.php(212): WP_Hook->apply_filters(

    I have already read through your forum posts (https://kriesi.at/support/topic/fatal-error-class-avia-gutenberg-php-on-line-529/) but unfortunately do not find a suitable solution. I have disabled plugins, disabled the gutenberg editor.

    What else can I do?

    greetings and thank you.
    Iloivar

    #1307806

    In reply to: Switching page issue

    Hi Rikard,

    I have solved this issue using one of the solutions in the previous thread others posted.

    It is:

    Edit the enfold\framework\php\function-set-avia-frontend.php file, remove everything, then place the following code,
    https://pastebin.com/2G708fX7

    Best regards
    Alex

    • This reply was modified 4 years, 10 months ago by alex799.
    #1307653

    Hi ilkbaharkunduzu,

    I see, how much memory is allocated on these sites and how many plugins are active?
    Also, can you try to downgrade PHP to 7.3? and see if there are improvements.
    Also, here’s some list of plugins that use a lot of resource: https://www.peopleshost.com/wordpress-high-resource-usage-plugins/
    Hope this helps.

    Best regards,
    Nikko

    #1307651

    Hi,

    I do not even use those performance boosters at all. I understand you but there are 4 sites and 2 of them are Enfold. I have just before going out for a walk ( just in 2 minutes ) clicked to check 2 sites and one of them does not even have woocommerce. I just clicked the site of woocommerce to go to a random category page. Opened the page. Then I clicked a product. While trying to open the page, I go to other website in another tab. It did not open. 2 waited and 2 sites gave 503 error. It is not normal really.

    I deleted wp-rocket. I have to understand the reason of this CPU problem or another PHP issue. It does not create php.error.log but…May be 7.4 has a problem. May be Linode recently changed the servers not just mine but overall a maintenance. I do not know. Any idea would be nice.

    Best Regards

Viewing 30 results - 3,031 through 3,060 (of 16,898 total)