Viewing 30 results - 2,131 through 2,160 (of 11,206 total)
  • Author
    Search Results
  • #1249342

    Hey royaltask,

    Thank you for using Enfold.

    Check option Default Cookie Behaviour: User must accept and must opt in, only essential cookies selected

    and then you have the button action: Accept all cookies and services, dismiss notification

    That does exactly what you describe above.

    Best regards,
    Günter

    #1249174

    Could something like this happen if someone inadvertently hit the “Reset all options” button in the Enfold Child Theme Options? Is there a way to hide/remove that button?

    Thanks!
    – Robert

    #1249118

    Hey kalimeromax,

    The site looks good on my end. You may not see the changes until the cached files are cleared in your browser.

    Please perform the below steps to clear the browser cache:

    1. Disable “merging and compression” for CSS and JS files from Enfold > Performance.
    2. If a caching plugin is installed check the plugin settings and clear the cache and deactivate the plugins for testing purpose.
    3. Hard refresh by pressing Ctrl + Shift + F5 on your browser or press the F12 key to open chrome dev tools and right click on the refresh button and select “Empty Cache and Hard Reload”.

    Best regards,
    Victoria

    #1248945
    lkoloseus
    Participant

    Liebes Enfold Team!
    (bin im maintance modus)

    1. Ich habe für den “Accordion” Button mit CSS die Schriftart und die Schriftgröße verändert. Beides funktioniert am PC. Aber am handy wird nur die Schriftgröße angezeigt, nicht aber die richtige Schriftart (tangerine). Sie funktioniert aber bei normalem Text schon (weil ich “H” damit definiert habe). Aber wie gesagt, mit CSS beim Accordion geht es leider einfach nicht.

    2. Auf meiner Startseite (Home), soll im Header nur ein Hintergrundbild sein – weder das Menü im Header, noch der Footer sollen zu sehen sein.
    Ich habe hier im Forum schon viel recherchiert und alles was ich gefunden habe, ausprobiert. Also alle möglichen Quick CSS Versuche sind gescheitert. Auch der Versuch, bei Design – Menü ein neues Menü mit “Startseite” zu erstellen, dort “Home” reinzuziehen und beim Header und Footer das Hakerl rauszunehmen, hat nicht geklappt. Ich bin ratlos.

    Danke im Voraus!

    Lisa

    • This topic was modified 5 years, 5 months ago by lkoloseus.

    Hi,
    Thanks for the feedback and the login, I tried to investigate your shop page, but you don’t have woocommerce installed on your site, is this just temporary?
    I also investigated your child theme functions.php and wanted to disable this function:

    add_action('wp_footer', 'ava_add_rel_nofollow');
    function ava_add_rel_nofollow(){
    	?>
    	<script type="text/javascript">
    		(function($) {
    			$('.single_add_to_cart_button').attr('rel', 'nofollow sponsored');
    		})(jQuery);
    	</script>
    	<?php
    }

    but WordPress gave the error Uncaught Error: Call to undefined function is_shop() in wp-content/themes/enfold-child/functions.php:24 for this code in your child theme functions.php:

    function woocommerce_disable_shop_page() {
        global $post;
        if (is_shop()):
        global $wp_query;
        $wp_query->set_404();
        status_header(404);
        endif;
    }
    add_action( 'wp', 'woocommerce_disable_shop_page' );

    so I had to disable this also, this will have to be re-written if you plan on using it in the future.
    Please let us know when woocommerce is installed again so we can investigate further, but I believe your “noopener noreferrer” can be removed with this solution, please give it a try and let us know.

    Best regards,
    Mike

    Thorsten Holler
    Guest

    Hello, I want to update the outdated theme enfold 3.8.4 to the current version for the website peru-elektro.de, unfortunately I’m missing some details:
    1. was there already an update button for this theme?
    2. since the site has been set up by someone else, how do I get an installation license, since I unfortunately do not have one?
    3. the site was created about 4 years ago, but never updated, therefore a license question: Do I have to buy a new version for the current version 4.x and install it via FTP, or is it sufficient to log into the customer account with the (currently unknown) login data and then I can download the latest version of the themes?
    4. or should/can I simply buy a new license, install the current theme and it is good? What about the license, is it bound to the version (e.g. 4.x), or to a term (e.g. 1 year), or is the license unlimited in time?

    It would be nice if I would receive an answer/help as soon as possible, because a check showed that you can attack the WordPress installation via the outdated theme.

    Many greetings
    Thorsten Holler
    PeRu Electrical – Support

    Translated with http://www.DeepL.com/Translator (free version)

    #1248522
    alexx8675
    Participant

    Hi there,

    Getting a fatal error with WordPress 5.2 – my site is showing the error below. Login details are in private. Also, below my buttons (i believe full width buttons), the second color is showing at the bottom of it (red button – green line) – need to get that fixed too.

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function av_responsive_images::handler_wp_lazy_loading_enabled(), 1 passed in /home/alexc/public_html/wp-includes/class-wp-hook.php on line 287 and exactly 3 expected in /home/alexc/public_html/wp-content/themes/enfold/framework/php/class-responsive-images.php:418 Stack trace: #0 /home/alexc/public_html/wp-includes/class-wp-hook.php(287): av_responsive_images->handler_wp_lazy_loading_enabled(true) #1 /home/alexc/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(true, Array) #2 /home/alexc/public_html/wp-content/plugins/ewww-image-optimizer/classes/class-eio-lazy-load.php(111): apply_filters(‘wp_lazy_loading…’, true) #3 /home/alexc/public_html/wp-content/plugins/ewww-image-optimizer/common.php(249): EIO_Lazy_Load->__construct() #4 /home/alexc/public_html/wp-includes/class-wp-hook.php(287): ewww_image_optimizer_parser_init(”) #5 /home/alexc/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #6 /home/alexc/public_ in /home/alexc/public_html/wp-content/themes/enfold/framework/php/class-responsive-images.php on line 418
    There has been a critical error on your website.

    • This topic was modified 5 years, 5 months ago by alexx8675.
    #1248500

    hello my site has a problem since a few days, I have updated enfold to the latest version (which you have also indicated here) but the layout builder with the latest wordpress version no longer works well, for example, if I write the text of a button doesn’t take up space, when I update the page by publishing half of the page content is deleted, we can’t solve it and our customer is very angry. you can help us?

    #1248295

    Hey CenturyAC,

    Thanks for giving us admin access.
    WordPress 5.5 has removed the jQuery Migrate file which is used by our theme in its older versions, to temporarily fix it I have installed and activated Enable jQuery Migrate Helper to your site. This shows up jQuery Migrate Helper — Warnings encountered in the backend which are files that are dependent on the jQuery Migrate file.
    The latest version of Enfold has already patched this (version 4.7.6.3), you are currently using 3.6.1. Please update to the latest version of Enfold and once it is updated, you can remove the plugin I installed.
    You can follow this procedure to update to the latest version of Enfold since updating via Theme Options is not possible in your case (make sure to have a backup as well, just in case):

    1. Login to ThemeForest and download the Enfold theme.
    2. Right-click over the downloaded zip file and extract/unzip it.
    3. It should generate a new folder, open it and look for the enfold folder
    4. 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
    5. Log in to WordPress as and Admin.
    6. Install and activate a maintenance plugin and put your site in Maintenance mode.
    7. Go to Appearance > Themes, switch to a default WordPress theme like TwentyTwenty then delete Enfold.
    8. Click on the ADD NEW button.
    9. Click on the UPLOAD THEME button.
    10. Click BROWSE and choose enfold.zip file
    11. Click the INSTALL NOW button and switch to Enfold or your child theme.
    12. Remove the maintenance mode then deactivate and remove the maintenance plugin.

    If your live site needs to be up at all times then I would sugggest creating a staging site first and do the updates there and check if there are any issues.
    If there are no issues then apply the updates to your live site, if issues appear then you can make adjustments or you can ask us for help then once fixed, apply the updates to your site and any adjustments needed will be added immediately.
    Here’s a simple tutorial on how to create a staging site: https://themeisle.com/blog/wordpress-staging-site/

    Also, since envato is not using API key anymore, you will need to register the theme again in order to update via Theme Options, please follow the instructions in our documentation: https://kriesi.at/documentation/enfold/theme-registration/

    Best regards,
    Nikko

    force-media
    Participant

    Hi Guys,

    Hope you are doing well.

    I have a little problem. On a site where we are using Enfold the blog layout looks different when using Avia Page Builder.

    As an example:

    1. When using WordPress standard editor Blog layout looks as expected:

    2. When switching blog entry to Avia or creating a new one with Avia things like Headline, Post-Date, Social Buttons etc. are missing:

    Do you have any idea how this can be solved?

    Thanks,
    Frank

    #1248013

    Hello!

    I’m having an issue with custom styling of my buttons and it not updating on my page.

    Style notes for regular and hover include:
    Border: 3px, black, 0px radius
    Text: 16px, black, h4 font styling
    Background: white
    Hover Background: #f8f8f8

    The icons that I have set when hovered over are also getting cut off at the bottom and I’d like them larger in size.

    I think it may be because I don’t have a child theme installed? Just the initial Enfold theme. I originally had a different theme that used WP-Bakery and it was such a pain that I started over and restarted my WP, wiping everything. When I tried to install the child theme, it wasn’t working (an error about duplicates or something) and I didn’t need to work off of a direct template anyway so I just moved forward with building my site.

    #1247957

    Hi Dzammit,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    @joelgoldstein Please start a separate thread, describe your issue there, and give us a link to your website.

    Can you try to install and activate this plugin: https://wordpress.org/plugins/enable-jquery-migrate-helper/
    Wordpress 5.5 has made a major change which includes the removal of jQuery migrate plugin which is used by many plugins and themes, including the Enfold theme, with this plugin jQuery migrate is plugged in back to the site and most likely would fix that issue. This incompatibility issue was fixed beginning with Enfold 4.7.6.2 so we suggest to update to the latest version of Enfold so you can deactivate and remove this plugin unless some plugins haven’t updated yet for WP 5.5.
    If installing the plugin didn’t help, you can use this plugin https://wordpress.org/plugins/update-theme-and-plugins-from-zip-file/ and do the following steps (it also works for plugins):

    Make sure this plugin is installed and activated.
    Download zip file of your theme’s most recent version.
    Log in to WordPress as and Admin and go to Appearance > Themes.
    Click on the ADD NEW button.
    Click on the UPLOAD THEME button.
    Click BROWSE and choose your zip file you downloaded.
    Click the INSTALL NOW button.
    If it fails for some reason, you can do manual updating via FTP: https://kriesi.at/documentation/enfold/theme-update/#update-via-ftp (I would suggest via cPanel since FTP is slow)
    Let us know if it helps.

    Best regards,
    Victoria

    • This reply was modified 5 years, 5 months ago by Victoria.
    #1247953

    Hey dweddell,

    You can have a regular menu and add those buttons in the widget in the header, and then you will have the burger and the buttons.

    Here are the docs for you:

    Best regards,
    Victoria

    #1247839
    Artur667
    Participant

    Hi, I have a problem with Masory Gallery element (Flexible Masonry type).

    1. For the sake of discussion I need you to show two types of behavior, after clicking ‘load more’ button. While gallery is loading additional space is needed, so gallery sometimes:

    a. scales it self downwards: https://www.dropbox.com/s/8ebhe8b4avw39cv/down.webm?dl=0
    so pagination button moves downward, content underneath is pushed down;

    b. scales itself upwards: https://www.dropbox.com/s/xm15g4jdovab3ku/up.webm?dl=0
    so pagination button moves downward and content on the upside is pushed upwards.

    I have tried many different layouts to determine what is controlling this behavior and failed miserably, so if you could point me to some documentation which explains it it would be great.

    But most important question is: can I get rid of (b.) behavior? Maybe is there some code snippet to make gallery always scroll downwards?

    Setup info: fresh installation of WP (on some test domain), fresh installation of Enfold, no cache, no plugins, no customizations, etc. Latest versions.

    #1247825

    Dear Ismael,

    Both. All in one solution.

    Easy things, which are known from third parties plugins and other themes.

    User asks for easy things and good layout, where visitors have easy access to social pages (to gain follower or sharings), where Enfold users have easy things, which are known from other things of you cool website builder.

    Ismael, you have the best layout builder ever and inside this universe.
    But some things have the touch from the early 2000. I hope, you don’t stop the investigation, to give more to your users.

    Share or link – give the user, what he need.
    Let the user decide.
    Make processes easy instead to manipulate CSS things. The manual is horrible. Why you use this not as drag-drop-easy-listening-toolbox? See the image at the end.

    Cool icons, easy processes. (possible a toggle inside the existing social element to switch between share or link – easy revamp). I know, you can solve it. Please invest in the future.

    Most of your users need easy processes. Most people don’t want to manipulate CSS things. You see it at the calls. It’s less work here to answer the questions again and again.

    Workflow: as we know: at enfold menu, we define the social accounts.

    In my mind: An easy widget, where user can decide, which icons want to see, round, grey, rectangle, with hover effect or without. Whatever. Or fullwidth rectangle inside the sidebar. There are so many cool things outside this predefined set from the beginning of enfold.

    Easy usage and mirroring from one template via “page content” element. To have one place for the original social box. And if anything is changed (e.g. new network) user can change it at one place and can mirroring this via page content element.

    I work with the “page content” element very fast. Contact forms, trust banners, team members: All is at some preset pages. And I can mirror all. That was one of your biggest features to make work easier.

    A easy social widget for sidebar, footer, inside the content. Whatever the possibility is. This was my wish…and many users also, if you read the Google history and compare, what Kriesi’s competitors do.

    #1247815

    Topic: A header with buttons

    in forum Enfold
    Levante Golf
    Participant

    Hi,

    I´m trying to add a button to the header which appears to be easier said than done. I´ve followed the steps from this article https://kriesi.at/documentation/enfold/header/ and then from this article https://kriesi.at/documentation/enfold/add-button-elements-to-your-header/ which has got me to the point I´m at now which can be seen in the link below. I now have the following issues:

    1. I need the writing next to the logo on the left to stretch across the page rather than be stacked on top of each other
    2. I need the email address on the right to be aligned with the button above it
    3. The menu covers up nearly the whole image rather than sitting above it
    4. Viewed on a mobile screen the header is all over the place

    Advice on the above points would be very much appreciated in order to get me going again.

    Many thanks again and best regards

    #1247785
    royaltask
    Participant

    Hello, I am using Enfold on some websites and it works just fine. I use Enfold Cookie Consent because I live in Europe. Is there a way to have the layout architecture like Borlabs for better tracking results?
    Borlabs works like this:
    – Showing all Options disabled, only essenziell cookies are ticked.
    “Acept all” > tick all on automatically ON when the buttons is clicked
    – “Individual Options” “Save”…
    This would lead to better tracking results and easy use.
    Let us know.

    #1247677

    I’m glad I found this thread, but I’m slightly confused as to what I should use for what I’m doing. I have a button that links to the contact page. I want to use it as the CTA at the bottom of specific pages and posts. But if I want to change the way the button looks, or the text on it, or even what it links to, I’d have to change that on every single button I have out there.

    Other than the plug recommended by Guenni007, is there a way to make this happen in Enfold? I can’t find the “Page Content” element that Ismael suggested. Unless I’m thinking of the wrong thing when he says “Page Conent”. I probably am! LOL

    #1247647
    Treasad
    Participant

    Hi there

    I have seen the solution to this problem on your site but this button is unchecked already, and save doesn’t work at all when I edit anything in there. I’m also getting non stop critical error messages from wordpress saying there is a problem with the Enfold theme.

    The main problem at the moment though is the Avia layout builder will not load and I urgently need to make changes to the site. Could you please help me!

    Many thanks.
    Treasad

    #1247560

    Hi devesuki,

    I see, please go to Appearance > Menus, then select Main Menu.
    After it’s selected, go to the bottom near the Save Menu button, check Enfold Main Menu.
    As for the loading time since it’s in localhost, I’m not really sure why that happens since images, js and css files should be loaded locally as well.

    Best regards,
    Nikko

    Hi envato99,

    Can you try to install this plugin: https://envato.com/market-plugin/ and see if it helps with updating.

    If that’s not working then please do this method:

    1. Login to ThemeForest and download the Enfold theme.
    2. Right-click over the downloaded zip file and extract/unzip it.
    3. It should generate a new folder, open it and look for the enfold folder
    4. 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)
    5. Log in to WordPress as Admin and put the site in maintenance mode.
    6. Go to Appearance > Themes.
    7. Switch to a default WordPress Theme like TwentyTwenty and delete Enfold theme.
    8. Click on the ADD NEW button.
    9. Click on the UPLOAD THEME button.
    10. Click BROWSE and choose enfold.zip file
    11. Click the INSTALL NOW button

    Best regards,
    Nikko

    gooflo
    Participant

    Hi,

    is there a possibility to make the pinteres overlay button work also on featured images of posts? I thought it worked before but now not any more.

    I am using “Pin It Button On Image Hover And Post” plugin version 2.7.8, WordPress 5.5.1 and Enfold 4.7.6.3 with PHP 7.2.30-nmm1

    Best regards
    Florian

    • This topic was modified 5 years, 5 months ago by gooflo.
    #1246936

    Ok, I was able to resolve the issue by overriding the set_default_values function in the shortcode class.
    I added the function from enfold/config-templatebuilder/avia-template-builder/php/shortcode-template.class.php

    /**
    		 * helper function executed by aviaShortcodeTemplate::popup_editor that extracts the attributes from the shortcode and then merges the values into the options array
    		 *
    		 * @param array $elements
    		 * @return array $elements
    		 */
    		public function set_default_values($elements)
    		{
    			$shortcode = !empty($_POST['params']['shortcode']) ? $_POST['params']['shortcode'] : '';
    			
    
    			if($shortcode)
    			{
    				//will extract the shortcode into $_POST['extracted_shortcode']
    				$this->builder->text_to_interface($shortcode);
    				
    				//the main shortcode (which is always the last array item) will be stored in $extracted_shortcode
    				$extracted_shortcode = end($_POST['extracted_shortcode']);
    
    				//if the $_POST['extracted_shortcode'] has more than one items we are dealing with nested shortcodes
    				$multi_content = count($_POST['extracted_shortcode']);
    
    				//proceed if the main shortcode has either arguments or content
    				if(!empty($extracted_shortcode['attr']) || !empty($extracted_shortcode['content']))
    				{
    					if(empty($extracted_shortcode['attr'])) $extracted_shortcode['attr'] = array();
    					if(isset($extracted_shortcode['content'])) $extracted_shortcode['attr']['content'] = $extracted_shortcode['content'];
    
    					//iterate over each array item and check if we already got a value
    					foreach($elements as &$element)
    					{
    						if(isset($element['id']) && isset($extracted_shortcode['attr'][$element['id']]))
    						{
    							//make sure that each element of the popup can access the other values of the shortcode. necessary for hidden elements
    							$element['shortcode_data'] = $extracted_shortcode['attr'];
    						
    							//if the item has subelements the std value has to be an array
    							if(isset($element['subelements']))
    							{
    								$element['std'] = array();
    
    								for ($i = 0; $i < $multi_content - 1; $i++)
    								{
    									$element['std'][$i] = $_POST['extracted_shortcode'][$i]['attr'];
    									$element['std'][$i]['content'] = $_POST['extracted_shortcode'][$i]['content'];
    								}
    							}
    							else
    							{
    								$element['std'] = stripslashes($extracted_shortcode['attr'][$element['id']]);
    							}
    
    						}
    						else
    						{
    							if($element['type'] == "checkbox") $element['std'] = '';
    						}
    					}
    				}
    			}
    
    			return $elements;
    		}

    I modified it to be as follows:

        /**
         * helper function executed by aviaShortcodeTemplate::popup_editor that extracts the attributes from the shortcode and then merges the values into the options array
         *
         * @param array $elements
         * @return array $elements
         */
        public function set_default_values($elements)
        {
          $shortcode = !empty($_POST['params']['shortcode']) ? $_POST['params']['shortcode'] : '';
          
    
          if($shortcode)
          {
            //will extract the shortcode into $_POST['extracted_shortcode']
            $this->builder->text_to_interface($shortcode);
            
            //the main shortcode (which is always the last array item) will be stored in $extracted_shortcode
            $extracted_shortcode = end($_POST['extracted_shortcode']);
    
            //if the $_POST['extracted_shortcode'] has more than one items we are dealing with nested shortcodes
            $multi_content = count($_POST['extracted_shortcode']);
    
            //proceed if the main shortcode has either arguments or content
            if(!empty($extracted_shortcode['attr']) || !empty($extracted_shortcode['content']))
            {
              if(empty($extracted_shortcode['attr'])) $extracted_shortcode['attr'] = array();
              if(isset($extracted_shortcode['content'])) $extracted_shortcode['attr']['content'] = $extracted_shortcode['content'];
    
              //iterate over each array item and check if we already got a value
              foreach($elements as &$element)
              {
                if(isset($element['id']) && isset($extracted_shortcode['attr'][$element['id']]))
                {
                  //make sure that each element of the popup can access the other values of the shortcode. necessary for hidden elements
                  $element['shortcode_data'] = $extracted_shortcode['attr'];
                
                  //if the item has subelements the std value has to be an array
                  if(isset($element['subelements']))
                  {
                    $element['std'] = array();
    
                    for ($i = 0; $i < $multi_content - 1; $i++)
                    {
                      $element['std'][$i] = $_POST['extracted_shortcode'][$i]['attr'];
                      $element['std'][$i]['content'] = $_POST['extracted_shortcode'][$i]['content'];
                    }
                  }
                  else
                  {
                    $element['std'] = html_entity_decode(stripslashes($extracted_shortcode['attr'][$element['id']]));
                  }
    
                }
                else
                {
                  if($element['type'] == "checkbox") $element['std'] = '';
                }
              }
            }
          }
    
          return $elements;
        }

    The difference is that I changed this:
    $element['std'] = stripslashes($extracted_shortcode['attr'][$element['id']]);
    to this:
    $element['std'] = html_entity_decode(stripslashes($extracted_shortcode['attr'][$element['id']]));

    and included it in my shortcode element, which is finished below:

    <?php
    /**
     * 2 Column Module
     * 
     * Builds 2 column modules with image on one side and content on the other.
     */
    if ( ! defined( 'ABSPATH' ) ) {  exit;  }    // Exit if accessed directly
    
    if ( ! class_exists( 'avia_sc_two_column_module' ) )
    {
      class avia_sc_two_column_module extends aviaShortcodeTemplate
      {
        /**
         * Create the config array for the shortcode button
         */
        function shortcode_insert_button()
        {
          $this->config['version']    = '1.0';
          $this->config['self_closing'] = 'yes';
    
          $this->config['name']   = __( '2 Column Modules', 'avia_framework' );
          $this->config['tab']    = __( 'Content Elements', 'avia_framework' );
          $this->config['icon']   = AviaBuilder::$path['imagesURL'] . 'sc-blog.png';
          $this->config['order']    = 40;
          $this->config['target']   = 'avia-target-insert';
          $this->config['shortcode']  = 'av_two_column_module';
          $this->config['tooltip']  = __( 'Builds 2 Column Modules ', 'avia_framework' );
          $this->config['preview']  = false;
          $this->config['id_name']  = 'id';
          $this->config['id_show']  = 'yes';
          $this->config['alb_desc_id']  = 'alb_description';
        }
    
        function admin_assets()
        {
          $ver = AviaBuilder::VERSION;
         
        }
    
        function extra_assets()
        {
          wp_enqueue_style( 'two-column-module', get_stylesheet_directory_uri() . '/shortcodes/assets/twocolumnmodule.css', array( 'avia-layout' ), false );
        }
    
        /**
         * helper function executed by aviaShortcodeTemplate::popup_editor that extracts the attributes from the shortcode and then merges the values into the options array
         *
         * @param array $elements
         * @return array $elements
         */
        public function set_default_values($elements)
        {
          $shortcode = !empty($_POST['params']['shortcode']) ? $_POST['params']['shortcode'] : '';
          
    
          if($shortcode)
          {
            //will extract the shortcode into $_POST['extracted_shortcode']
            $this->builder->text_to_interface($shortcode);
            
            //the main shortcode (which is always the last array item) will be stored in $extracted_shortcode
            $extracted_shortcode = end($_POST['extracted_shortcode']);
    
            //if the $_POST['extracted_shortcode'] has more than one items we are dealing with nested shortcodes
            $multi_content = count($_POST['extracted_shortcode']);
    
            //proceed if the main shortcode has either arguments or content
            if(!empty($extracted_shortcode['attr']) || !empty($extracted_shortcode['content']))
            {
              if(empty($extracted_shortcode['attr'])) $extracted_shortcode['attr'] = array();
              if(isset($extracted_shortcode['content'])) $extracted_shortcode['attr']['content'] = $extracted_shortcode['content'];
    
              //iterate over each array item and check if we already got a value
              foreach($elements as &$element)
              {
                if(isset($element['id']) && isset($extracted_shortcode['attr'][$element['id']]))
                {
                  //make sure that each element of the popup can access the other values of the shortcode. necessary for hidden elements
                  $element['shortcode_data'] = $extracted_shortcode['attr'];
                
                  //if the item has subelements the std value has to be an array
                  if(isset($element['subelements']))
                  {
                    $element['std'] = array();
    
                    for ($i = 0; $i < $multi_content - 1; $i++)
                    {
                      $element['std'][$i] = $_POST['extracted_shortcode'][$i]['attr'];
                      $element['std'][$i]['content'] = $_POST['extracted_shortcode'][$i]['content'];
                    }
                  }
                  else
                  {
                    $element['std'] = html_entity_decode(stripslashes($extracted_shortcode['attr'][$element['id']]));
                  }
    
                }
                else
                {
                  if($element['type'] == "checkbox") $element['std'] = '';
                }
              }
            }
          }
    
          return $elements;
        }
        /**
         * Popup Elements
         *
         * If this function is defined in a child class the element automatically gets an edit button, that, when pressed
         * opens a modal window that allows to edit the element properties
         *
         * @return void
         */
        function popup_elements()
        {      
          
          $this->elements = array(
              
            array(
                'type'  => 'tab_container', 
                'nodescription' => true
              ),
                
            array(
                'type'  => 'tab',
                'name'  => __( 'Content', 'avia_framework' ),
                'nodescription' => true
              ),
            array(
                  'type'      => 'template',
                  'template_id' => 'toggle_container',
                  'templates_include' => array(
                              $this->popup_key( 'selected_project' )
                            ),
                  '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'
                  ),
            
                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'  => 'tab_container_close',
                'nodescription' => true
              )
    
              
              
            );
    
        }
        
        /**
         * Create and register templates for easier maintainance
         * 
         * @since 4.6.4
         */
        protected function register_dynamic_templates()
        {
          
          /**
           * Content Tab
           * ===========
           */
          
          $c = array(
                array(
                  'name'  => __( 'Module Content', 'avia_framework' ),
                  'desc'  => __( 'What is the content for this module?', 'avia_framework' ),
                  'id'    => 'module_content',
                  'type'  => 'tiny_mce',
                  'std'   => '',
                ),
                array(
                  'name'  => __( 'Module Image', 'avia_framework' ),
                  'desc'  => __( 'What is image for this module? (Select Large if available, Full Size if Large is not available.)', 'avia_framework' ),
                  'id'  => 'module_image',
                  'type'  => 'image',
                  'title' => __( 'Insert Image', 'avia_framework' ),
                  'button'  => __( 'Insert', 'avia_framework' ),
                  'std' => AviaBuilder::$path['imagesURL'] . 'placeholder.jpg' 
                ),
                array(
                  'name'  => __( 'Image Side?', 'avia_framework' ),
                  'desc'  => __( 'What side of the module will the image be on?', 'avia_framework' ),
                  'id'  => 'image_side',
                  'type'  => 'select',
                  'std'   => 'left',
                  'subtype' => array(
                            __( 'Left', 'avia_framework' ) => 'left',
                            __( 'Right', 'avia_framework' )  => 'right'
                          )
                )
            );
          
          $template = array(
                  array(  
                    'type'      => 'template',
                    'template_id' => 'toggle',
                    'title'     => __( '2 Column Module', 'avia_framework' ),
                    'content'   => $c 
                  ),
              );
          
          AviaPopupTemplates()->register_dynamic_template( $this->popup_key( 'selected_project' ), $template );
          
        }
        /**
         * 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 )
        {
    
          $params = parent::editor_element( $params );
          $params['content'] = null; //remove to allow content elements
    
          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 = '' )
        {
          global $avia_config, $more;
    
          extract( $atts );
    
          $cards = [];
          
          ob_start(); //start buffering the output instead of echoing it
          $img = wp_get_attachment_image( $attachment, 'large' );
          echo $this->render_module(ShortcodeHelper::avia_apply_autop( ShortcodeHelper::avia_remove_autop( $module_content ) ), $image_side, $module_image, $img);
          $output = ob_get_clean();
          
          avia_set_layout_array();
    
          return $output;
        }
    
        function render_module($content,$image_side,$module_image, $image) {
          $html = '';
          $html .= '<div class="two-column-module '.$image_side.'-side">';
          $html .= '<div class="image-container"><div class="module-image" style="background:url(\''.$module_image.'\'); background-repeat: no-repeat; background-position: center '.$image_side.'; background-size: cover"></div></div>';
          $html .= '<div class="content-container">'.$content.'</div>';
        return $html .= '</div>';
        }
    
       }
      
    }
    

    It also works properly with multiple tiny_mce boxes, too.
    Note – this is only a problem when you create a custom shortcode element and give it an id of something other than ‘content’.

    jamesgeiger
    Participant

    Well this is a strange new problem – the sidebars on most of my site’s pages have disappeared from the right – and now only appear below the main body contact as individual full-width sections! Here’s an example page:

    I went into Enfold and hit the Save button, hoping this would correct the problem but it doesn’t. Additionally, choosing to ‘force’ the right sidebar in each page’s sidebar options doesn’t solve the problem.

    I believe this just started happening with the most recent update of WordPress. The installed version of Enfold is 4.7.6.3, running PHP 7.3.12

    #1246932

    I was able to fix the issue, although I had to hard-code it into the theme file, which I hate doing.

    I added the below code to the enfold/config-templatebuilder/avia-template-builder/php/html-helper-class.php file.
    $element['std'] = html_entity_decode($element['std']);

    You can put it anywhere within the tiny_mce function.

    static public function tiny_mce($element)
    		{
    			//tinymce only allows ids in the range of [a-z] so we need to filter them. 
    			$element['id']  = preg_replace('![^a-zA-Z_]!', '', $element['id']);
    			
    			
    			/* monitor this: seems only ajax elements need the replacement */
    			$user_ID = get_current_user_id();
    			
    			if(get_user_meta($user_ID, 'rich_editing', true) == "true" && isset($element['ajax']))
    			{
    				global $wp_version;
    				
    				//replace new lines with brs, otherwise the editor will mess up. this was fixed with wp 4.3 so only do that in old versions
    				if ( version_compare( $wp_version, "4.3", '<' ) ) 
    				{
    					$element['std'] = str_replace("\n",'<br>',$element['std']);
    				}
    			}
    			
    			$element['std'] = html_entity_decode($element['std']);
    			
    			ob_start();
    	        wp_editor( $element['std'], $element['id'] , array('editor_class' => 'avia_advanced_textarea avia_tinymce', 'media_buttons' => true ) );
    	        $output = ob_get_clean();
    	        
    	        return $output;
    		}

    I haven’t yet found a place where I can override what gets passed into this function as the $element argument, in order to avoid hard-coding it into the file.

    Since I’ve gotten it this far, would it be possible for somebody on the team to possibly figure out how to finish resolving the issue, without having to hard-code it into the theme file?

    #1246829
    samdive
    Participant

    Hi
    I am using latest Enfold and latest WordPress but cannot see any Social Media icons or icons I put on buttons.

    Site is https://www.smartmatching.co.uk/

    Sign in details provided

    Hi CJ,

    Can you try this method:

    1. Login to ThemeForest and download the Enfold theme.
    2. Right-click over the downloaded zip file and extract/unzip it.
    3. It should generate a new folder, open it and look for the enfold folder
    4. 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)
    5. Log in to WordPress as and Admin.
    6. Install and activate this plugin: https://wordpress.org/plugins/update-theme-and-plugins-from-zip-file/
    7. Go to Appearance > Themes.
    8. Click on the ADD NEW button.
    9. Click on the UPLOAD THEME button.
    10. Click BROWSE and choose enfold.zip file
    11. Click the INSTALL NOW button

    Best regards,
    Nikko

    #1246747

    In reply to: Update Version

    Hi rachelryerson,

    I apologize for that, please do the following (make sure to have a backup first):

    1. Login to ThemeForest and download the Enfold theme.
    2. Right-click over the downloaded zip file and extract/unzip it.
    3. It should generate a new folder, open it and look for the enfold folder
    4. 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)
    5. Log in to WordPress as and Admin.
    6. Install and activate this plugin: https://wordpress.org/plugins/update-theme-and-plugins-from-zip-file/
    7. Go to Appearance > Themes.
    8. Click on the ADD NEW button.
    9. Click on the UPLOAD THEME button.
    10. Click BROWSE and choose enfold.zip file
    11. Click the INSTALL NOW button

    Best regards,
    Nikko

    #1246745

    Hi James,

    Please do the following (make sure to have a backup first):

    1. Login to ThemeForest and download the Enfold theme.
    2. Right-click over the downloaded zip file and extract/unzip it.
    3. It should generate a new folder, open it and look for the enfold folder
    4. 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)
    5. Log in to WordPress as and Admin.
    6. Install and activate this plugin: https://wordpress.org/plugins/update-theme-and-plugins-from-zip-file/
    7. Go to Appearance > Themes.
    8. Click on the ADD NEW button.
    9. Click on the UPLOAD THEME button.
    10. Click BROWSE and choose enfold.zip file
    11. Click the INSTALL NOW button

    Best regards,
    Nikko

    #1246733

    Hi Hugo_R,

    Please go to Enfold > Import/Export > Iconfont Manager, then click on Upload/Select Fontello Font Zip button then upload the font in private content.

    Best regards,
    Nikko

Viewing 30 results - 2,131 through 2,160 (of 11,206 total)