Viewing 30 results - 2,041 through 2,070 (of 16,893 total)
  • Author
    Search Results
  • Hi,
    Thank you for your patience, I found that the two sub-menu items #einfamilienhaeuser & #wohnanlage are triggering as the active menu item when the #informationen section is in view, I created a test menu without these two items and the menu works correctly, please try enabling the test menu to test.
    I checked your page but couldn’t find duplicates for #einfamilienhaeuser & #wohnanlage, so I’m not sure what could be causing this.
    You could try this javascript solution to correct the highlighting based on the scroll, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function custom_script() { ?>
      <script>
    (function ($) { 
    	setTimeout(function(){
    	$("#menu-item-762").removeClass('current-menu-item');
    	},300);
      $(window).scroll(function() {    
          var scroll = $(window).scrollTop();
          if (scroll > 500) {
              $("#menu-item-783").addClass('current-menu-item');
          } else {}
          if (scroll < 1400) {
              $("#menu-item-762").removeClass('current-menu-item');
          } else {}
          if (scroll > 1400) {
              $("#menu-item-783").removeClass('current-menu-item');
          } else {}
      });
    })(jQuery);
    </script>
      <?php
    }
    add_action('wp_footer', 'custom_script');

    and see if this helps

    Best regards,
    Mike

    Hi,

    I don’t know about the problem at login, I am sure that the sent login data are correct and I don’t know how ti block IP ranges (perhaps my provider?)..
    My PHP-Version is 7.1.33 and was set by my provider called “domaintechnik.at” in Austria.
    So how could we go on?

    Best regards,
    Bernhard

    #1360459

    In reply to: Problem with PHP 8.0

    Hi Alwin,

    That is also something I have not figured out :D
    There are some people who are running PHP 7 who have that issue as well but get fixed with just manually replacing those wrong single quotes, so I just assumed that it does not work on certain servers but now I know it is true on certain PHP versions.
    Anyway, I’m really glad that the issue is fixed on your end.

    Best regards,
    Nikko

    #1360457

    In reply to: Problem with PHP 8.0

    Hello Nikko,

    The issue is solved! I misunderstood your very first suggestion to replace all single quotes…

    I replaced the single quotes again, but now I did it the correct way and everything is working fine now :)

    That leaves me with the question: how is it possible that there was no issue at PHP 7.4 with the wrong single quotes in the code?

    Thanks,
    Alwin

    #1360450

    In reply to: Problem with PHP 8.0

    PHP 7.4 is working fine, but that was not the issue (the website is running 7.4 by default).

    The issue is that I like to upgrade this site to PHP 8.0. I have tried PHP 8.1 also now (like you asked me to try) but that is causing the same issue: the frontend is running fine, but I am not able to login at WordPress anymore.

    B
    Kind regards,
    Alwin

    #1360393

    In reply to: Problem with PHP 8.0

    Hi Alwin,

    I tried the same thing on my end using WP 6.0.1 and the following PHP versions 8.0.7, 8.1.0, 7.4 and didn’t have any issue whether it’s after_setup_theme or init.
    Can you try to switch your PHP version to 7.4 or 8.1? let us know if this helps.

    Best regards,
    Nikko

    #1360316
    emilconsor
    Participant

    Hi,

    we updated Enfold from 4.7.6.4 to 5.1.1

    We first had to fix the breadcrumbs in our functions.php of the child theme in line 128-130.
    After that, we saw that the footer widget columns are missing and we get the enfold standard “widgets”.
    See here: https://imgur.com/a/ohECA4w

    In the backend however, the widgets are still active.
    If I go to the customizer, I see the following message:

    “your theme has 12 widgets but this particular page does not display it”

    I have overwritten the footer.php of the child theme with the content from the new footer.php,
    this causes the footer to go missing completely.
    See here: https://imgur.com/a/Tm8Nrwm

    The other threads about this didnt help sadly.

    Thanks in advance!

    #1360305

    Hi,

    Please try to install and configure this plugin to see if it works better: https://envato.com/market-plugin/

    Also please upgrade your PHP version to 7.4 or higher. The version you are currently running is not supported by the theme or WordPress itself.

    Best regards,
    Rikard

    #1360283

    Many thanks @Guenni007 . The addition to the functions.php works, but the quick CSS doesn’t deliver the expected results. It’s this site any idea why?

    #1360280
    Michael Heinzlmeier
    Guest

    Ladies and Gentlemen
    please excuse my bad English. I have taken over the following WP page from a customer. http://www.schwarzwaldverein-bietigheim.de
    This page was built with the theme “Enfold” 4.4.1 and runs with PHP version 7.2. When switching to PHP 8.0, the theme’s function.php causes an error message. Unfortunately, I can not say whether the theme was purchased. Unfortunately the creator passed away. Can you give me a tip ?
    Regards
    Michael

    #1360245

    I made screen captured movie clip on youtube.
    please check up this clip Enfold gallery problem

    I did all plugins deactivated and update php 7.4 version.
    However Nothings changed after inserting image into gallery.
    Is there any other online supporting in Kriesi.at without posting in forum.
    I purchased it included of 6 months supporting.
    What can I do ?

    • This reply was modified 3 years, 8 months ago by t1kim.
    • This reply was modified 3 years, 8 months ago by t1kim.
    #1360156
    Salonghina
    Participant

    Hi Kriesi support,
    Our website http://www.salonghina.dk has the theme Enfold Version: 4.7.6.4 However when trying to access the footer through the Appearance > widgets I get this error message:

    “Warning: Array to string conversion in /customers/f/8/b/salonghina.dk/httpd.www/wp-includes/block-editor.php on line 340 Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /customers/f/8/b/salonghina.dk/httpd.www/wp-includes/class.wp-dependencies.php:186 Stack trace: #0 /customers/f/8/b/salonghina.dk/httpd.www/wp-includes/class.wp-dependencies.php(186): explode(‘?’, Array) #1 /customers/f/8/b/salonghina.dk/httpd.www/wp-includes/class.wp-styles.php(371): WP_Dependencies->all_deps(Array, false, false) #2 /customers/f/8/b/salonghina.dk/httpd.www/wp-includes/class.wp-dependencies.php(126): WP_Styles->all_deps(Array) #3 /customers/f/8/b/salonghina.dk/httpd.www/wp-includes/block-editor.php(347): WP_Dependencies->do_items(Array) #4 /customers/f/8/b/salonghina.dk/httpd.www/wp-includes/block-editor.php(479): _wp_get_iframed_editor_assets() #5 /customers/f/8/b/salonghina.dk/httpd.www/wp-admin/widgets-form-blocks.php(29): get_block_editor_settings(Array, Object(WP_Block_Editor_Context)) #6 /customers/f/8/b/salonghina.dk/httpd.www/wp-admin/widgets.php(32): require(‘/customers/f/8/…’) #7 {main} thrown in /customers/f/8/b/salonghina.dk/httpd.www/wp-includes/class.wp-dependencies.php on line 186
    There has been a critical error on this website. Please check your site admin email inbox for instructions.”

    I would appreciate if you can fix it, I have been trying for a long time without any improvement

    #1360094

    Hi johnwarr,

    I could see the illegal string offset when activating Enfold 5.1.1, does it still show if you update the PHP version from 5.6.40 to 7.4 or 8.0?
    Since there’s a lot of gap between Enfold 3.8 to 5, I would suggest using a staging site first to update Enfold.

    Best regards,
    Nikko

    #1359983

    Hi,
    Thanks for the link to your images, I misunderstood your approach. For this, I would recommend using two image elements to Swap Images on Hover With Closest Hidden Image
    Let’s start with an image element and add the custom class beforeHover:
    2022-07-30_004.jpg
    then we will add another image element next to it with the custom class afterHover and assign the Element Visibility to hidden for all devices:
    2022-07-30_005.jpg
    so the example page will look like this:
    2022-07-30_006.jpg
    then add this code to the end of your functions.php file in Appearance ▸ Editor:

    function custom_swap_image_on_hover_with_closest_hidden_image_script() { ?>
        <script>
    window.addEventListener('DOMContentLoaded', function() {
    (function($){
      $('.avia-image-container.beforeHover').hover(function(e){
          $(this).find('img').attr('data-url', $(this).find('img').attr('src'));
          $(this).find('img').attr('src', $(this).next('.afterHover').find('img').attr('src'));
    	  $(this).find('img').attr('srcset', $(this).next('.afterHover').find('img').attr('src'));
      },
      function(e){
          $(this).find('img').attr('src', $(this).find('img').attr('data-url'));
    	  $(this).find('img').attr('srcset', $(this).find('img').attr('data-url'));
      }); 
    })(jQuery);
    });
        </script>
        <?php
      }
      add_action('wp_footer', 'custom_swap_image_on_hover_with_closest_hidden_image_script');

    please give this a try and if you need further help please link to a test page that we can examine.

    Best regards,
    Mike

    yventuell
    Participant

    Hello,

    unfortunately I have a problem that I can not solve after trying several proposed solutions here from the forum and your site. Have already reinstalled the theme, tested other browser, increased memory limit in WP etc.. When I want to edit a page, the Avia Layout Architect does not load (endless spinning wheel). I don’t have any plug ins installed yet and no content in the page, just installed everything fresh. Site is running on my Mac under MAMP with PHP 7.4.21. Theme version is 5.1.1 and wordpress is 6.0.1. Hope it can help me.

    Thanks and greetings

    #1359861
    johnwarr
    Participant

    Hi
    I have a website using Enfold 3.8. The video in slider is not playing. So trying to upgrade to Enfold v4.7 or higher to fix issue.
    The only version I can see is version 5. I have downloaded from Theme forest and extracted zip to reveal the “enfold.zip/” file.All efforts to upgrade have failed or end up with a long stream of same line error messages – Warning: Illegal string offset ‘desktop’ in …/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    I have tried
    Plugin that upload zip files – depredated as current WordPress version support zip theme uploads
    Upload zip via “add new” under theme – get failure as folder already exists (no option to overight)
    Successfully uploaded using FTP (renaming folders for original files are “enfold old” and new files are “enfold”)

    This last solution delivered the illegal string offset.

    Please help with other suggestions, it goes without saying I don’t want to lose the original theme configurations. Maybe can I try installing 4.7 version – if you can give me a link.

    John

    #1359842

    Hi,
    Thank you for your patience, the aria-label is the attribute used for accessibility, typically screen readers will read the “title”, “alt”, or “aria-label” attributes:
    2022-07-29_001.jpg
    While we don’t have access to “Jaws” this chart of the Screen Reader Output seems to indicate that “Jaws” looks for the Anchor Text first and I note that on your original site the main menu links only have Anchor Text, with no “title”, “alt”, or “aria-label” attributes.
    The difference with our theme is that the Anchor Text is wrapped in a “span” and is not a direct Anchor Text.
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function unwrap_main_menu_text_for_jaws() { ?>
      <script>
    (function($){
      $('.avia-menu-text').contents().unwrap();
    })(jQuery);
    </script>
      <?php
    }
    add_action('wp_footer', 'unwrap_main_menu_text_for_jaws');

    and check with your “Jaws” software.

    Best regards,
    Mike

    #1359752

    Topic: Problem with PHP 8.0

    in forum Enfold
    Alwin
    Participant

    Today I have updated 5 Enfold sites from PHP 7.4 to PHP 8.0 without any problems. However, 1 website caused a problem (www.nataliewalters.nl) after updating to PHP 8.0 and I was not able to login at WordPress anymore. I got these errors:

    WordPress versie 6.0.1
    Actief thema: Enfold Child (versie 1.0)
    Huidige plugin: (versie )
    PHP versie 8.0.20

    Foutdetails
    ===========
    Een fout van het type E_ERROR werd veroorzaakt op regelnummer 34 van het bestand /home/nataliefoto/domains/nataliewalters.nl/public_html/wp-content/themes/enfold-child/functions.php. Foutmelding: Uncaught Error: Undefined constant “‘after_setup_theme’” in /home/nataliefoto/domains/nataliewalters.nl/public_html/wp-content/themes/enfold-child/functions.php:34
    Stack trace:
    #0 /home/nataliefoto/domains/nataliewalters.nl/public_html/wp-settings.php(566): include()
    #1 /home/nataliefoto/domains/nataliewalters.nl/public_html/wp-config.php(95): require_once(‘/home/nataliefo…’)
    #2 /home/nataliefoto/domains/nataliewalters.nl/public_html/wp-load.php(50): require_once(‘/home/nataliefo…’)
    #3 /home/nataliefoto/domains/nataliewalters.nl/public_html/wp-login.php(12): require(‘/home/nataliefo…’)
    #4 {main}
    thrown

    I use Enfold Child themes on all my Enfold sites. I have set the PHP version back to 7.4 now and that solved the issue, however I would like to upgrade to 8.0 of course. So what can be the problem here?

    This is my functions.php file:

    <?php
    
    /*
    * Add your own functions here. You can also copy some of the theme functions into this file. 
    * WordPress will use those functions instead of the original functions then.
    */
    
    function wpcodex_hide_email_shortcode( $atts , $content = null ) {
    	if ( ! is_email( $content ) ) {
    		return;
    	}
    
    	$content = antispambot( $content );
    
    	$email_link = sprintf( 'mailto:%s', $content );
    
    	return sprintf( '<a href="%s">%s</a>', esc_url( $email_link, array( 'mailto' ) ), esc_html( $content ) );
    }
    add_shortcode( 'email', 'wpcodex_hide_email_shortcode' );
    
    function ava_image_sizes() {
    remove_image_size(‘masonry’);
    remove_image_size(‘magazine’);
    remove_image_size(‘widget’);
    remove_image_size(‘featured’);
    remove_image_size(‘featured_large’);
    remove_image_size(‘extra_large’);
    remove_image_size(‘portfolio_small’);
    remove_image_size(‘gallery’);
    remove_image_size(‘entry_with_sidebar’);
    remove_image_size(‘entry_without_sidebar’);
    }
    add_action( ‘after_setup_theme’, ‘ava_image_sizes’, 11 );

    Thank you for your help!

    Best Wishes,
    Alwin

    • This topic was modified 3 years, 8 months ago by Alwin.
    • This topic was modified 3 years, 8 months ago by Rikard.
    #1359606

    Hi,

    Please try using the function I posted in this reply. If you are not running a child theme, then any edits you might have done to function.php for example, will be overwritten when you update the theme.

    Best regards,
    Rikard

    Bernhard
    Participant

    Liebes Enfold Team

    ein Kunde von mir, dem ich mit Enfold eine Webseite gemacht habe,
    hat mich gebeten seine Webseite auf WordPress 6.0.1 und php 8.0 upzudaten.
    (Siehe Webseite 1)

    Ich habe die Seite auf WordPress 6.0.1 upgedated, danach funktionierten aber leider die Animationen nicht mehr.
    Im Backend ist noch alles einwandfrei da, nur leider im Frontend nicht.

    Das php habe ich auf dieser Domain sicherheitshalber noch nicht upgedated.
    (die Webseite läuft aktuell noch auf php 7.0.3.3)
    ——————————
    Ich habe mir aber eine Sicherheitskopie der Webseite gemacht und auf eine andere Domain kopiert:
    (Siehe Webseite 2)

    Hier läuft die Webseite jetzt auf php 8.0 und wordpress 6.0.1

    Es sieht aber leider genau so aus, die Animationen incl. der animierten Fotos funktionieren leider nicht.

    Könntet Ihr mir da helfen, das alles wieder normal funktioniert?
    Vielen Dank & Beste Grüße Bernhard

    Es ist ein “One-Pager”
    Im Backend findet man die Seite unter: Seiten / Elektrosmog

    Ich würde Euch erstmal die Zugangsdaten für die Sicherheitskopie auf der Sicherheits-Domain geben
    (siehe Private Content)

    • This topic was modified 3 years, 8 months ago by Bernhard.
    #1359544

    In reply to: PAGESPEED 2022

    PAGESPEED OVER 90%

    – technical analysis, ongoing speed tests with relevant portals
    – Enfold Settings like in the reference below
    – HTML, JS, CSS minification, compression and merging via enfold
    – Staggered loading of scripts, plugins, content, lazy loading
    – Image optimizations via image editing, recalculate size and quality
    – Plugin to convert to WebP, handle batch processing
    – Install caching tool, incl. settings
    – Adaptation of the .htaccess file: caching and GZIP compression
    – Eliminate rendering blocking elements
    – Make settings in individual plugins (rev. slider)
    – Switch off unused features, tools, plugins
    – Load jQuery, CSS, JS in the footer via enfold
    – Hosting optimizations: PHP, Boost etc.

    HOSTING
    With all optimizations – also the guides from enfold – you get up to about 70% performance (website tests 05.07.) The rest up to approx. 100% can only be achieved with fast hosting designed for WordPress. As a result, we easily cracked the 90%.
    Best for us, location germany: https://www.hostpress.de/
    – Faster research hosting providers and coordinate settings
    – Migrate test site, make advanced settings
    – Mobile optimizations, testing until the final result
    – no CDN needed

    –––––––––––––––––––––––––––––––

    REFERENCE ENFOLD
    https://kriesi.at/archives/scoring-100-100-in-google-pagespeed-insights-gtmetrix-pagespeed-and-yslow

    The theme by itself
    Default settings in 2022 at enfold = nothing to do
    Image optimization
    We opted for shortpixel with one-off costs
    Leverage browser caching
    Outdated content with shockwave flash etc. We have taken more recent and extensive code snippets
    Eliminate render-blocking JavaScript and CSS in above-the-fold content /Defer parsing of JavaScript
    Also, most of it is already set by default and I have selected the best performance.

    REFERENCE GT Metrix
    https://gtmetrix.com/wordpress-optimization-guide.html

    Step 1 -2
    is clear

    3. Remove any Unwanted or Unused Plugins
    Definitely important

    4. Optimize images
    In any case, that brings a hell of a lot, especially conversion to WebP

    5. Cache your WordPress installation
    Super important! Best: Rocket Cache

    6. Selectively Load Scripts
    I made these settings in the slider plugin, the rest was too time-consuming for us

    7. Perform Server Optimizations
    php version set, boost enabled. Host changed.

    Good luck :)

    #1359508

    There are many places where the heading tag is predefined as h3 in the source code of enfold.
    Editing all those entries and have a child-theme file is too complex.
    The filter : avia_custom_widget_args will not work on those headings you like to influence.

    – you can try this here from Yigit : https://kriesi.at/support/topic/change-h3-tags-in-footer-widget-child-theme-of-enfold/#post-728320
    and pay attention of his comment:

    You would need to update your widget areas.

    In Shortform this will be ( and comes to child-theme functions.php ) :

    function ava_re_register_footer_widgets(){
    	$footer_columns = avia_get_option( 'footer_columns', '5' );
    	for( $i = 1; $i <= $footer_columns; $i++ ){	
    		unregister_sidebar('av_footer_' . $i );
    		register_sidebar( array(
    			'name'		=> 'Footer - Column ' . $i,
    			'before_widget'	=> '<section id="%1$s" class="widget clearfix %2$s">',
    			'after_widget'	=> '<span class="seperator extralight-border"></span></section>',
    			'before_title'	=> '<p class="widgettitle">',
    			'after_title'	=> '</p>',
    			'id'		=> 'av_footer_' . $i
    		) );
    	}
    }
    add_action( 'widgets_init', 'ava_re_register_footer_widgets', 11 );

    the settings you mentioned had to be set via quick css

    #footer p.widgettitle {
    	font-size: 30px; 
    	font-weight: 500; 
    	line-height: 33px;
    }

    (For SEO reasons, this will probably be the better method. )

    #1359501
    Orla
    Participant

    Hi there,

    I have an error on my site and since it’s appeared it’s not allowing the Advanced Layout Editor to load.

    Loading page

    I have disable all the plugins and still the problem persists.
    Plugins

    I am running Enfold Version: 5.0.1
    Wordpress: WordPress 6.0.1

    Error Details
    =============
    An error of type E_ERROR was caused in line 563 of the file /public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php. Error message: Uncaught Error: Call to undefined function gutenberg_can_edit_post_type() in /public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:563

    Stack trace:
    #0 /public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(423): Avia_Gutenberg->can_use_block_editor(‘post’, true)
    #1 /public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(458): Avia_Gutenberg->init_force_classic_post_types()
    #2 /public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(533): Avia_Gutenberg->get_force_classic_post_types()
    #3 /public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(661): Avia_Gutenberg->force_classic_editor(‘page’)
    #4 /public_html/wp-includes/class-wp-hook.php(307): Avia_Gutenberg->handler_display_post_states(Array, Object(WP_Post))
    #5 /public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array)

    Thanks :)

    • This topic was modified 3 years, 9 months ago by Orla. Reason: Updated screen shots
    #1359447

    @guenni007 awesome!
    I managed to add some css to it and remove the ‘you are here’ via function.php… only have two questions left:
    1. if I want to change the home text to the icon of a home, how do i do this? Just a home icon from the standard fontello pack would be great.
    2. how do I change the color of the ‘home’ to white? (without and with hoover) I’ve used below CSS already.

    #top .breadcrumbs {
    line-height: 45px;
    font-weight: 200;
    font-size: 20px;
    color: white;
    }
    #1359437

    See notes in private from Rackspace:

    Hi Jason,

    Thank you for your call. As we discussed, I can verify the PHP ZIP extension is already installed and enabled.

    [root@XXXXXX-web2 php.d]# php -m |grep -i zip
    zip

    [root@XXXXXX-web2 php.d]# cat /etc/php.d/40-zip.ini
    ; Enable ZIP extension module
    extension=zip.so

    [root@XXXXXX-web2 php.d]# rpm -qa|grep php74-pecl-zip
    php74-pecl-zip-1.19.0-1.el7.ius.x86_64

    If you require any further information or assistance, you can contact us by updating this ticket or by calling support.

    Thanks & Regards,
    Jayesh Jambhulkar
    Linux Support Engineer

    • This reply was modified 3 years, 9 months ago by Jason.
    #1359419

    Another thing I found is that my site is using PHP 7.3.30 (Supports 64bit values)

    What version would you recommend I be using for Enfold in 2022? Could this be the problem on the demo import issue?

    ———————

    Updated:

    Okay, well I am running L7 so my max PHP I can currently use is 7.4. I just updated it and still same issue…

    • This reply was modified 3 years, 9 months ago by Jason.
    • This reply was modified 3 years, 9 months ago by Jason.
    #1359331

    Hey Mike1050,
    Thanks for your question, to make the masonry sort sticky on that page for tablets and above, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function sticky_masonry_sort_waypoint() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
      (function($){
      	var width = $(window).width();
        var $stickyTop = $('#top.page-id-102 .av-sort-by-term');
        if (width >= 767) {
        $stickyTop.waypoint(function(direction) {
          if (direction === 'down') {
             $stickyTop.addClass('sticky-top');
          }
          if (direction === 'up') {
             $stickyTop.removeClass('sticky-top');
          }
        }, {
          offset: '118px'
        });
        }
      })(jQuery);
    });
    </script>
      <?php
    }
    add_action('wp_footer', 'sticky_masonry_sort_waypoint');

    and this css in the General Styling ▸ Quick CSS field:

    .sticky-top {
        position:fixed!important;
        top:118px!important;
        z-index:510!important;
        background-color: #fff;
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    Hey ivanglaser,
    Thanks for your question, to add a “view cart” button to your shop page only on mobile and only if there are products in the cart, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function custom_view_cart_button() { ?>
      <script>
    (function($){
      var width = $(window).width();
      var add_cart_btn = '<div class="cart_btn" style="display:flex;justify-content:center;"><a href="/cart/" class="button wc-forward">View Cart</a></div>';
      if ($('#top.woocommerce-shop .menu-item.cart_dropdown .av-cart-counter').hasClass('av-active-counter') && width <= 767) {
       $(add_cart_btn).insertAfter( ".woocommerce-products-header" );
      }
    })(jQuery);
    </script>
      <?php
    }
    add_action('wp_footer', 'custom_view_cart_button');

    Please see the screenshot in the Private Content area of the expected results.
    I was not sure where you wanted the button so if you want it elsewhere let us know.

    Best regards,
    Mike

    #1358877

    Hi Nico,

    perfect, just needed to replace $medal with $telegram – does now exactly what I was looking for.

    Thanks for the fast and helpful support as usual.

    And for reference the complete functions.php from my child theme that allows telegram to be used to share pages, posts etc via the social share button (after the fontello telgram icon has been imported):

    <?php
    // Register Telegram icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons[‘telegram’] = array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue8b7’);
    return $icons;
    }
    add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);

    // Add new icon as an option for social icons
    function avia_add_custom_social_icon($icons) {
    $icons[‘Telegram’] = ‘telegram’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    // Add the URL to the telegram URL in the share section
    function avia_add_custom_social_share_link_arguments($args) {
    $telegram = array(‘telegram’ => array(
    ‘encode’ => true,
    ‘encode_urls’ => true,
    ‘pattern’ => ‘https://t.me/share/url?url=[permalink]&text=[title]&#8217;
    ));
    $args = array_merge($args, $telegram);
    return $args;
    }
    add_filter(‘avia_social_share_link_arguments’, ‘avia_add_custom_social_share_link_arguments’, 10, 1);

    #1358808

    Well – a manual way to do it is to use the shortcode for the breadcrumb trail:
    place this to your child-theme functions.php :

    and use whereever you like to place that as : [av_breadcrumbs]

Viewing 30 results - 2,041 through 2,070 (of 16,893 total)