-
AuthorPosts
-
January 12, 2023 at 8:40 pm #1378482
Hi Supporters,
without updating Enfold for some reasons the social media link to facebook isn’t working anymore.
I’ll let you now the links in the private area.
Thanks for supporting
January 13, 2023 at 8:08 am #1378526Hey slikslok,
Thank you for the inquiry.
The FB icon seems to be redirecting to the correct URL. Would you mind providing a short clip of the issue?
Best regards,
IsmaelJanuary 13, 2023 at 10:58 am #1378556You’ll find in the private area.
January 13, 2023 at 11:02 am #1378557Does this mean the link works on your site? Its not only a problem in my network also the client have the same problem!
January 13, 2023 at 11:26 am #1378561This reply has been marked as private.January 15, 2023 at 4:59 pm #1378753Hi,
Thank you for your patience when I look at the links in your footer I see the social links are a “share box”.
I assume that you added this by using the “social buttons” element in your footer page, this element is a “share box” and not a social profile link.
You can copy the social profile code from your header and add in a code block element or you can use the icon elements to create your own social links.
Please see this thread
If you like the layout you currently have and just want to change the links for your footer page “share box”, Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:function change_share_box_links_to_social_profile_links() { ?> <script> window.addEventListener('DOMContentLoaded', function() { (function($){ var facebook = "https://facebook.com"; var linkedin = "https://linkedin.com"; var instagram = "https://instagram.com"; var youtube = "https://youtube.com"; $("#footer-page .av-share-box-list").each(function(){ $(this).find(".av-share-link.av-social-link-facebook a").attr("href", facebook); $(this).find(".av-share-link.av-social-link-linkedin a").attr("href", linkedin); $(this).find(".av-share-link.av-social-link-instagram a").attr("href", instagram); $(this).find(".av-share-link.av-social-link-youtube a").attr("href", youtube); }); })(jQuery); }); </script> <?php } add_action('wp_footer', 'change_share_box_links_to_social_profile_links');
and adjust the social links to suit.
Best regards,
MikeJanuary 15, 2023 at 11:39 pm #1378809Hi Mike, thanks.
I used this code and delete everything than facebook because I want exact this layout.BUT: FB is the only share-link which is not working. So that could not be the final solution. Why are the other 3 Links working but not facebook?
Best Regards
TimJanuary 15, 2023 at 11:43 pm #1378810Possible, that FB has changed the syntax and Enfoldy isn’t correct anymore?
Pleas have a look in private area fpr details.January 16, 2023 at 12:59 am #1378812Hi,
Perhaps I misunderstood, do you want these to be “share links” or do you want them to be links to your FB page?
If you want them to be “share links” then they should not be in the footer of your site, it only works correctly if it is on a post page.
that is why the link has this in it%2Ffooter-template%2F&t=Footer%20Template
it is passing the footer page link.
the linkedin is also a “share link” the other two don’t have “share links” so they are links to your page.Best regards,
MikeJanuary 16, 2023 at 10:50 am #1378827Thanks Mike, that clears up things. Strange, that the Insta-Link is working anyway…
Isn’t there a solution via functions.php to change normal to share-links in the footer? Otherwise I have to edit every site/post by hand to implement a code block…Best
TimJanuary 16, 2023 at 12:20 pm #1378838 -
AuthorPosts
- You must be logged in to reply to this topic.