Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #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 coloured

    Thank you
    Mauro

    #958253

    please see screenshot

    #958305

    Hi profumopuntoit,

    Can you give us a link to your site? so we can have a closer look.

    Best regards,
    Nikko

    #958553

    Please see for example:

    #959135

    Hi 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,
    Victoria

    #959801

    Ok 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
    Mauro

    #959804

    Hi,

    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 Shannon

    #959813

    Wow 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
    Mauro

    #959816

    Hi,

    No problem at all. Did you need additional help, or shall will close this thread?

    Best regards,
    Jordan Shannon

    #959837

    Hi Jordan,

    There is a problem in the blog home.

    please see https://profumo.tinytake.com/sf/MjYxMjc1MV83ODYwOTg0

    #959842

    Hi,

    This is how I’m viewing the page:

    https://snag.gy/9qgBQa.jpg

    Best regards,
    Jordan Shannon

    #959846

    Maybe you are on the live site, problem is on the staging site (there is just an “s” difference)

    #959850

    Hi,

    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

    #959853

    this is the same php function you suggested before, it is not css, maybe wrong copy and paste?

    #959859

    Hi,

    Updated the answer and changed the hook. Please try that suggestion.

    Best regards,
    Jordan Shannon

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.