-
AuthorPosts
-
May 17, 2018 at 2:56 pm #958195
Hello,
this is follow up of ticket https://kriesi.at/support/topic/share-this-entry-colors/
I hadn’t noticed, due to caching, that with the given code also the small social icons in the top bar in the secondary menu become permanently colouredThank you
MauroMay 17, 2018 at 4:52 pm #958253please see screenshot
May 17, 2018 at 6:38 pm #958305Hi profumopuntoit,
Can you give us a link to your site? so we can have a closer look.
Best regards,
NikkoMay 18, 2018 at 11:20 am #958553Please see for example:
May 19, 2018 at 6:58 pm #959135Hi profumopuntoit,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
#top #wrap_all .post-entry .av-social-link-facebook a{ color: #fff; background-color: #37589b; } #top #wrap_all .post-entry .av-social-link-facebook a{ color: #fff; background-color: #37589b; } #top #wrap_all .post-entry .av-social-link-twitter a { color: #fff; background-color: #46d4fe; } #top #wrap_all .post-entry .av-social-link-gplus a { color: #fff; background-color: #de5a49; } #top #wrap_all .post-entry .av-social-link-pinterest a { color: #fff; background-color: #cb2027; } #top #wrap_all .post-entry .av-social-link-tumblr a { color: #fff; background-color: #345574; } #top #wrap_all .post-entry .av-social-link-mail a { color: #fff; background-color: #9fae37; }
If you need further assistance please let us know.
Best regards,
VictoriaMay 21, 2018 at 3:12 pm #959801Ok thank you.
Like this all POSTS have by default the “Share this entry” bar.
There is a way to add by default the “Share this entry” bar also to PAGES?Thank you
MauroMay 21, 2018 at 3:15 pm #959804Hi,
If you also want to use the social toolbar with template builder pages add the following to functions.php:
add_action('ava_after_content', 'avia_add_social_toolbar', 10, 2); function avia_add_social_toolbar($id = "", $context = "") { if($context == "page" || $context == "single-portfolio") avia_social_share_links(); } add_filter('avf_template_builder_content', 'avia_add_social_toolbar_template_builder', 10, 1); function avia_add_social_toolbar_template_builder($content = "") { $content .= avia_social_share_links(array(), false); $content .= '<div style="height:1px; margin-top:50px;" class="hr"></div>'; return $content; }
Best regards,
Jordan ShannonMay 21, 2018 at 3:34 pm #959813Wow super fast answer! Thank you
I added also to style.css
#top .av-share-box ul { margin-bottom: 50px;}otherwise the bar was attached to the footer
Thank you
MauroMay 21, 2018 at 3:42 pm #959816Hi,
No problem at all. Did you need additional help, or shall will close this thread?
Best regards,
Jordan ShannonMay 21, 2018 at 4:14 pm #959837Hi Jordan,
There is a problem in the blog home.
please see https://profumo.tinytake.com/sf/MjYxMjc1MV83ODYwOTg0
May 21, 2018 at 4:33 pm #959842May 21, 2018 at 4:40 pm #959846Maybe you are on the live site, problem is on the staging site (there is just an “s” difference)
May 21, 2018 at 4:47 pm #959850Hi,
Try adding this to functions.php as well.
add_action('ava_after_main_container', 'avia_add_social_toolbar', 10, 2); function avia_add_social_toolbar($id = "", $context = "") { if($context == "page" || $context == "single-portfolio") avia_social_share_links(); }
Best regards,
Jordan Shannon- This reply was modified 6 years, 7 months ago by Jordan Shannon.
May 21, 2018 at 4:54 pm #959853this is the same php function you suggested before, it is not css, maybe wrong copy and paste?
May 21, 2018 at 5:01 pm #959859Hi,
Updated the answer and changed the hook. Please try that suggestion.
Best regards,
Jordan Shannon -
AuthorPosts
- You must be logged in to reply to this topic.