Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1193491

    Dear Team,
    I tried to ad a spotify social icon like it is described here:
    https://kriesi.at/support/topic/custom-social-icon-spotify/
    I also tried other treats – but it doesn´t work – when I add the functions in the child themes function php I always receive an error message from wordpress – the site has technical problems.
    Can you help me?

    #1193633

    Hey webartists,

    Did you upload the custom font first? What is the error you’re getting? The code here should not be giving the error:
    https://kriesi.at/support/topic/custom-social-icon-spotify/#post-771576

    Here are the docs for you:

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1193757

    I want to use the existing spotify Icon at the social links as the icon allready exitsts in icon list of fontello.
    When I add this code:

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons[‘icon_name’] = array( ‘font’ =>’fontello’, ‘icon’ => ‘ue906’);
    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[‘Icon Label’] = ‘icon_name’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    to the functions.php of the childtheme I receive an error message:
    Es gab einen kritischen Fehler auf deiner Website. Bitte überprüfe den Posteingang …
    Can you help me?
    Thx and BR
    Günter

    #1194487

    Hi webartists,

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

    Best regards,
    Victoria

    #1198399

    Dear Victoria – I´m not sure I thought I allready sent this – so I send again.
    I have also another problem – where allready many treats exist but nothing helped me – I want to have shown the img title or alt attribut at the lightbox here – http://mephisto.webartists.at/reservierung/ but nothing helps (.mfp-title not shown).
    Can you help me with this too.
    Thx and BR
    Günter

    #1198404

    Hey,

    1- I have added Spotify icon for you. Please review your website

    2- Could you please firstly update Enfold to the latest version 4.7.4 – https://kriesi.at/documentation/enfold/theme-update/

    Cheers!
    Yigit

    #1198559

    Hey,
    thx a lot – spotify is working now.
    I also updated enfold.
    The only thing I cant fix yet is to show the image title (or alt text) at the lightbox here:

    thx and br
    günter

    #1199823

    Dear Team,
    we are allready online with this site – but we still have the problem with title/alt text at the images in lightbox here: http://mephisto.webartists.at/reservierung/
    Can you helpt me?
    I post backend access in private content.
    Thx and BR
    Günter

    #1200828

    Hi,
    Sorry for the late reply, to add the title below the lightbox popup Try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_script(){
      ?>
      <script>
    (function($){
      $(window).load(function(){  
          $('a.aviaccordion-slide-link.lightbox-added').magnificPopup({
          type: 'image',
          image: {
              titleSrc: false,
              markup: '<div class="mfp-figure">'+
                        '<div class="mfp-close"></div>'+
                        '<div class="mfp-top-bar"></div>'+
                        '<div class="mfp-img"></div>'+
                        '<div class="mfp-bottom-bar">'+
                          '<div class="mfp-title"></div>'+
                          '<div class="mfp-counter"></div>'+
                        '</div>'+
                      '</div>',
          },
          mainClass:          'avia-popup mfp-zoom-in mfp-image-loaded',
          closeOnContentClick:  false,
          midClick:         true,
      
          gallery: {
            enabled:      true
          },
      
          callbacks: {
          markupParse: function (template, values, item) {
            values.title = item.el.find('img').attr('alt') + '<br>' + item.el.closest('.aviaccordion-slide-link').find('.aviaccordion-image').text();
          },
      
          // this - is Magnific Popup object.
              change: function() {
                  $(this.content)
                      .find('.mfp-top-bar')
                      .html(
                          '<h2>' +
                              $(this.currItem.el).attr('title') +
                          '</h2>'
                      );
              },
              buildControls: function() {
                // re-appends controls inside the main container
                this.arrowLeft.appendTo(this.contentContainer);
                this.arrowRight.appendTo(this.contentContainer);
              },
          },
        }); 
        // close the iframe window
        $(document).on('click', '.popup-modal-dismiss', function (e) { 
          $.magnificPopup.close();
        });
      });
      })(jQuery);
      </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');

    Then please add your title to the “Alternativer Text” field in your media library for each image:
    2020-04-04_125447.png
    the alt field used as the lightbox “title”
    2020-04-04_125627.png

    Best regards,
    Mike

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.