Tagged: x
-
AuthorPosts
-
February 3, 2017 at 1:57 pm #1357138
SmithChiroParticipantHi all, I have searched far and wide to try and fix this problem by myself, but I need the X gurus.
When I place a Woocommerce link into a blog post, the link automatically turn the link into a nice product box as you can see in the attached image (I believe this is a WordPress function). However, in the lower left hand corner, you can see a broken image link next to “Good Living Warehouse” and I have no clue how to insert my logo there.
Any suggestions?
Thank You for your help.
February 3, 2017 at 2:00 pm #1357140
SmithChiroParticipantIn case you need a working link (the previous page is a draft), here is a live version.
http://www.goodlivingwarehouse.com/7-best-natural-supplements-to-help-lower-cholesterol/
Image also attached.
February 3, 2017 at 10:42 pm #1357621
Rue NelModeratorHello There,
Thanks for writing in! When embedding a WordPress, it will display your post with an icon. That icon will not come from your customizer setting or your site’s favicon. You have to set it up usually if you are using multiblog setup. To change it with the favicon you have set in the customizer, you need to customized it.
Because what you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
After the child theme is set up, please add the following code in your child theme’s functions.php file
// Apply the customizer's favicon to WP Embedded content // ============================================================================= add_filter( 'get_site_icon_url', 'x_custom_wp_embedded_icon' ); function x_custom_wp_embedded_icon($url){ $icon = x_get_option( 'x_icon_favicon', '' ); if ( $icon != '' ) { return $icon; } else { return $url; } } // =============================================================================We would loved to know if this has work for you. Thank you.
February 6, 2017 at 10:33 am #1359851
SmithChiroParticipantUnfortunately, this did not work. The image is still broken. I should say I am using a plugin called RealFaviconGenerator to render my favicons. Does that matter?
February 6, 2017 at 10:40 am #1359864
JoaoModeratorHi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Joao
February 6, 2017 at 11:42 am #1359954
SmithChiroParticipantThis reply has been marked as private.February 6, 2017 at 10:53 pm #1360659
LelyModeratorHi There,
Thank you for the credentials. Please try this code instead:
// Apply the customizer's favicon to WP Embedded content // ============================================================================= add_filter( 'get_site_icon_url', 'x_custom_wp_embedded_icon' ); function x_custom_wp_embedded_icon($url){ $icon = x_get_option( 'x_icon_favicon', '' ); if ( $icon != '' ) { return $icon; } else { return 'http://www.goodlivingwarehouse.com/wp-content/uploads/2016/02/GLW-Logo-White-x-350.png'; } }Hope this helps.
February 7, 2017 at 2:00 pm #1361682
SmithChiroParticipantThank you for your response. The image is now pulling something, but it’s not my favicon. Is there a pathway I can change to indicate the image I’m trying to pull? Or is it pulling a random pic in my image gallery? I’m ultimately trying to load my company logo which is the “G” on the main page.
February 7, 2017 at 11:32 pm #1362316
ChristopherModeratorHi there,
Please replace your favicon URL with following line in provided code :
http://www.goodlivingwarehouse.com/wp-content/uploads/2016/02/GLW-Logo-White-x-350.pngThanks.
February 8, 2017 at 10:19 am #1363000
SmithChiroParticipantBrilliant. That worked. Your help is much appreciated, as always. Have a nice day!
February 8, 2017 at 10:37 am #1363031
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1357138 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
