Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #572758

    Hi

    ive tryed this:

    https://kriesi.at/support/topic/share-icons-on-pages-and-portfolio-items/#post-260646

    But the socialbar is shown on top of the page, and it also show in normale pages (and destroys my menu).

    I only want it to show on single porfolio items (at the botom)

    tnx! :)

    #572768

    Hi!

    Refer to my reply here:

    Cheers!
    Josue

    #572770

    Hi!

    I checked it out, its working for the single portfolio page. But is it alsow showing on the normal pages. I dont want that. :)

    #572771

    Simply change this part:

    if($context == "page" || $context == "single-portfolio" || $context == "product")
    

    To:

    if($context == "single-portfolio" || $context == "product")
    

    Best regards,
    Josue

    #572772

    Hi its still showing

    check at the bottom, the little white spacing..

    #572775

    Try adding this code to the Quick CSS:

    .page #custom_share_box {
        display: none;
    }

    Cheers! 
    Josue

    #572819

    Hi!

    it’s still showing on the bottom off the pages.

    Another solution? :)

    Style.css

    /*Remove big automated image on portfoliopage*/
    .single-portfolio .page-thumb {
    display: none;
    }
    
    */ Social media verwijderen op PAGES */
    .page #custom_share_box {
        display: none;
    }
    
    */ Achtergrondkleur heading */
    .av-special-heading-tag {
        height: 100px;
        position: relative;
        top: 40px;
    }
    
    .av-special-heading-tag span {
        background: rgba(255, 162, 29, 0.5) none repeat scroll 0 0;
        border-radius: 15px;
        padding: 10px 20px;
    }
    
    /* Menu Kleuren */
    /* Home */
    li#menu-item-11 a {
        background-color: #545454!important;
    }
    
    /* IT Diensten */
    li#menu-item-249 a {
        background-color: #2d5c88!important;
    }
    
    /* Telefonie */
    li#menu-item-261 a {
        background-color: #dd6666!important;
    }
    
    /* Mobiel */
    li#menu-item-263 a {
        background-color: #61afd3!important;
    }
    
    /* Internet */
    li#menu-item-262 a {
        background-color: #00ddb1!important;
    }
    
    /* Veiligheid */
    li#menu-item-353 a {
        background-color: #816084!important;
    }
    
    /* Website */
    li#menu-item-477 a {
        background-color: #ffa21d!important;
    }
    
    /* Nieuws */
    li#menu-item-274 a {
        background-color: #545454!important;
    }
    
    /* Portfolio */
    li#menu-item-511 a {
        background-color: #545454!important;
    }
    
    /* Contact */
    li#menu-item-266 a {
        background-color: #545454!important;
    }
    

    functions.php

    
    add_action('ava_after_content', 'avia_add_social_toolbars', 10, 2);
    function avia_add_social_toolbars($id = "", $context = "")
    {
    if($context == "single-portfolio" || $context == "product")
    	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 .= '<div id="custom_share_box" class="avia-section main_color container_wrap"><div class="container">';
    	$content .= avia_social_share_links(array(), '', '', false);
    	$content .= '</div>';
    	return $content;
    }
    • This reply was modified 8 years, 10 months ago by c3computers.
    #572823

    There are some typos in your stylesheet comments that are preventing the code from working – http://c3computers.nl/wp-content/themes/enfold-child/style.css. CSS comments should be like:

    /* comment */
    

    Not like this:

    */ Comment */
    
    #572828

    Hi it working

    that was a special kind a stupid :p

    many tnx!

    Topic can be closed

    #572831

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Add socialbar to portfolio items (with aviabuilder activated)’ is closed to new replies.