Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34023
    valerie
    Member

    Hello Sakin,

    I have an unusual issue. I am using the Social Widget included in the Catch Everest Pro theme. I have 3 icons (Facebook, LinkedIn and Twitter) Is there anyway to hide the Twitter icon just on a particular category page? I have 2 category pages. (north america and Europe) I only want the Twitter logo to appear in the sidebar on the Europe page. I could not find a way to create 2 different social widgets so each page could have a different one.

    Thank you!!

    Valerie

    #34040
    Sakin
    Keymaster

    Hello Valerie,

    For this you need to add in custom css for those particular category. So, can you send me your site URL and categories where you want to hide it. Then I will send you custom css that you can add in.

    Regards,
    Sakin

    #34055
    valerie
    Member

    Hello Sakin,

    The site URl is http://www.colpittswt.com/blog/

    I need the Twitter icon to show up only on the “European” category page on the navigation menu. The North America category page should not display the twitter icon. Some of the blog articles appear on both category pages.

    Thank you so much for your help on this. Have a nice day.

    Valerie

    #34079
    Sakin
    Keymaster

    Hello Valerie,

    Sorry the icon can be disable by custom css: only in category or individual page or individual post. But not all the post in particular category.

    To disable in all post in particular category like “North America”. You need to build child theme and then create new functions.php file in your child theme and then copy catcheverest_social_networks() function and edit the code.

    Just above your twitter code add if conditions. Like this

    //Twitter
    if ( !empty( $options[ 'social_twitter' ] ) && !is_category('north-america') && !in_category( 'north-america' ) ) {
    	$catcheverest_social_networks .=
    		'<li class="twitter"><a href="'.esc_url( $options[ 'social_twitter' ] ).'" title="'.sprintf( esc_attr__( '%s on Twitter', 'catcheverest' ),get_bloginfo( 'name' ) ).'" target="_blank">'.get_bloginfo( 'name' ).' Twitter </a></li>';
    }

    Be careful, this is bit technical and you might need to hire customizer to work on it.

    Regards,
    Sakin

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Social Widget’ is closed to new replies.