Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #600479
    #600988

    Hey fredengl,

    You can try something like this:

    add_action('ava_after_content', 'avia_add_social_toolbar', 10, 2);
    function avia_add_social_toolbar($id = "", $context = "")
    {
    	if($context == "page" || $context == "single-portfolio") {
                    if ( ! is_page( 42 )) {
    		avia_social_share_links();
                    }
            }
    }

    42 is the ID of the page and the exclamation mark means not, so the code will not display on the page with ID 42. https://developer.wordpress.org/reference/functions/is_page/

    Thanks,
    Rikard

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