Title: Decrease space between categories in nav bar
Last modified: August 31, 2016

---

# Decrease space between categories in nav bar

 *  Resolved [Ralph SW](https://wordpress.org/support/users/ralphsolera/)
 * (@ralphsolera)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/decrease-space-between-categories-in-nav-bar/)
 * Hi again
 * I need to decrease horizontal space between each category in main menu… it is
   possible?
 * Or, in negative case, it is possible to change the background color of entire
   nav bar, and not only de categories fields (cells)…

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Theme Author [Richie KS](https://wordpress.org/support/users/rkcorp/)
 * (@rkcorp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/decrease-space-between-categories-in-nav-bar/#post-7076158)
 * errr. this kind of customization is beyond free support..will help you out this
   time…try this, its a snippet i cook up for our donater/supporter recently. supposedly
   it work on their end.
 * add this to wp-content/meso-custom-functions.php or child functions.php
    [http://pastebin.com/yz8wV4e6](http://pastebin.com/yz8wV4e6)
 *  Theme Author [Richie KS](https://wordpress.org/support/users/rkcorp/)
 * (@rkcorp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/decrease-space-between-categories-in-nav-bar/#post-7076163)
 * once added the code, the main nav will have the same style for nav block like
   the our mesocolumn child theme = mesodark, but it white scheme.
    //demo.dezzain.
   com/?wptheme=mesodark
 *  Thread Starter [Ralph SW](https://wordpress.org/support/users/ralphsolera/)
 * (@ralphsolera)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/decrease-space-between-categories-in-nav-bar/#post-7076192)
 * Thanks for helping me, Richie… 🙂 I appreciate this.
 * I paste the code in my meso-custom-functions.php but the result was:
 * Parse error: syntax error, unexpected ‘}’ in /home/maxivers/public_html/wp-content/
   meso-custom-functions.php on line 19
 *  Thread Starter [Ralph SW](https://wordpress.org/support/users/ralphsolera/)
 * (@ralphsolera)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/decrease-space-between-categories-in-nav-bar/#post-7076193)
 * I saw your demo site and is exactly what I need! 🙂
 *  Thread Starter [Ralph SW](https://wordpress.org/support/users/ralphsolera/)
 * (@ralphsolera)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/decrease-space-between-categories-in-nav-bar/#post-7076195)
 * I restored original archive…
 *  Theme Author [Richie KS](https://wordpress.org/support/users/rkcorp/)
 * (@rkcorp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/decrease-space-between-categories-in-nav-bar/#post-7076219)
 * did you forget to add open and close php tag
 *     ```
       <?php
       -- the code --
       ?>
       ```
   
 *  Thread Starter [Ralph SW](https://wordpress.org/support/users/ralphsolera/)
 * (@ralphsolera)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/decrease-space-between-categories-in-nav-bar/#post-7076231)
 * No, I put into an another PHP code in the page… I try to put into original code
   and after then too, with <?php and ?> but doesn’t work…
 *  Theme Author [Richie KS](https://wordpress.org/support/users/rkcorp/)
 * (@rkcorp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/decrease-space-between-categories-in-nav-bar/#post-7076243)
 * > No, I put into an another PHP code in the page… I try to put into original 
   > code and after then too, with <?php and ?> but doesn’t work…
 * i’m confuse, are we still talking about the main nav customization? because its
   working fine in my end on the code..
    try download and upload this to wp-content///
   cdn.dezzain.com/1/2016/02/meso-custom-main-nav.zip it basically the same code
   as pastebin.
 *  Theme Author [Richie KS](https://wordpress.org/support/users/rkcorp/)
 * (@rkcorp)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/decrease-space-between-categories-in-nav-bar/#post-7076245)
 * also you need to setup menu in wp-admin->appeareance->menus->primary, so that
   the color menu work.
 *  Thread Starter [Ralph SW](https://wordpress.org/support/users/ralphsolera/)
 * (@ralphsolera)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/decrease-space-between-categories-in-nav-bar/#post-7076308)
 * Hi… yeah, we are still talking about the main nav customization.
 * I don’t know why, but don’t work here… 🙁 but it is ok, I will try another solution.
 * Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Decrease space between categories in nav bar’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/mesocolumn/1.6.5.1/screenshot.
   png)
 * MesoColumn
 * [Support Threads](https://wordpress.org/support/theme/mesocolumn/)
 * [Active Topics](https://wordpress.org/support/theme/mesocolumn/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/mesocolumn/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/mesocolumn/reviews/)

## Tags

 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [nav bar](https://wordpress.org/support/topic-tag/nav-bar/)

 * 10 replies
 * 2 participants
 * Last reply from: [Ralph SW](https://wordpress.org/support/users/ralphsolera/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/decrease-space-between-categories-in-nav-bar/#post-7076308)
 * Status: resolved