This topic has 15 replies, 3 voices, and was last updated 8 years ago ago by Jack Richardson
Hello, good morning, how are you?
I have a question regarding the social networks that appear at the top in one of the selected headers, I would like instead to serve to share was only to display the icons with the page link for example in the case of Facebook or LinkedIn. How do I do this?
I found the following code in the file “framework / shortcodes.php”
”
Add_shortcode ( ‘follow’, ‘etheme_follow_shortcode’);
”
I removed the comment line from him, went on the panel and changed where it was written [share] to [follow] and the social networks are gone ..
I also wanted to know how I can change their order? Instead of starting with Twitter, put Facebook first, for example?
Another thing, I wanted to know how I can apply these changes in the child theme so I do not have to modify the parent theme so that when I update, I do not have to make the change again.
I’m waiting
Hello,
You need edit the file wp-content/themes/woopress/framework/shortcodes.php (find the section “! Share This Product” in line 1965), to change links you need edit the code, for example for Twitter <a href="https://twitter.com/share?url='.$permalink.'&text='.$post_title.'" class="'.$tooltip_class.'" title="'.__('Twitter', ETHEME_DOMAIN).'" target="_blank">
and replace https://twitter.com/share?url='.$permalink.'&text='.$post_title.'
with a link to your Twitter account.
Create child theme https://codex.wordpress.org/Child_Themes and shortcodes.php file in themes/woopress-child/framework directory and edit the file to your needs.
Best regards,
Jack Richardson.
Hi my friend, thank you very much for your response.
I did as you said, but I only applied the change in the child theme as you reported above in the following directory “themes / woopress-child / framework / shortcodes.php” but it did not work, it looks like it keeps reading the parent theme file .
So I asked earlier how I applied this change in the child theme, since I had already tried to make the change to the child theme and had not worked …
Can you give me that strength?
I’m waiting.
Hello,
Try to add whole function code for social icons in child functions.php file. If you have difficulties please provide FTP credentials.
Best regards,
Jack Richardson.
Perfect, worked as expected, left the original file unchanged and made the process in the child theme’s functions.php file.
But there is still a problem with these icons, and I noticed from the beginning when I had not made these changes yet, when debugging with page 404 for example the icons disappear. What happens? Is this a bug in the theme or is there a problem that must have been made in some change in some file?
Awaiting.
Hello,
Sorry, but your last query is unclear.
Please clarify the issue with more details. How can we replicate the issue?
Regards,
Eva Kemp.
Good c’mon,
The problem with the icons that I was having to add in the child theme, change the order that are shown and change from share to Page or Profile link has been resolved.
But there was another problem now, this problem I realized was happening since when I installed it, I had not made any changes to the theme yet.
The problem is this: The social network icons that appear at the top of header 6 go to page 404.
To make it clear what I mean, check out the PrintScreen that I took from the home page and page 404.
I’m waiting for a solution!
Hello,
Please provide FTP and WP admin credentials in Private Content.
Regards,
Eva Kemp.
Good Morning,
As requested, follow the data with access credentials below.
I’m waiting.
Good Morning,
I wonder if you were able to log in with the data I reported?
I would also like to make a comment: the WordPress panel will be in Portuguese (pt-BR), if necessary to make it easier for you, you can change the panel language to English.
I’m waiting.
Hello,
We’ve made minor changes in your code for share shortcode in child functions.php to fix the issue with 404 page. Please check it now.
Best regards,
Jack Richardson.
Good afternoon Jack,
Unfortunately the day you made the change in the code “share shortcode” in the “functions.php” file of the child theme, it was changed by us as well, we did not know you were messing with it, we did not receive any notification at all reported that we should not touch the subject while making the change or correcting the problem.
Could you please let me know the corrected code to apply to the file again? What if the change was only in the “functions.php” file of the child theme.
For as we did change in the same file the changes you have made have been lost.
I’m waiting
Hello,
You need add new name to the function and comment some lines. Please look at the screenshots http://prnt.sc/d5y8tx
http://prnt.sc/d5y88k
Best regards,
Jack Richardson.
Now, it worked perfectly!
Many thanks for the support
Hello,
You’re welcome.
Best regards,
Jack Richardson.
Tagged: change, link, order, share, social networks, woocommerce, wordpress
The issue related to '‘How to Change Order of Social Networks and Switch from Share to Link Only’' has been successfully resolved, and the topic is now closed for further responses