How can i show small share buttons on homepage and large on content?

This topic is: Resolved

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!

Tagged: 

This topic contains 3 replies, has 3 voices, and was last updated by  halilibrahimkar 2 years ago.

  • Author
    Posts
  • #5405

    halilibrahimkar
    Member
    Post count: 33

    Hi Maxxi,

    Code didn`t work corretly. It show small share buttons on homepage but it also show small on content page. I choose large on theme options. Large buttons turned to small.

    add_filter( 'yt_before_return_theme_options_data', 'change_my_post_metainfo_for_specific_pages11242014', 10 );
    
    function change_my_post_metainfo_for_specific_pages11242014( $data){
    
    	if( !is_single() ){
    		$data['blog_post_meta_info_mode'] = 'small';
    	}
    
    	return $data;
    
    }

    I also tried “is_home()” and “is_front_page()”. It didn`t work as i wish.

    How can i show share buttons on homepage as Style 1(small) and on content as Style 2(large) ?

    Thanks

  • #5413

    CarlosMarli
    Member
    Post count: 123

    Here is your answer

    🙂

  • #5414

    Jacob
    Staff
    Post count: 2323

    Hey there, You must be logged in to view this reply!

    Login | Register | Forgot Password?

  • #5417

    halilibrahimkar
    Member
    Post count: 33

    Thanks Carlos. I looked older topics quickly. Sorry for my sloth 🙂

You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view the replies/answers, you must be logged in!