Viewing 30 results - 151 through 180 (of 16,888 total)
  • Author
    Search Results
  • #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

    #1490224

    @ismael, I had a similar script in functions.php but replaced it with your recommendation. Unfortunately, it did not correct the sort order issue.


    @guenni007
    , I had already changed the settings to Perfect Grid to no avail. Other masonry settings didn’t work either. I’m stumped.

    Any other thoughts or ideas?

    #1490091

    Hey milkrow,

    Thank you for the inquiry.

    There is no built-in option for this by default. You’ll need to edit each portfolio entry manually, switch to the Advanced Layout Builder and add the custom element template. There is a workaround, but it requires manually adding a code to your functions.php file and adjust it according to your requirements.

    https://kriesi.at/support/topic/importing-lots-of-data-to-scf-custom-posts-all-having-same-template/#post-1473195

    Best regards,
    Ismael

    #1490041

    Hi,
    The PHP version is 8.3. We just updated Enfold through our webhost to 7.1.3. We are now getting a different error:

    Fatal error: Cannot redeclare av_countdown_events_fallback() (previously declared in /home2/arvidson/public_html/christmasdecor.arvidsons.com/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_countdown/events_countdown.php:16) in /home2/arvidson/public_html/christmasdecor.arvidsons.com/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/events_countdown.php on line 8

    Any help would be much appreciated. We also can’t get into our back end at the moment and are doing updates through the host.

    We also have a website at arvidsons.com, and there is as of today a critical error on this one as well.
    Thank you,
    Justine

    #1490020
    BlutVampir
    Participant

    I have a custom shortcode:

    <?php
    
    if ( ! defined( 'ABSPATH' ) ) {  exit;  }    // Exit if accessed directly
    
    if ( ! class_exists( 'avia_sc_portfolio_kacheln' ) )
    {
    	class avia_sc_portfolio_kacheln extends aviaShortcodeTemplate
    	{
    		/**
    		 * Create the config array for the shortcode button
    		 */
    		function shortcode_insert_button()
    		{
    			$this->config['version']		= '1.0';
    			$this->config['self_closing']	= 'no';
    			$this->config['base_element']	= 'yes';
    
    			$this->config['name']			= 'Portfolio Kachel';
    			$this->config['tab']			= 'wuk Elements';
    			$this->config['icon']			= AviaBuilder::$path['imagesURL'] . 'sc-image.png';
    			$this->config['order']			= 1;
    			$this->config['target']			= 'avia-target-insert';
    			$this->config['shortcode'] 		= 'av_portfoliokachel';
    //			$this->config['modal_data']     = array( 'modal_class' => 'mediumscreen' );
    			$this->config['tooltip'] 	    = __( 'Inserts an image of your choice', 'avia_framework' );
    			$this->config['preview'] 		= 1;
    			$this->config['disabling_allowed'] = true;
    			$this->config['id_name']		= 'id';
    			$this->config['id_show']		= 'yes';
    		}
    
    		function popup_elements()
    		{
    			$template_url = get_stylesheet_directory_uri();
    			$this->elements = array(
    
    				array(
    						'type' 	=> 'tab_container',
    						'nodescription' => true
    					),
    
    				array(
    						'type' 	=> 'tab',
    						'name'  => __( 'Kachel', 'avia_framework' ),
    						'nodescription' => true
    					),
    
    					array(
    							'type' 	=> 'toggle_container',
    							'nodescription' => true
    						),
    
    					array(
    									"name" 	=> __("Choose Image",'avia_framework' ),
    									"desc" 	=> __("Either upload a new, or choose an existing image from your media library",'avia_framework' ),
    									"id" 	=> "bild",
    									"type" 	=> "image",
    									"title" => __("Insert Image",'avia_framework' ),
    									"button" => __("Insert",'avia_framework' ),
    									"std" 	=> "",
    						),
    
    						array(
    							"name" 	=> __("Title", 'avia_framework' ),
    							"id" 	=> "title",
    							"std" 	=> "",
    							"type" 	=> "input"
    						),
    
    						array(
    							"name" 	=> __("Text", 'avia_framework' ),
    							"id" 	=> "text",
    							"std" 	=> "",
    							"type" 	=> "textarea"
    						),
    
    						array(
    							"name" 	=> __("Button Text", 'avia_framework' ),
    							"id" 	=> "button_text",
    							"std" 	=> "",
    							"type" 	=> "input"
    						),
    
    						array(
    							'name'	=> __( 'Image Link?', 'avia_framework' ),
    							'desc'	=> __( 'Where should your image link to?', 'avia_framework' ),
    							'id'	=> 'link',
    							'type'	=> 'linkpicker',
    							'fetchTMPL'	=> true,
    							'std'		=> '',
    							'lockable'	=> true,
    							'subtype'	=> array(
    											__( 'No Link', 'avia_framework' )	=> '',
    											__( 'Lightbox', 'avia_framework' )	=> 'lightbox',
    											__( 'Set Manually', 'avia_framework' )	=> 'manually',
    											__( 'Single Entry', 'avia_framework' )	=> 'single',
    											__( 'Taxonomy Overview Page', 'avia_framework' )	=> 'taxonomy',
    										)
    						),
    
    						array(
    							'name'	=> __( 'Open new tab/window', 'avia_framework' ),
    							'desc'	=> __( 'Do you want to open the link url in a new tab/window?', 'avia_framework' ),
    							'id'	=> 'target',
    							'type'	=> 'select',
    							'std'	=> '',
    							'lockable'	=> true,
    							'required'	=> array( 'link', 'not_empty_and', 'lightbox' ),
    							'subtype'	=> AviaHtmlHelper::linking_options()
    						),
    
    					array(
    							'type' 	=> 'toggle_container_close',
    							'nodescription' => true
    						),
    
    				array(
    						'type' 	=> 'tab_close',
    						'nodescription' => true
    					),
    
    				array(
    						'type' 	=> 'tab',
    						'name'  => __( 'Advanced', 'avia_framework' ),
    						'nodescription' => true
    					),
    
    					array(
    							'type' 	=> 'toggle_container',
    							'nodescription' => true
    						),
    
    						array(
    								'type'			=> 'template',
    								'template_id'	=> 'screen_options_toggle',
    								'lockable'		=> true
    							),
    
    						array(
    								'type'			=> 'template',
    								'template_id'	=> 'developer_options_toggle',
    								'args'			=> array( 'sc' => $this )
    							),
    
    					array(
    							'type' 	=> 'toggle_container_close',
    							'nodescription' => true
    						),
    
    				array(
    						'type' 	=> 'tab_close',
    						'nodescription' => true
    					),
    
    				array(
    						'type'			=> 'template',
    						'template_id'	=> 'element_template_selection_tab',
    						'args'			=> array(
    												'sc'	=> $this
    											)
    					),
    
    				array(
    						'type' 	=> 'tab_container_close',
    						'nodescription' => true
    					),
    
    				array(
    						'id'	=> 'av_element_hidden_in_editor',
    						'type'	=> 'hidden',
    						'std'	=> '0'
    					)
    			);
    
    		}
    
    		/**
    		 * Editor Element - this function defines the visual appearance of an element on the AviaBuilder Canvas
    		 * Most common usage is to define some markup in the $params['innerHtml'] which is then inserted into the drag and drop container
    		 * Less often used: $params['data'] to add data attributes, $params['class'] to modify the className
    		 *
    		 *
    		 * @param array $params this array holds the default values for $content and $args.
    		 * @return $params the return array usually holds an innerHtml key that holds item specific markup.
    		 */
    		function editor_element( $params )
    		{
    			extract( $params['args'] );
    
    			global $KACHELINDEX;
    			$KACHELINDEX++;
    
    			if (strstr($link,"manually,")) { $url = str_replace("manually,","",$link); }
    			elseif (strstr($link,",")) {
    				$tmp = explode(",",$link);
    				$url = get_the_permalink($tmp[1]);
    			}
    
    			$out = '<div class="portfolio_kacheln sameheight"'.((empty($button_text) && !empty($link)) ? ' onclick="location.href='.$url.'"' : '').'>
    				<div class="bg2">'.str_pad($KACHELINDEX, 2, "0", STR_PAD_LEFT).'</div>
    				<div class="pic" style="">'.
    					'<img src="'.$bild.'" />'.
    					'<h3>'.$title.'</h3>'.
    				'</div>'.
    				(!empty($text) ? '<p>'.$text.'</p>' : '').
    				((!empty($link) && !empty($button_text)) ? '<p class="action"><a href="'.$url.'" class="button">'.$button_text.'</a></p>' : '').
    			'</div>';
    
    			$params['innerHtml'] = $out;
    
    			return $params;
    		}
    
    		/**
    		 * Frontend Shortcode Handler
    		 *
    		 * @param array $atts array of attributes
    		 * @param string $content text within enclosing form of shortcode element
    		 * @param string $shortcodename the shortcode found, when == callback name
    		 * @return string $output returns the modified html string
    		 */
    		function shortcode_handler( $atts, $content = '', $shortcodename = '', $meta = '' )
    		{
    			extract( $atts );
    			global $KACHELINDEX;
    			$KACHELINDEX++;
    
    			if (strstr($link,"manually,")) { $url = str_replace("manually,","",$link); }
    			elseif (strstr($link,",")) {
    				$tmp = explode(",",$link);
    				$url = get_the_permalink($tmp[1]);
    			}
    
    			$out = '<div class="portfolio_kacheln sameheight"'.((empty($button_text) && !empty($link)) ? ' onclick="'.($target == '' ? 'location.href='.$url.'"' : 'window.open(\''.$url.'\', \'_blank\');') : '').'>
    				<div class="bg2">'.str_pad($KACHELINDEX, 2, "0", STR_PAD_LEFT).'</div>
    				<div class="pic" style="">'.
    					'<img src="'.$bild.'" />'.
    					'<h3>'.$title.'</h3>'.
    				'</div>'.
    				(!empty($text) ? '<p>'.$text.'</p>' : '').
    				((!empty($link) && !empty($button_text)) ? '<p class="action"><a'.($target != '' ? ' target="'.$target.'"' : '').' href="'.$url.'" class="button">'.$button_text.'</a></p>' : '').
    			'</div>';
    
    			return $out;
    		}
    
    	}
    }
    

    taht generates a shortcode like:

    [av_portfoliokachel bild='https://xexadeti.cyon.site/wp-content/uploads/2025/08/sta-schweisstechnische-ausbildung-mag-schweissen.jpg' attachment='277' attachment_size='full' title='MAG' text='(135 - Metall-Aktivgas-Schweissen)	Unverändert: [av_portfoliokachel bild='https://xexadeti.cyon.site/wp-content/uploads/2025/08/sta-schweisstechnische-ausbildung-mag-schweissen.jpg' attachment='277' attachment_size='full' title='MAG' text='(135 - Metall-Aktivgas-Schweissen)
    Gelöscht: MAG – das Arbeitstier unter den Schweissverfahren! Wir zeigen dir, wie’s richtig geht!' button_text='Infos zu MAG' link='portfolio_entries,5' target='' id='' custom_class='' template_class='' av_element_hidden_in_editor='0' av_uid='av-mebf8h83' sc_version='1.0' admin_preview_bg=''][/av_portfoliokachel]

    everything working fine, except oine thing, the ‘ Character.

    array(
    							"name" 	=> __("Text", 'avia_framework' ),
    							"id" 	=> "text",
    							"std" 	=> "",
    							"type" 	=> "textarea"
    						),

    If I enter a ‘ char in this “Text” field, it doesnt get escaped as it should
    as example: text=’test’s’ will be the endresult and not text=’test\’s’. Is there a hook or filter where I can “correctly apply escaping to a field?

    Strangly, I did setup the page and that did work. I did update to latest enfold version and now, that is not working anymore. Is that a new bug that the encoding is not correctly working?

    It dows work, when changing the field name from “text” to “content”. But what, if I want more than 1 “content” field?
    Normal textarea should equallless its name escaped correctly in enfold…

    Thanks for aour advice or fix.

    #1489997

    Hey jnightingale,

    Thank you for the inquiry.

    We tried to access the site but got blocked by a firewall or another security feature on your server. What is the current version of the theme, and which PHP version did you upgrade the server to? Please make sure that the theme is updated to version 7.1.2.

    Screenshot-2025-10-10-at-12-32-40-PM

    Best regards,
    Ismael

    #1489991
    jnightingale
    Participant

    Hi,
    Our webhost is telling us that the latest version of php must not be compatable with Enfold because it crashed the site, and we can’t seem to get it back. Can you please advise? Here is the error code. Thanks!

    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the avia_framework domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home2/arvidson/public_html/christmasdecor.arvidsons.com/wp-includes/functions.php on line 6121

    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 /home2/arvidson/public_html/christmasdecor.arvidsons.com/wp-content/themes/enfold/functions-enfold.php on line 265

    There has been a critical error on this website. https://christmasdecor.arvidsons.com/

    Hi Ismael

    I have already tried all if the above suggestions. The execution time is set to 2048M for memory limit, execution time upload file size and the above thumbnails are already removed. And only the minimum file sizes are being created

    ;+StackCP
    asp_tags = 1
    auto_append_file = 
    auto_prepend_file = 
    display_errors = 0
    error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
    file_uploads = 1
    max_execution_time = 300
    max_file_uploads = 16
    max_input_time = 60
    max_input_vars = 2500
    memory_limit = 2048M
    output_buffering = 0
    post_max_size = 2048M
    short_open_tag = 1
    upload_max_filesize = 2048M
    zlib.output_compression = 1
    ;-StackCP
    #EOF

    The site is with 20i. Would there be something in the server setup that needs turning off/on that is clashing with the enfold theme?

    SERVER
    Server architecture	Linux 5.14.0-570.25.1.el9_6.x86_64 x86_64
    Web server	Apache
    PHP version	8.3.26 (Supports 64bit values)
    PHP SAPI	fpm-fcgi
    PHP max input variables	2500
    PHP time limit	300
    PHP memory limit	2048M
    Max input time	60
    Upload max filesize	2048M
    PHP post max size	2048M
    cURL version	8.1.2 OpenSSL/1.1.1t-fips
    Is SUHOSIN installed?	No
    Is the Imagick library available?	Yes
    Are pretty permalinks supported?	Yes
    .htaccess rules	Custom rules have been added to your .htaccess file.
    robots.txt	Your site is using the dynamic robots.txt file which is generated by WordPress.
    Current time	2025-10-06T07:39:04+00:00
    Current UTC time	Monday, 06-Oct-25 07:39:04 UTC
    Current Server time	2025-10-06T08:38:59+01:00
    
    DATABASE
    Database Extension	mysqli
    Server version	10.6.18-MariaDB-log
    Client version	mysqlnd 8.3.26
    Database username	W7-RUgbyB0aTs-1724-353037373107
    Database host	wpdb-32.hosting.stackcp.net
    Database name	W7-RUgbyB0aTs-1724-353037373107
    Table prefix	gko86fse9kn6r_
    Database charset	latin1
    Database collation	
    Maximum allowed packet size	134217728
    Maximum connections number	1024
    
    IMAGE HANDLING
    Active editor	WP_Image_Editor_Imagick
    ImageMagick version number	1809
    ImageMagick version string	ImageMagick 7.1.1-43 Q16-HDRI x86_64 22550 https://imagemagick.org
    Imagick version	3.7.0
    File uploads	Enabled
    Maximum size of post data allowed	2048M
    Maximum size of an uploaded file	2048M
    Maximum effective file size	2 GB
    Max simultaneous file uploads	16
    Imagick Resource Limits	
    area: 502 GB
    disk: 9.2233720368548E+18
    file: 768
    map: 251 GB
    memory: 126 GB
    thread: 1
    time: 0
    ImageMagick-supported file formats	3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVCI, AVI, AVIF, AVS, BAYER, BAYERA, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FFF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, FTXT, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, JXL, K25, KDC, KERNEL, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MDC, MEF, MIFF, MKV, MNG, MONO, MOS, MOV, MP4, MPC, MPEG, MPG, MPO, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, QOI, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, RWL, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, SRW, STEGANO, STI, STRIMG, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YAML, YCBCR, YCBCRA, YUV
    GD version	2.3.3
    GD supported file formats	GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
    Ghostscript version	9.54.0

    Regards
    Colin

    Hi Mike,
    but if the remove_action is already integrated in the config-woocommerce/config.php (line 476+477) why doesn’t it work?

    Regards Biggy

    #1489763

    or if you only like to have those buttons if the link goes to a certain string:

    function custom_entry_link_if_biljetter_link(){
    ?>
    <script>
    (function($){
        $(document).ready(function(){
            const triggerString = "juliusbiljettservice";
            $('.avia-content-slider .slide-entry').each(function() {
                var readMore = $(this).find('.read-more-link'),
                    biljetterLink = $(this).find('.slide-image').attr('href');
                    if (biljetterLink && biljetterLink.includes(triggerString)) { 
                        biljetterButton = $('<div class="biljetter"><a href="'+biljetterLink+'" class="biljett-link">Biljetter<span class="more-link-arrow avia-svg-icon avia-font-svg_entypo-fontello" data-av_svg_icon="right-open-big" data-av_iconset="svg_entypo-fontello"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="15" height="32" viewBox="0 0 15 32" preserveAspectRatio="xMidYMid meet" role="graphics-symbol" aria-hidden="true"><path d="M0.416 27.84l11.456-11.84-11.456-11.904q-0.832-0.832 0-1.536 0.832-0.832 1.536 0l12.544 12.608q0.768 0.832 0 1.6l-12.544 12.608q-0.704 0.832-1.536 0-0.832-0.704 0-1.536z"></path></svg></span></a></div>');
                        $(this).closest('.slide-entry').find('.entry-footer').prepend($(biljetterButton));
                    }
                    $(this).closest('.slide-entry').find('.entry-footer').prepend($(readMore));        
            });
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_entry_link_if_biljetter_link');

    in this case only a second link is added if it goes to a page with juliusbiljettservice inside the link

    .entry-footer {
      display: flex;
      flex-flow: row wrap;
      gap: 20px;
      justify-content: flex-start;
    }
    
    .entry-footer a {
      display: inline-block;
      padding: 3px 8px;
    }
    
    .entry-footer .read-more-link a {
      background-color: #000;
      color: #FFF !important;
    }
    
    .entry-footer .biljetter a {
      background-color: #bf2e11;
      color: #FFF !important;
    }
    
    .entry-footer a path {
      fill: #FFF;
    }
    #1489761

    if you have on all Images the link to your biljetter you can do it this way.

    for styling the “buttons” you may be able to do this too:
    maybe a custom class on those post-sliders would be a good idea – not to influence all post-sliders

    put this to your child-theme functions.php:

    function custom_entry_link(){
    ?>
    <script>
    (function($){
        $(document).ready(function(){
            $('.avia-content-slider .slide-entry').each(function() {
                var readMore = $(this).find('.read-more-link'),
                    biljetterLink = $(this).find('.slide-image').attr('href'),
                    biljetterButton = $('<div class="biljetter"><a href="'+biljetterLink+'" >Biljetter<span class="more-link-arrow avia-svg-icon avia-font-svg_entypo-fontello" data-av_svg_icon="right-open-big" data-av_iconset="svg_entypo-fontello"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="15" height="32" viewBox="0 0 15 32" preserveAspectRatio="xMidYMid meet" role="graphics-symbol" aria-hidden="true"><path d="M0.416 27.84l11.456-11.84-11.456-11.904q-0.832-0.832 0-1.536 0.832-0.832 1.536 0l12.544 12.608q0.768 0.832 0 1.6l-12.544 12.608q-0.704 0.832-1.536 0-0.832-0.704 0-1.536z"></path></svg></span></a></div>');
                $(this).closest('.slide-entry').find('.entry-footer').prepend($(biljetterButton));
                $(this).closest('.slide-entry').find('.entry-footer').prepend($(readMore));        
            }); 
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_entry_link');

    with minimal styling:

    .entry-footer {
      display: flex;
      flex-flow: row wrap;
      gap: 20px;
      justify-content: flex-start;
    }

    it looks this way:

    #1489697
    aussiedropbear
    Participant

    Hi support.

    I have noticed this error over a few of my sites in that I am unable to proceed further onto PHP 8.x – I am upgrading from v 7.4

    In the last attempt, the site is completely up to date (theme, plugins etc. ) with the usual error returned:

    Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

    Please check that the mysqli PHP extension is installed and enabled.

    If you are unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress support forums.

    Could you tell me how I am to proceed to rectify this? Is this something my host needs to look at or is it something in the WordPress Core or Enfold theme?

    Cheers
    John

    #1489679
    Kern
    Guest

    Für unsere Homepage (WP 6.8.2, strahlenhterapie-augsburg.de) hat vor vielen Jahren “fizzy mint” ein Theme auf Basis von Enfold Version: 4.0.7 erstellt.
    Die alte Enfold Version verhindert leider ein Update auf PHP 8.
    Kann ich davon ausgehen, dass die neue Enfold Version abwärtskompatibel ist und mit dem alten „child-Theme“ funktioniert?
    Eine „Regular License“ dürfte genügen, oder?
    Gerne kann ich Ihnen das Child Theme zusenden.

    #1489675

    Hi,

    Thank you for the update.

    What happens when you add this script in the functions.php file?

    add_action('wp_footer', 'ava_auto_resize');
    function ava_auto_resize() {
        if (!is_page(703)) {
            return;
        }
        ?>
        <script>
        (function($) {
            var resizeInterval = setInterval(function() {
                $(window).trigger('resize');
            }, 1500);
    
            $(window).on('load', function() {
                clearInterval(resizeInterval);
            });
        })(jQuery);
        </script>
        <?php
    }
    

    Please make sure to purge the cache before checking the page.

    Best regards,
    Ismael

    #1489649
    JPGlobal
    Participant

    I’ve added the following to quick CSS:
    .header_color .av-hamburger-inner, .header_color .av-hamburger-inner::after, .header_color .av-hamburger-inner::before {
    background-color: #22467f !important;
    }
    Recently updated the PHP version and had many issues with images. Had to re upload most of them to get them to appear. However, the hamburger menu is stubborn.

    #1489511

    Hi,

    Thank you for the update.

    There was actually a “Save” button html element in the editor — we’re not sure how it got there, but we have removed it.

    <a class="avia-modal-save button button-primary button-large" href="https://xxxxxxx.com/wp-admin/post.php?post=6549&action=edit#save">Save</a>
    

    Best regards,
    Ismael

    #1489481

    In reply to: .scroll-down-link

    ok – you are right that on that icon the down-open-mini is used ! – you can change it by code snippet inside your child-theme functions.php:

    function avia_replace_default_icons($icons){
     $icons['svg__scrolldown'] =  array( 'font' =>'svg_entypo-fontello', 'icon' => 'down-open');
     return $icons;
    }
    add_filter('avf_default_icons','avia_replace_default_icons', 10, 1);

    you find those settings including the filter in init-base-data.php
    there you see that the scrolldown icon is correlated with the down-open-mini svg.

    charmap can be found in: charmap-svg.php

    Isn’t it just a question of size? Wouldn’t specifying the width/height alone lead to the same result?
    PS: in your case you are already use the svg icons. if someone uses the font-icons the snippet will be different –
    and correlation is on default by:
    'scrolldown' => array( 'font' => 'entypo-fontello', 'icon' => 'ue877' ),

    #1489452

    Topic: Footer error

    in forum Enfold
    BenjaminSpeedtsberg
    Participant

    I get this:
    Warning: Undefined array key “footer_option” in /var/www/viborgvaskerimaskiner.dk/public_html/wp-content/themes/enfold/footer.php on line 35

    Warning: Undefined array key “footer_behavior” in /var/www/viborgvaskerimaskiner.dk/public_html/wp-content/themes/enfold/footer.php on line 37

    Any suggestions?

    #1489434

    Hey BlewWeb,
    You could download the icon here and upload it to your Enfold Theme Options ▸ Import/Export ▸ SVG Iconset and Iconfont Manager
    Then add this snippet to your child theme function.php file or if you are not using a child theme you could use the WP Code plugin then add a new snippet, in the top right corner use the PHP snippet as the code type:
    Enfold_Support_2680
    then add this code and save.

    function avia_add_custom_icon($icons) {
    $icons['bluesky'] = array( 'font' =>'fontello', 'icon' => 'ue800');
    return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    
    function avia_add_custom_social_icon($icons) {
    $icons['BlueSky'] = 'bluesky';
    return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
    add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1);
    function avia_add_social_share_link_arguments($args){
        $bluesky = array('bluesky' => array("encode"=>true, "encode_urls"=>false, "pattern" => "https://bluesky.com/", 'label' => __("Share on BlueSky",'avia_framework')));
        $args = array_merge($bluesky, $args);
        return $args;
    }

    Then add this css to your Enfold Theme Options ▸ Quick CSS

    #top #wrap_all .av-social-link-bluesky:hover a {
    	  color: #fff;
        background-color: #1185FE;
    }

    Then choose the icon in your Enfold Theme Options ▸ Your Social Profiles
    You can also vote for this feature here.

    Best regards,
    Mike

    #1489398
    Martin
    Participant

    Dear All,

    since the update to Enfold 7.1.2 posts which are scheduled for a future publish date get published, but the read more link / link on the image / heading is linking to the blog page and not to the detail view of the corresponding post.
    Enfold 7.1.2
    php 8.2
    I’m using a child theme

    I’ve deactivated all other plugins, didn’t solve the problem. I also cleared the old css / js files via Theme Settings / Performance. I also installed a cache plugin WP Super Cache and deleted the Cache, the link on the scheduled post is still not working. Timezone WordPress installation and Server is synchronized. I also updated the permalink structure, but the issue remains.

    The link to the post detail view gets corrected if an editor is opening the post and save it again (which is a workaround but not a solution for scheduled posts).

    #1489357
    This reply has been marked as private.
    #1489330

    `<a href=”http://[18-Sep-2025 01:04:06 UTC] EXCEPTION: Unclosed ‘{‘ on line 1367 in /home/calvarybaptistdu/public_html/wp-content/themes/enfold-child/functions.php on line 1393″>Toggle a section when a button is clicked</a>

    #1489329
    CharlieTh
    Participant

    I am very evidently not good with javascript, but was hoping to follow “recipe” on

    to Show/Hide a section.

    I was trying to create what’s entitled

      Toggle a Section when a button is clicked.

    At end of functioning functions.php, I inserted the following code and got the error indicated in the subject line above.

    The debug indicates an [18-Sep-2025 01:04:06 UTC] EXCEPTION: Unclosed ‘{‘ on line 1367 in functions.php on line 1393 — that appears to be right on the line prior to the add_action. If I put in } (to close it?), I still get the error.

    Please, could somebody steer me right on this thing? I’m befuddled!

    Thanks for any help from an expert!
    ======================================================================================

    //——————————-
    // Toggle section
    //——————————-

    function toggle_on_click(){
    ?>
    <script>
    jQuery(window).on(‘load’, function(){

    // Button onClick event

    jQuery(“.toggle-button a”).on(“click”, function(e) {

    // Add your button events here

    console.log(” toggle section”);

    jQuery(“#toggle-section”).toggleClass(“hide-me”);

    console.log(” Prevent default “);

    e.preventDefault();

    });

    });
    </script>
    <!–?php<br /–> }

    add_action(‘wp_footer’, ‘toggle_on_click’);

    #1489327
    Jason
    Participant

    I am using Enfold 7.1.2 with PHP 8.4 with WooCommerce as a shop.

    When a customer order the “processing email” it leaves a blank space between address 1 and the city, ST ZIP, such as the following:

    Joe Bloe
    1 Street Address

    Los Angeles, CA 90029

    It should be:
    Joe Bloe
    1 Street Address
    Los Angeles, CA 90029

    How do I update the PHP code to remove the blank space on the email if there is no copy in Address 2 field?

    I see this in WooCommerce:

    To override and edit this email template copy woocommerce/templates/emails/customer-processing-order.php to your theme folder: enfold-child/woocommerce/emails/customer-processing-order.php.

    I could use some help how and waht to change from the following:

    <?php
    /**
    * Customer processing order email
    *
    * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-processing-order.php.
    *
    * HOWEVER, on occasion WooCommerce will need to update template files and you
    * (the theme developer) will need to copy the new files to your theme to
    * maintain compatibility. We try to do this as little as possible, but it does
    * happen. When this occurs the version of the template file will be bumped and
    * the readme will list any important changes.
    *
    * @see https://woocommerce.com/document/template-structure/
    * @package WooCommerce\Templates\Emails
    * @version 9.9.0
    */

    use Automattic\WooCommerce\Utilities\FeaturesUtil;

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit;
    }

    $email_improvements_enabled = FeaturesUtil::feature_is_enabled( ’email_improvements’ );

    /*
    * @hooked WC_Emails::email_header() Output the email header
    */
    do_action( ‘woocommerce_email_header’, $email_heading, $email ); ?>

    <?php echo $email_improvements_enabled ? ‘<div class=”email-introduction”>’ : ”; ?>
    <p>
    <?php
    if ( ! empty( $order->get_billing_first_name() ) ) {
    /* translators: %s: Customer first name */
    printf( esc_html__( ‘Hi %s,’, ‘woocommerce’ ), esc_html( $order->get_billing_first_name() ) );
    } else {
    printf( esc_html__( ‘Hi,’, ‘woocommerce’ ) );
    }
    ?>
    </p>
    <?php if ( $email_improvements_enabled ) : ?>
    <p><?php esc_html_e( ‘Just to let you know — we’ve received your order, and it is now being processed.’, ‘woocommerce’ ); ?></p>
    <p><?php esc_html_e( ‘Here’s a reminder of what you’ve ordered:’, ‘woocommerce’ ); ?></p>
    <?php else : ?>
    <?php /* translators: %s: Order number */ ?>
    <p><?php printf( esc_html__( ‘Just to let you know — we\’ve received your order #%s, and it is now being processed:’, ‘woocommerce’ ), esc_html( $order->get_order_number() ) ); ?></p>
    <?php endif; ?>
    <?php echo $email_improvements_enabled ? ‘</div>’ : ”; ?>

    <?php

    /*
    * @hooked WC_Emails::order_details() Shows the order details table.
    * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
    * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
    * @since 2.5.0
    */
    do_action( ‘woocommerce_email_order_details’, $order, $sent_to_admin, $plain_text, $email );

    /*
    * @hooked WC_Emails::order_meta() Shows order meta data.
    */
    do_action( ‘woocommerce_email_order_meta’, $order, $sent_to_admin, $plain_text, $email );

    /*
    * @hooked WC_Emails::customer_details() Shows customer details
    * @hooked WC_Emails::email_address() Shows email address
    */
    do_action( ‘woocommerce_email_customer_details’, $order, $sent_to_admin, $plain_text, $email );

    /**
    * Show user-defined additional content – this is set in each email’s settings.
    */
    if ( $additional_content ) {
    echo $email_improvements_enabled ? ‘<table border=”0″ cellpadding=”0″ cellspacing=”0″ width=”100%”><tr><td class=”email-additional-content”>’ : ”;
    echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
    echo $email_improvements_enabled ? ‘</td></tr></table>’ : ”;
    }

    /*
    * @hooked WC_Emails::email_footer() Output the email footer
    */
    do_action( ‘woocommerce_email_footer’, $email );

    • This topic was modified 6 months, 2 weeks ago by Jason.
    #1489324

    In reply to: external Widget

    This reply has been marked as private.
    #1489323

    In reply to: Widget page inactive

    Enfold 7.1.2
    php 8.3.25
    WP : 6.8.2
    I tested the site with all extensions disabled, without results.

    #1489316

    Topic: Widget page inactive

    in forum Enfold
    oxyde31
    Participant

    Hello,
    The widget page is completely inactive; none of the buttons are working. In debug mode, I get the following error message:
    Une erreur de type E_ERROR a été causée dans la ligne 153 du fichier /homepages/21/d858425693/htdocs/wp-content/themes/enfold/framework/php/widgets/widget-classes/class-avia-mailchimp.php. Message d’erreur : Uncaught TypeError: strip_tags(): Argument #1 ($string) must be of type string, array given in /homepages/21/d858425693/htdocs/wp-content/themes/enfold/framework/php/widgets/widget-classes/class-avia-mailchimp.php:153
    Stack trace:
    #0 /homepages/21/d858425693/htdocs/wp-content/themes/enfold/framework/php/widgets/widget-classes/class-avia-mailchimp.php(153): strip_tags()
    #1 /homepages/21/d858425693/htdocs/wp-includes/class-wp-widget.php(535): aviaFramework\widgets\avia_mailchimp_widget->form()
    #2 /homepages/21/d858425693/htdocs/wp-admin/includes/widgets.php(276): WP_Widget->form_callback()
    #3 /homepages/21/d858425693/htdocs/wp-includes/widgets.php(845): wp_widget_control()
    #4 /homepages/21/d858425693/htdocs/wp-admin/includes/widgets.php(119): dynamic_sidebar()
    #5 /homepages/21/d858425693/htdocs/wp-admin/widgets-form.php(552): wp_list_widget_controls()
    #6 /homepages/21/d858425693/htdocs/wp-admin/widgets.php(34): require(‘/homepages/21/d…’)
    #7 {main}
    thrown
    Thank you for your help

    #1489286
    Darren Harlow
    Guest

    I have one of your wordpress themes called “5 Arrows” that is at version 4.2. It says you are the author. I believe that it was purchased when I had a renovation done on my website. Currently I don’t have a way to get it updated, and now I am running into an issue with updating PHP beyond 7.4 due to compatability issues. Can someone help me out on this?

    #1489277

    In reply to: external Widget

    This reply has been marked as private.
    #1489268

    Hi,

    Thank you for the update.

    Try to add this code to the functions.php file to sort items on the blog page by modified date and on the songs page by published date:

    function ava_pre_get_posts_mod($query) {
        if (!is_admin() && $query->is_main_query()) {
            if (is_page(1230)) {
                $query->set('orderby', 'date');
                $query->set('order', 'DESC');
            }
    
            if (is_page(574)) {
                $query->set('orderby', 'modified'); 
                $query->set('order', 'ASC');
            }
        }
    }
    add_action('pre_get_posts', 'ava_pre_get_posts_mod');
    
    

    Best regards,
    Ismael

Viewing 30 results - 151 through 180 (of 16,888 total)