- This topic has 3 replies, 2 voices, and was last updated 9 years, 11 months ago by Sakin.
-
AuthorPosts
-
June 9, 2014 at 12:11 pm #34023valerieMember
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
June 9, 2014 at 2:50 pm #34040SakinKeymasterHello 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,
SakinJune 9, 2014 at 6:25 pm #34055valerieMemberHello 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
June 10, 2014 at 12:12 am #34079SakinKeymasterHello 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 copycatcheverest_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 -
AuthorPosts
- The topic ‘Social Widget’ is closed to new replies.