Home › Forums › WoodMart support forum › Include email inside of Links to social profiles
Include email inside of Links to social profiles
- This topic has 22 replies, 2 voices, and was last updated 3 years, 8 months ago by Elise Noromit.
-
AuthorPosts
-
January 26, 2020 at 2:20 pm #169873
arven1ParticipantHi,
If I enable “Email for social links” inside of “Links to social profiles” it shows just email with email to subject. My question is, can email where customer needs to send their email to, be included when they click on this link?
Thanks
January 26, 2020 at 8:46 pm #169901
Elise NoromitMemberHello,
The users click the email icon, the mail server installed on the desktop opens the mail template (sender email is inserted by default for all emails) user inserts the mail of a friend whom the user is going to share and the friend would get this mail. That is the way it works.
Best Regards
January 26, 2020 at 9:04 pm #169909
arven1ParticipantI see. Is is possible to change that icon to some link, e.g. https://something.com/contact/ so when someone clicks on that link it leads him to contact form?
January 27, 2020 at 8:28 am #169961
Elise NoromitMemberHello,
No, you cannot replace the link for Email social icon. What place do you want to insert the icon which would address to the contact page?
Best Regards
January 27, 2020 at 8:33 am #169962
arven1ParticipantHello,
I would like this icon to be the last and to lead to /contact/ page.
Can you help me with that?
Attachments:
You must be logged in to view attached files.January 27, 2020 at 8:54 am #169967
Elise NoromitMemberHello,
Unfortunately, it is not possible to insert the icon on the side.
You can add the icon into the footer or the header.
Best Regards
January 27, 2020 at 8:59 am #169969
arven1ParticipantLet me rephrase my question… Where in code is this sidebar incoded? I’ll change it by myself.
January 27, 2020 at 9:51 am #169980
Elise NoromitMemberHello,
You need to find this file
woodmart/inc/template-tags.php
and edit this function:woodmart_get_sticky_social()
Best Regards
January 27, 2020 at 11:16 am #169997
arven1ParticipantI don’t think this is right place. I’m seeking for place with list of social networks where is facebook, twitter… and email in the end.
January 27, 2020 at 2:20 pm #170039
arven1ParticipantSo you cannot point me to right spot? Your statement was completely incorrect as some points are set up inside of woodmart/inc/shortcodes inside of file social.php. But still, when I change it, it does not work. That’s why I asked for pointers but seems like you don’t care…
January 27, 2020 at 3:20 pm #170063
Elise NoromitMemberHello,
Find this file
woodmart/inc/shortcodes/social.php
And edit this function:
woodmart_shortcode_social()
Best Regards
January 27, 2020 at 3:54 pm #170072
arven1ParticipantI found that before and tried to edit this:
<?php if ( ( $type == ‘share’ && woodmart_get_opt(‘share_email’) ) || ( $type == ‘follow’ && woodmart_get_opt( ‘social_email’ ) ) ): ?>
” target=”<?php echo esc_attr( $target ); ?>” class=”<?php if( $tooltip == “yes” ) echo ‘woodmart-tooltip’; ?> woodmart-social-icon social-email”>
<i class=”fa fa-envelope”></i>
<span class=”woodmart-social-icon-name”><?php esc_html_e(‘Email’, ‘woodmart’) ?></span>
<?php endif ?>to this:
<?php if ( ( $type == ‘share’ && woodmart_get_opt(‘share_email’) ) || ( $type == ‘follow’ && woodmart_get_opt( ‘social_email’ ) ) ): ?>
<i class=”fa fa-envelope”></i>
<span class=”woodmart-social-icon-name”><?php esc_html_e(‘Contact Us’, ‘woodmart’) ?></span>
<?php endif ?>But seems like it does not respond at all. Do you know why maybe?
January 28, 2020 at 12:47 pm #170218
Elise NoromitMemberHello,
Please have a look at the screen: http://prntscr.com/qtwtlv
You need to change it here, please send the screen how you have changed.
Best Regards
January 28, 2020 at 1:00 pm #170224
arven1ParticipantHmmm, I realized that I’ve changed this properly but for some reason it does not work when I created directory inside of my woodmart-child/inc/shortcodes with file social.php. Do you mean what might be a reason for that?
Basically, permission for directories “inc” and “shortcodes” are 755 and for file social.php is 644 on both woodmart-child and woodmart theme. Do you know why changes from child cannot override original theme?
Thanks
January 28, 2020 at 2:39 pm #170243
Elise NoromitMemberHello,
You do not need to create
social.php
inwoodmart-child/inc/shortcodes
You need to copy the function
woodmart_shortcode_social()
into thefunctions.php
of the child theme. http://prntscr.com/qu201lBest Regards
January 28, 2020 at 3:26 pm #170253
arven1ParticipantYes true. That way it works. Thanks a lot.
January 28, 2020 at 3:33 pm #170255
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
February 7, 2020 at 4:13 pm #172155
arven1ParticipantHello, may I ask you please how is possible to make this title and number of products on each product category to be in different colors for individual product category page? How can I edit via CSS product categories and add custom CSS that results with different color when customer hovers on that child-category?
E.g. Look on your category page: https://woodmart.xtemos.com/product-category/clocks/ you don’t have child categories for this page but pretend to have. Those child category pages will be on the top of your products if you choose this option in woocommerce. How can I edit that main “clocks” parent category to show individual CSS?
For example, I’ve this code:
.category-grid-item .category-title {
color: #fff;
}
.category-grid-item .more-products {
color: #fff;
}It is doing exactly what I want. But I want it only for one category not for all. And that is my problem. Help?
February 7, 2020 at 9:40 pm #172176
Elise NoromitMemberHello,
It is not possible to create custom CSS differently for different categories. All the fonts on all the categories would have one and the same style.
You can change the font by means of Advanced typography option, which allows to choose the item from a drop-down or insert your custom CSS class. Please navigate to the Theme Settings > Typography > Advanced Typography.
Here is the documentation providing more detailed instructions: https://xtemos.com/docs/woodmart/advanced-typography-settings/
Best Regards
February 7, 2020 at 11:19 pm #172183
arven1ParticipantHi,
This is not at all what I want… Result with this is the same as I would do via CSS… But my question is how to apply that to particular product category… I know there are a way just cannot reach it… I tried this:
.cat-260-id .category-grid-item .cat-260-id.category-title {
color: #fff;
}With specific category id, but it is simply ignored. Can you help me here please?
February 8, 2020 at 10:39 am #172217
Elise NoromitMemberHello,
Inspect your category, and see which class relates. I am inspecting “Cooking” https://prnt.sc/qzbue7
Then add
body.term-cooking
before all the selector, for example:body.term-cooking .category-grid-item .cat-260-id.category-title { color: #fff; }
Crete your code following the same way.
Best Regards
February 9, 2020 at 6:41 pm #172391
arven1ParticipantThank you. Feel free to close this thread.
April 11, 2021 at 6:24 pm #281641
Elise NoromitMemberYou are welcome! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
The topic ‘Include email inside of Links to social profiles’ is closed to new replies.
- You must be logged in to create new topics. Login / Register