Advertisement
GochiSiyan

change logo and menu in category page

Apr 12th, 2022
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. add_filter( 'theme_mod_jnews_mobile_logo', function ( $logo ) {
  2. if ( is_category() ) {
  3. return '';//your alternative logo
  4. }
  5. return $logo;
  6. } );
  7.  
  8. add_filter( 'theme_mod_jnews_mobile_logo_retina', function ( $logo ) {
  9. if ( is_category() ) {
  10. return '';//your alternative logo
  11. }
  12. return $logo;
  13. } );
  14.  
  15. add_filter( 'theme_mod_jnews_header_logo', function ( $logo ) {
  16. if ( is_category() ) {
  17. return '';//your alternative logo
  18. }
  19. return $logo;
  20. } );
  21.  
  22. add_filter( 'theme_mod_jnews_header_logo_retina', function ( $logo ) {
  23. if ( is_category() ) {
  24. return '';//your alternative logo
  25. }
  26. return $logo;
  27. } );
  28.  
  29. add_filter( 'theme_mod_jnews_sticky_menu_logo', function ( $logo ) {
  30. if ( is_category() ) {
  31. return '';//your alternative logo
  32. }
  33. return $logo;
  34. } );
  35.  
  36. add_filter( 'theme_mod_jnews_sticky_menu_logo_retina', function ( $logo ) {
  37. if ( is_category() ) {
  38. return '';//your alternative logo
  39. }
  40. return $logo;
  41. } );
  42.  
  43. add_filter( 'theme_mod_nav_menu_locations', function ( $menu ) {
  44. if ( is_category() ) {
  45. $menu = is_array( $menu ) ? $menu : array();
  46. $menu['navigation'] = 0;//the menu id you wish to assign to the category.
  47. }
  48. return $menu;
  49. } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement