Tagged: enfold
-
AuthorPosts
-
March 16, 2020 at 2:52 pm #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?March 16, 2020 at 9:03 pm #1193633Hey 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-771576Here are the docs for you:
If you need further assistance please let us know.
Best regards,
VictoriaMarch 17, 2020 at 10:49 am #1193757I 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ünterMarch 19, 2020 at 5:57 pm #1194487Hi 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,
VictoriaMarch 27, 2020 at 7:11 pm #1198399Dear 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ünterMarch 27, 2020 at 7:23 pm #1198404Hey,
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!
YigitMarch 28, 2020 at 12:56 pm #1198559Hey,
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ünterApril 1, 2020 at 5:57 pm #1199823Dear 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ünterApril 4, 2020 at 6:58 pm #1200828Hi,
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:
the alt field used as the lightbox “title”
Best regards,
MikeJune 23, 2020 at 3:20 pm #1224893How was spotify button solved?
RegardsJune 23, 2020 at 4:56 pm #1224918Hi,
@dbravo02 You can refer to this post – https://kriesi.at/documentation/enfold/social-share-buttons/#how-to-add-custom-social-icons-to-enfold-options. If you need our assistance, please start a new thread under Enfold sub forum and attach temporary admin logins in private content field. If you post them here, they will be visible to creator of this thread as well :)Best regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.