Viewing 30 results - 2,281 through 2,310 (of 16,896 total)
  • Author
    Search Results
  • Hey djcopywriter,

    Thanks for the login details. Could you try updating the theme to the latest version (4.9.2) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update. The update is available in the theme options, if you select to check manually. If updating doesn’t help, then please try updating your PHP version to 7.4 or higher.

    Best regards,
    Rikard

    Hey chryscoulter,

    Thanks for the login details. I’m not sure why that is appearing to be honest with you, but updating the PHP version would be the first place to start. Doesn’t your hosting company offer PHP 7.4 or higher? You could verify that debugging is turned off on your installation as well: https://wordpress.org/support/article/debugging-in-wordpress/

    Best regards,
    Rikard

    Dear Guenni007,
    Thanks very much. Yes, of course I use a ChildTheme. I also wrote it into its functions.PHP. exactly as you describe it. But it doesn’t solve the problem. On the contrary, the buttons for the Prev, Next navigation then disappear everywhere.

    regards

    Dear Guenni 007,
    thanks a lot for your support. I am not familiar with php. I tried your code in functions php but it had no effect on my issue. I had also a look on the filter and made a few tries. But could not solve it myself.
    There are two things that I would need but still not get to work:
    1. prev next buttons unfortunately disappear as soon i add a fullwidth Slide to a Post. I want them to remain.
    2. the prev-next- nav should only navigate between posts of the same category.

    I would be very glad if you could have a further look.

    regards

    #1345953

    Hi, yes. it also says this at the bottom of the error file:

    Stack trace:
    #0 /home3/dolandru/public_html/dolanddesign/wp-content/themes/enfold/framework/php/widgets/widget-classes/class-avia-instagram.php(844): aviaFramework\widgets\avia_instagram_widget->schedule_cron_job(14400)
    #1 /home3/dolandru/public_html/dolanddesign/wp-includes/class-wp-hook.php(298): aviaFramework\widgets\avia_instagram_widget->handler_scheduled_filecheck()
    #2 /home3/dolandru/public_html/dolanddesign/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
    #3 /home3/dolandru/public_html/dolanddesign/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
    #4 /home3/dolandru/public_html/dolanddesign/wp-cron.php(117): do_action_ref_array(‘av_instagram_sc…’, Array)
    #5 {main}
    thrown in /home3/dolandru/public_html/dolanddesign/wp-content/themes/enfold/framework/php/widgets/widget-classes/class-avia-instagram.php on line 1100
    [18-Mar-2022 12:47:13 UTC] PHP Fatal error: Uncaught Error: Call to undefined function aviaFramework\widgets\wp_unschedule_hook() in /home3/dolandru/public_html/dolanddesign/wp-content/themes/enfold/framework/php/widgets/widget-classes/class-avia-instagram.php:1100

    ^ over and over. I updated my WordPress to the latest, and I have installed the latest 4.9 Enfold. I believe it just started saying this “Stack trace” stuff today after I updated WP.

    chryscoulter
    Participant

    hello! Trying to resolve this error on my website:

    Warning: session_start(): Cannot start session when headers already sent in /nfs/c03/h03/mnt/53173/domains/carousel-usa.com/html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php on line 56

    Warning: session_start(): Cannot start session when headers already sent in /nfs/c03/h03/mnt/53173/domains/carousel-usa.com/html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio/portfolio.php on line 34

    Warning: Cannot modify header information – headers already sent by (output started at /nfs/c03/h03/mnt/53173/domains/carousel-usa.com/html/index.php:2) in /nfs/c03/h03/mnt/53173/domains/carousel-usa.com/html/wp-includes/pluggable.php on line 1355

    Warning: Cannot modify header information – headers already sent by (output started at /nfs/c03/h03/mnt/53173/domains/carousel-usa.com/html/index.php:2) in /nfs/c03/h03/mnt/53173/domains/carousel-usa.com/html/wp-includes/pluggable.php on line 1358

    I saw in a previous thread that this could be a php issue, the site is currently using 7.3 and we were going to migrate so we can get to 7.4. Any other ideas what could cause that so I don’t have to do the migration? thanks!

    ok I also updated the theme manually to 4.9.2 and still have the errors… and also have a sticky header issue now… Please let me know!

    • This topic was modified 4 years, 1 month ago by chryscoulter. Reason: added creds
    #1345814
    keir2012
    Participant

    I’m happy with enfold website in past days. but recently after yesterday updating. my popup window disappear.
    when visitor click the “Ask A Quote” button. there’s a cf7 contact form coming on a modal window before.
    but now it just go to the top when click. you can check the code:

    <h3>Ask A Quote</h3>
    
    <div id=”test-popup” class=”white-popup mfp-hide”>
    [contact-form-7 id=”7887″ title=”Contact form 1″]
    </div>

    and the PHP function code has be done before:

    function popup_inline() { ?>
      <script>
        jQuery(window).on('load', function(){
          jQuery('.open-popup-link').magnificPopup({
            type:'inline',
            midClick: true // Allow opening popup on middle mouse click. Always set it to true if you don’t provide alternative source in href.
          });
        });
      </script>
    <?php }
    
    add_action('wp_head', 'popup_inline');

    .

    now the function is not working. could you please help me with this?
    the login link under private content. thanks

    #1345649

    Agree with @ishish

    I can confirm that WooCommerce products are failing to display on a site updated to 4.9.1-dev-1 this morning for me.
    I’ve rolled back to 4.9 and all is displaying as expected.

    Log file contains recurring fatal error:
    2022-03-23T09:50:42+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on string in /var/www/web/wp-content/themes/enfold/config-woocommerce/config.php:117
    Stack trace:
    #0 /var/www/web/wp-includes/class-wp-hook.php(307): avia_woocommerce_add_body_classes(Array, Array)
    #1 /var/www/web/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array)
    #2 /var/www/web/wp-includes/post-template.php(836): apply_filters(‘body_class’, Array, Array)
    #3 /var/www/web/wp-includes/post-template.php(595): get_body_class(Array)
    #4 /var/www/web/wp-content/themes/enfold/header.php(208): body_class(‘stretched rtl_c…’)
    #5 /var/www/web/wp-includes/template.php(770): require_once(‘/var/www/web/wp…’)
    #6 /var/www/web/wp-includes/template.php(716): load_template(‘/var/www/web/wp…’, true, Array)
    #7 /var/www/web/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
    #8 /var/www/web/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header(‘shop’)
    #9 /var/www/web/wp-includes/template-loader.php(106): includ in /var/www/web/wp-content/themes/enfold/config-woocommerce/config.php on line 117

    • This reply was modified 4 years, 1 month ago by Steve.
    #1345648

    I can confirm that WooCommerce products are failing to display on a site updated to 4.9.1-dev-1 this morning for me too.
    I’ve rolled back to 4.9 and all is displaying as expected.

    Log file contains recurring fatal error:
    2022-03-23T09:50:42+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on string in /var/www/web/wp-content/themes/enfold/config-woocommerce/config.php:117
    Stack trace:
    #0 /var/www/web/wp-includes/class-wp-hook.php(307): avia_woocommerce_add_body_classes(Array, Array)
    #1 /var/www/web/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array)
    #2 /var/www/web/wp-includes/post-template.php(836): apply_filters(‘body_class’, Array, Array)
    #3 /var/www/web/wp-includes/post-template.php(595): get_body_class(Array)
    #4 /var/www/web/wp-content/themes/enfold/header.php(208): body_class(‘stretched rtl_c…’)
    #5 /var/www/web/wp-includes/template.php(770): require_once(‘/var/www/web/wp…’)
    #6 /var/www/web/wp-includes/template.php(716): load_template(‘/var/www/web/wp…’, true, Array)
    #7 /var/www/web/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
    #8 /var/www/web/wp-content/plugins/woocommerce/templates/single-product.php(22): get_header(‘shop’)
    #9 /var/www/web/wp-includes/template-loader.php(106): includ in /var/www/web/wp-content/themes/enfold/config-woocommerce/config.php on line 117

    • This reply was modified 4 years, 1 month ago by Steve.
    #1345569

    Thank you Yigit.Yes, I’m desperate for help.

    At this point I just need to get that title off asap. I don’t care about SEO at the moment. The client wants it off and so do I.

    When I tried making a child theme, when I enabled it, all of my content was gone, so that is not an option for an existing website.

    I don’t know where the file is that I’m supposed to use what Guenni007 said to add. Don’t know where to add it within the file.

    I don’t care if I have to re-add it upon updates. I need that title off. No other website I’ve ever seen has that on there. Just Enfold theme websites and not all of those.

    The Quick Css used to work, but it doesn’t now, I don’t know why.

    Just please, someone from Kriesi tell me how to get this off. SEO or not.

    Yes, I’d like the SEO, but no one is telling me where this php file is or where to put the code within the php

    I don’t know what “root” means.

    Public_html > what then? Wp-content? then themes? Then Enfold?

    I don’t know and need to know asap.

    Please, please, please help me get this title off the images on hover in a way I can understand!! PLEASE!!! I’m begging here.
    Why hasn’t this been sorted out before? Like I said, I went years with it on there, but over the years it’s bothered me more and more.

    I know it bothers others as well, and they are probably just staying silent as I did for so many years.

    If it’s so vital for SEO then why in the heck are 100s of millions of websites that don’t have that title displaying ranking #1 or at the very least on page 1?

    Just help me get it off if a way I can understand. I’m a novice or I wouldn’t have paid extra for support.

    #1345562

    can you try this in your child-theme functions.php:

    ok i had to show you the image of that snippet, because boardsoft will allways transform the included entities to the signs:
    you had to type it your own:
    ( click to enlarge )

    or copy&paste from pastebin: https://pastebin.com/k0f385TJ

    by the way – that does not come from enfold – it is a wordpress based style. from media.php and function is : wp_underscore_playlist_templates

    #1345538

    In reply to: Hyphenation

    Hallo! Ach so, Du meintest meine Seite, ja das ist nur eine Baustelle, mit meinem Logo drauf. Die ist in der Tat minimalistisch. ;D
    Das Statistiktool sollte ich dann vielleicht erstmal deaktivieren…

    Und ich hatte nicht bemerkt, dass Du ein Teilnehmer, bist. ;-)
    Und ja, wie gesagt, ich habe auch im chrome developer tool gesehen, dass es da so: Donau#shy#dampf#shy#schiffahrts#shy#gesellschafts#shy#kapitän umgesetzt wird.
    Aber leider verstehe ich die Anweisung, wie man es machen soll nicht. Also wie man das:
    https://github.com/KriesiMedia/enfold-library/blob/1ec96192922cad4536567590394faa34f6d87b93/integration%20plugins/Enfold/Special%20Character%20Translation/avia-special-characters/avia-special-characters-plugin.php
    in die wordpress seite einfügt.?

    Und ja, ich habe im Textblock unter > advanced > Custom CSS Class > hyphenate eingegeben, nix weiter, aber es werden keine Silben getrennt.

    Es kann doch kein Hexenwerk sein, dass eine einfache Silbentrennung funktioniert. Dachte ich.

    Wäre großartig, wenn Du mir weiterhelfen könntest. :)

    #1345486

    Hi. That’s very sweet of you to go to the trouble to help, but I’ve tried doing Child themes in the past and regardless of the documentation provided, I fail.

    The last time I tried it, my site I worked days on all disappeared. I don’t have time to redo all the work. I understand what the Child theme is supposed to do, I just don’t know how it works or if I did it right, etc. I’m thoroughly, completely, totally baffled by Child themes.

    I do want to keep SEO, but nonetheless, I still have no clue where to find the php file that needs the code added to it, what folder(s) it’s in, etc.

    Do I just add it to the bottom of the file?

    Is the php file that needs the code added to it under the main WP content folder, then what folder after that and after that? Then which functions php file within whichever folder?

    I have no clue. Bottom line, there should be a built in solution to this since the Enfold demo is misleading in that the titles do not show up on the images or slider images on the 2017 demo or the shop demo that I’ve looked at.

    No other website platform or theme that I’ve seen in years of being on the web, that rank well on SEO has this pop up with the image title in it. It looks awful. It’s confusing and ugly to the visitor too.

    Thanks.

    #1345438

    Hi,

    Are you referring to the title popup encircled in the screenshot below? That is a default browser title tooltip which displays if an element has the title attribute and it doesn’t display immediately on hover, only when the user decided to keep the mouse pointer over the image for a few seconds, which probably means that they really like to see the title or the image description. Search engines also like title attributes, so we wouldn’t recommend removing them. But if you still want to proceed, just add the code that @guenni007 provided in the functions.php file.

    Screenshot: https://1drv.ms/u/s!AjjTfXSRbKTvwEkjNiYfIuFRtd9M?e=g8tUu6

    Where do you see the title popup in your site? Please provide a screenshot.

    Best regards,
    Ismael

    #1345426
    Ueli
    Participant

    Dear Enfold Support

    As suggested by Enfold’s support member Ismael, I open this separate topic about the issue I mentioned firstly on another thread: https://kriesi.at/support/topic/accordion-toggles-deeplinking/#post-1327294

    I have an accordion with the toggle’s mode “one toggle open at a time”. If I open the first toggle of an accordion on bigger screens (desktop view) and scroll down to the second toggle and open it, the first toggle closes and the document scrolls to the top of the second toggle but the toggle is covered by the sticky header. This always happens if you click from toggle to toggle. On small screens (mobile view) the open toggle is always visible on the top of the page as expected because the header isn’t sticky. I made a short screen video (see link in Private Content) that shows what I mean.

    Ismael has provided the following code for the child theme’s functions.php to control the scroll offset:

    function avf_header_setting_filter_mod($header) {
            if(!wp_is_mobile()) {
    	    $header['header_scroll_offset'] = $header['header_scroll_offset'] - 100;
            }
    	return $header;
    }
    add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 9999, 1);

    Ismael also specified his solution as follows:

    The theme actually ignores the main container’s offset on mobile view, so the filter above will not work. You will also have to edit the themes/enfold/js/avia.js file as instructed in this older thread.
    https://kriesi.at/support/topic/scroll-postion-one-page-mobile/#post-1338429

    I followed Ismael’s instructions but they haven’t the expected impact yet. On desktop browsers, the sticky header still covers the toggles of the accordion.

    I found out that Ismael’s PHP function might not be reloaded or reinitialized properly if you click from toggle to toggle within the same browser window/tab. It only seems to work properly if you copy the URL of a toggle in the address bar of a new browser window/tab. Then the toggle is at the defined scroll-offset position (according to the PHP function) below the sticky header.

    I really appreciate if you could provide a reliable solution very soon.
    Please see site details in Private Content.

    Kind regards
    Ueli

    #1345414
    christiemade
    Participant

    After upgrading to 4.9 I am now getting an error on my page that uses the Partner/Logo Element

    [21-Mar-2022 18:57:40 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method avia_partner_logo::default_args() in /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php:789
    Stack trace:
    #0 /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php(858): avia_sc_partner_logo->get_element_styles(Array)
    #1 /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1142): avia_sc_partner_logo->shortcode_handler(Array, '', 'av_partner', Array)
    #2 /wp-includes/shortcodes.php(356): aviaShortcodeTemplate->shortcode_handler_prepare(Array, '', 'av_partner')
    #3 [internal function]: do_shortcode_tag(Array)
    #4 /wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(av_par...', 'do_shortcode_ta...', '</p>[av_partner...')
    #5 /wp-content/themes/enfo in /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php on line 789
    • This topic was modified 4 years, 1 month ago by christiemade.
    #1345384
    lzevon
    Participant

    I did look and many topics were quite old so I wanted to know, based on v4.9+, WordPress 5.9.2+, and PHP 7.4+, what is considered the best practice when dealing with a server that has Redis Cache enabled? I saw there were a lot of anomalies with the Post CSS file that is generated. In some situations the file would have been deleted but the object cache still says the CSS file exists causing the page to load without the proper CSS.

    I do see there is few Advanced Settings within Enfold to try and fix WordPress Object Cache bugs, but that seemed more related to files being generated non-stop but this seems to be a different issue. But even if this is similar, the names for the fixes don’t seem very self-explanatory. I also see there is an option to disable the Post CSS file generation in the first place.

    So what I would like to know is what is the best way to handle this situation? Is it easier/better to just disable the Post CSS file generation? Is there no real significant impact there? Or is it better to use one of the options in the Advanced Settings, and if so, which one?

    == Theme Settings -> Performance -> Advanced Options ==
    Unique timestamp of merged files and WP object cache bug:
    – Add unique timestamps (= default)
    – Disable adding unique timestamps only
    – Fix WP bug, add unique timestamps
    – Fix WP bug, disable unique timestamps

    == Disable Feature (in functions.php) ==
    /**
    * Filter to skip css file generation.
    * You can add logic to skip for certain pages/posts only.
    *
    * @since 4.8.6.1
    * @param boolean $create
    * @return boolean true | false or anything else to skip generation of css file
    */
    add_filter(‘avf_post_css_create_file’, ‘__return_false’);

    #1345379
    tlachev
    Participant

    My site is running Enfold 4.7.3. My hosting provider (Bluehost) wants me to upgrade to PHP 8.+ but the theme is failing. According to my developer “I checked the code. Some theme functions are deprecated in PHP 8” For example, we get the error below:
    An error of type E_COMPILE_ERROR was caused in line 2161 of the file /home1/prologik/public_html/wp-content/themes/enfold/config-layerslider/LayerSlider/helpers/phpQuery.php. Error message: Array and string offset access syntax with curly braces is no longer supported

    What’s the resolution path here?

    #1345368

    No, I do not use the lightbox – that photo and explanation was examples of Kriesi’s own content. To show that on their demo, they have removed the titles of the images, just like everyone wants their site to look like.

    They only had that one place on their demp 2017 home page that still had the titles showing over the image on hover.

    I feel like that is being dishonest to hide the titles on the demo, but then not fix the same issue Kriesi didn’t want on their demo for us users.

    Again, I do not know where to find this function php file, I do not know where to insert what you’re talking about.

    I really need help. Please.

    #1345333

    Hi. It looks absolutely hideous. It’s confusing to the visitor.

    I looked at the demo prior to purchasing the theme and it doesn’t do it on the demo. Now that’s very interesting, that you’ve taken it off your demo – but when one purchases the theme and creates a website, then we have to deal with this.

    I don’t understand why every other platform or theme doesn’t have the title popping up when you hover over an image, but Avia makes it mandatory.

    The SEO of those using Enfold shouldn’t have to be disrupted when no other platform does this with the title.

    I found one place on the 2017 demo that has the title popping up – the rest of the home page doesn’t. Wonder why? Screenshot is attached in the private area. It looks doubly horrible in the example I captured on the 2017 demo, home page.

    I have never been able to create a child theme successfully.

    Absolutely no clue where the functions.php is located that I’m supposed to add the code copied below.

    As many people as have requested the removing or hiding the title, I’d think something could be done either on the Enfold side or the Avia side. I didn’t complain for the first 5 years of using Enfold, but I didn’t like it.

    I have never heard anyone say, “Oh wow, I love having the title of the image popping up upon hovering over the image.”

    It just looks awful!! Probably explains why I’ve never, ever seen it before using Enfold.

    Where is this php file located and where in the file do I paste the following in? Thanks.

    function temporary_removal_title_tags(){
    ?>
    <script>
      window.onload = function() {
        //var links = document.querySelectorAll('a,img,div[title]');
          var links = document.getElementsByTagName("img");
          for (var i = 0; i < links.length; i++) {
              var link = links[i];
              link.onmouseover = function() {
                  this.setAttribute("org_title", this.title);
                  this.title = "";
              };
              link.onmouseout = function() {
                  this.title = this.getAttribute("org_title");
              };
              link.onclick = function() {
                  this.title = this.getAttribute("org_title");
              };
          }
      };
    </script>
    <?php
    }
    add_action('wp_footer', 'temporary_removal_title_tags');
    #1345314

    Hey tebitron gmbh,

    Thank you for the inquiry.

    This is possible but you will have to modify the enfold/config-templatebuilder/avia-shortcodes/google_maps/google_maps.php around line 785, look for this code.

    	if( 'confirm_link' == $google_link )
    				{
    					$html_overlay = '<a href="#" class="av_gmaps_confirm_link av_text_confirm_link' . $button_class . '">';
    					$text_overlay = esc_html( $confirm_button );
    				}
    				else
    				{
    					$html_overlay .= '<a class="av_gmaps_page_only av_text_confirm_link' . $button_class . '" href="' . esc_url( $url ) . '" target="_blank">';
    					$text_overlay = esc_html( $page_link_text );
    				}
    

    Replace it with:

    $html_overlay = '<a href="#" class="av_gmaps_confirm_link av_text_confirm_link' . $button_class . '">';
    $text_overlay = esc_html( $confirm_button );
    

    This will replace the new tab link with the button that refreshes or loads the map on click.

    Have you tried setting the map’s Advanced > Conditional Load > Link to Google Maps settings to the second option (User must accept to show google maps)?

    Best regards,
    Ismael

    #1345312

    Hey nemapo77,

    Thank you for the inquiry.

    Adding this filter in the functions.php file should help to properly set the meta robots tag on product pages.

    if(!function_exists('avia_woocommerce_set_follow'))
    {
        function avia_woocommerce_set_follow($meta)
        {
            if( is_product_category() || is_shop() ) {
                $meta = '<meta name="robots" content="index, follow" />' . "\n";
            }
            return $meta;
        }
    
        add_filter('avf_set_follow','avia_woocommerce_set_follow', 10, 1);
    }
    

    Related thread: https://kriesi.at/support/topic/header-on-site-marked-with-noindex/

    Best regards,
    Ismael

    #1345310

    Hi,

    How did you create the ‘Example take two’ topic? We added this filter in the functions.php file to allow shortcodes in the topic editor.

    add_filter( 'avf_alb_exec_sc_only', function($exec_sc_only, $obj_sc, $atts, $content, $shortcodename, $fake) {
    	return true;
    }, 10, 6);
    
    add_filter("bbp_get_reply_content", function($content, $id) {
    	return do_shortcode($content);
    }, 10, 2);
    

    We then created another topic using the frontend editor and the shortcodes are now rendering correctly.

    Best regards,
    Ismael

    Hi,
    I didn’t check the Aktuell page, I was looking at the post that you had originally linked to.
    So to work for both I change to this:

    function metaAfterTitle(){
    ?>
     <script>
     (function($){
    $("article.post-entry").each(function() {
            var postTitle = $(this).find('.post-title.entry-title ').css({'margin-bottom':'0','padding-bottom':'0'});
            var metaInfo =  $(this).find('.post-meta-infos');
    	 $(this).find(metaInfo).insertAfter( $(this).find(postTitle));
           });
    })(jQuery);
     </script>
    <?php
    }
    add_action('wp_footer', 'metaAfterTitle');

    and adding this css for a category was too close the date on the Aktuell page.

    .html_modern-blog #top.page-id-16257 .post-entry .blog-categories {
        top: -15px;
    }

    This script doesn’t affect the sidebar on your Aktuell page, it was down because you have a color section on the page, I disabled the sidebar and added it using the widget element and now it shows correctly, please check.

    Best regards,
    Mike

    #1345209

    In reply to: Captions in Image List

    Hey joschro,
    Thank you for your patience, for the Ajax Portfolio Preview Settings to have the Preview Images display the gallery caption in the lightbox when the Image List is used.
    you would need to modify the \enfold\config-templatebuilder\avia-shortcodes\portfolio\portfolio.php file, in v4.9 lines 1467 – 1485 should look like this:

    			foreach( $attachments as $attachment )
    			{
    				//	create array with responsive info for lightbox
    				$img = Av_Responsive_Images()->responsive_image_src( $attachment->ID, 'large' );
    
                    $alt = get_post_meta( $attachment->ID, '_wp_attachment_image_alt', true );
                    $alt = ! empty( $alt ) ? esc_attr( $alt ) : '';
                    $title = trim( $attachment->post_title ) ? esc_attr( $attachment->post_title ) : '';
                    $description = trim( $attachment->post_content ) ? esc_attr( $attachment->post_content ) : '';
    
    				$img_tag = "<img src='{$img[0]}' title='{$title}' alt='{$alt}' />";
    				$img_tag = Av_Responsive_Images()->prepare_single_image( $img_tag, $attachment->ID, $this->atts['lazy_loading'] );
    
    				$lightbox_attr = Av_Responsive_Images()->html_attr_image_src( $img, false );
    
    				$output .= "<a {$lightbox_attr} class='portolio-preview-list-image' title='{$description}' >";
    				$output .=		$img_tag;
    				$output .= '</a>';
    			}

    change this block to this:

    			foreach( $attachments as $attachment )
    			{
    				//	create array with responsive info for lightbox
    				$img = Av_Responsive_Images()->responsive_image_src( $attachment->ID, 'large' );
    
                    $alt = get_post_meta( $attachment->ID, '_wp_attachment_image_alt', true );
                    $alt = ! empty( $alt ) ? esc_attr( $alt ) : '';
                    $title = trim( $attachment->post_title ) ? esc_attr( $attachment->post_title ) : '';
                    $description = trim( $attachment->post_content ) ? esc_attr( $attachment->post_content ) : '';
                    $caption = trim( $attachment->post_excerpt ) ? wptexturize( $attachment->post_excerpt ) : '';
    
    				$img_tag = "<img src='{$img[0]}' title='{$title}' alt='{$alt}' />";
    				$img_tag = Av_Responsive_Images()->prepare_single_image( $img_tag, $attachment->ID, $this->atts['lazy_loading'] );
    
    				$lightbox_attr = Av_Responsive_Images()->html_attr_image_src( $img, false );
    
    				$output .= "<a {$lightbox_attr} class='portolio-preview-list-image' title='{$caption}' >";
    				$output .=		$img_tag;
    				$output .= '</a>';
    			}

    I recommend using a child theme, Read about using a Child Theme, so that this customization won’t be lost with updates. I have linked to the most current child theme below that includes the function to add customized theme elements:

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

    once you have installed the child theme and inported the parent theme settings as in our documentation above, then you can create a directory in your child theme for the portfolio file like this:
    /enfold-child/shortcodes/portfolio/portfolio.php
    I have included the custom portfolio.php file that I tested with below.

    Best regards,
    Mike

    #1345173

    Hey NicoleVA,

    Thanks for the login details. I checked in your WP File manager plugin, and it looks to be added in header.php in your child theme. It starts at line 68 and ends at line 75.

    Best regards,
    Rikard

    #1345162
    dolandr
    Participant

    Hi, I’m getting internal server error on WordPress site. http://dolanddesign.com/
    it is not consistent, sometimes it works and a minute later it no longer works. I have a really hard time even logging in.

    **********************************************************
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at (Email address hidden if logged out) to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    ***********************************************

    I went to the error log of Bluehost and got this:
    [18-Mar-2022 00:39:00 UTC] WordPress database error Table ‘dolandru_wrd2.wp_pwebcontact_forms’ doesn’t exist for query SELECT id, position FROM wp_pwebcontact_forms WHERE publish = 1 AND position = “footer” made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/enfold/404.php’), get_footer, locate_template, load_template, require_once(‘/themes/enfold/footer.php’), wp_footer, do_action(‘wp_footer’), WP_Hook->do_action, WP_Hook->apply_filters, PWebContact::displayFormsInFooter, PWebContact::getForms

    [17-Mar-2022 11:35:54 UTC] WordPress database error Table ‘dolandru_wrd2.wp_pwebcontact_forms’ doesn’t exist for query SELECT COUNT(id) FROM wp_pwebcontact_forms WHERE publish = 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/enfold/template-builder.php’), get_header, locate_template, load_template, require_once(‘/themes/enfold/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, PWebContact::displayHeader

    [18-Mar-2022 00:39:00 UTC] WordPress database error Table ‘dolandru_wrd2.wp_pwebcontact_forms’ doesn’t exist for query SELECT COUNT(id) FROM wp_pwebcontact_forms WHERE publish = 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/enfold/404.php’), get_header, locate_template, load_template, require_once(‘/themes/enfold/header.php’), wp_head, do_action(‘wp_head’), WP_Hook->do_action, WP_Hook->apply_filters, PWebContact::displayHeader

    There are hundreds of these lines. I just updated the Enfold to the latest. Also deleted the Perfect Web Contact plugin. Also tried disabling all plugins by renaming the plugins folder in the File Manager because I couldn’t log in to WordPress. None of this worked.

    #1345109

    Hi Ismael
    The confusion’s getting bigger!
    Your last post refers to the first issue I’ve mentioned in this topic. This was already solved by your post from September 23 (https://kriesi.at/support/topic/accordion-toggles-deeplinking/#post-1322006).
    Since weeks I’m talking about the second issue within this topic which I explained firstly on my post from October 15 and November 1 (https://kriesi.at/support/topic/accordion-toggles-deeplinking/#post-1327294). You provided then a solution with a PHP function (avf_header_setting_filter_mod), that doesn’t work so far. In my post from December 3, I specified the issue with a video, because your team member Mike got involved in this thread (https://kriesi.at/support/topic/accordion-toggles-deeplinking/#post-1331474).
    On March 9, you specified your solution but it hasn’t the expected impact yet. On desktop browsers, the sticky header still covers the toggles (anchor link) of the accordion. In my last post from March 13 I’ve tried to point out that your PHP function might not be reloaded or reinitialized properly if you click from toggle to toggle within the same browser window/tab. It only seems to work properly if you copy the URL of a toggle in the address bar of a new browser window/tab. Then the toggle is at the defined scroll-offset position (according to the PHP function) below the sticky header.
    I hope that it is clear now, what I mean and I really hope that there is a reliable solution very soon.
    Kind regards
    Ueli

    #1345015

    Hi @Mike,

    thank you. We tested the same, and it worked now – but it only worked on 1 of 2 servers. We made a test with PHP 7.4 and 8.0 – both with clean installs.

    On our cloudways server (PHP 8) it throws the following error:

    PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-font-manager.php:428

    This happens on a new site, clean install, fresh child theme and only inserted the code given in the functions.php. On our other server (hetzner, PHP 7.4) the same test works fine without errors.

    By the way the error is already thrown inside WordPress Admin when opening the Enfold Settings.

    Could the problem be related to the PHP version?

    Best regards

    #1345012

    Hey NorthcoastProject,

    Thank you for using Enfold.

    Are you using the default Video element from the builder? Please note that this element is not integrated with the plugin, so it won’t apply the borlabs cover automatically. You may need to manually embed the video instead of using the builder element.

    To disable the recaptcha scripts on all pages except for the contact page, try to use this filter in the functions.php file.

    		add_filter("avf_load_google_recaptcha_api_prohibited", function($prohibited) {
    			$prohibited = true;
    
    			if( is_page( array(1, 2, 3) ) ) {
    				$prohibited = false
    			}
    
    			return $prohibited;
    		}, 10, 1);
    
    

    Make sure to place the actual ID of the contact page in the array within the is_page function above.

    Best regards,
    Ismael

Viewing 30 results - 2,281 through 2,310 (of 16,896 total)