This topic has 7 replies, 2 voices, and was last updated 8 years, 5 months ago ago by Jack Richardson
Hi everybody, we want that all the categories in the WooCommerce Sidebar Menu appear closed, as the image attached.
On the other hand, we want to edit some attributes from the share widget (in the footer). For example, the target of the buttoms, the subject and the body of the email buttom, etc.
Thanks in advance.
Regards,
Lucas
I copy the image again, because I didn’t do it well:
Hello,
1. I’ve edited the file wp-content/themes/woopress/js/etheme.js in line 1808 and commented the code
$this.find('>li').first().find('.open-this').html(minusIcon).parent().addClass('opened').find('ul.children').show();
Check the categories now.
2. You need edit the file wp-content/themes/woopress/framework/shortcodes.php (find the section “! Share This Product” in line 1918), 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.
Best regards,
Jack Richardson.
Thanks a lot for the sidebar! I edited the shortcodes.php because we’d like the ‘pin it’ buttom opens the content in a new tab instead of in a new window as it happens now, although the target is “_blank”. I’ve tried changed that but the buttom has the same behaviour.
I’ve also looked for that here https://developers.pinterest.com/docs/widgets/pin-it/ but I couldn’t find anything relevant.
I appreciate you would help me with that.
Thanks again.
Best regards,
Lucas
Hello,
As I see you’re using some 3rd-party plugin for Pinterest icon, aren’t you?
You need check the plugin settings or disable it so our default code will be used.
Best regards,
Jack Richardson.
Ok Jack, thanks for your response!
Best regards,
Lucas
Hello,
You’re welcome.
Best regards,
Jack Richardson.
The issue related to '‘WooCommerce Sidebar Menu & Share Widget in Footer’' has been successfully resolved, and the topic is now closed for further responses