Title: CSS Menu
Last modified: August 30, 2016

---

# CSS Menu

 *  [Goronzor](https://wordpress.org/support/users/goronzor/)
 * (@goronzor)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/css-menu-2/)
 * Hi,
 * I have a problem with green.css (or purple, gray). This css embarrassed me for
   create design of my website. How to delete this or desactivate ? I have a child
   theme.
    Thank you !

Viewing 8 replies - 16 through 23 (of 23 total)

[←](https://wordpress.org/support/topic/css-menu-2/?output_format=md) [1](https://wordpress.org/support/topic/css-menu-2/?output_format=md)
2

 *  Thread Starter [Goronzor](https://wordpress.org/support/users/goronzor/)
 * (@goronzor)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/css-menu-2/page/2/#post-6792435)
 * Oups !
 * Parse error: syntax error, unexpected ‘endif’ (T_ENDIF)
 *  Theme Author [TT Themes](https://wordpress.org/support/users/tomastoman/)
 * (@tomastoman)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/css-menu-2/page/2/#post-6792436)
 * Hi,
 * I found that if you put the code into your “functions.php” through the panel “
   Appearance > Editor”, it breaks the code. I recommend you to edit the “functions.
   php” via FTP instead.
 * Alternatively, you can use a different syntax for the PHP condition to prevent
   this error:
 *     ```
       function happenstance_content_nav( $html_id ) {
       	global $wp_query;
       	$html_id = esc_attr( $html_id );
       	if ( $wp_query->max_num_pages > 1 ) { ?>
       		<div id="<?php echo $html_id; ?>" class="navigation" role="navigation">
           <div class="navigation-inner">
       			<h2 class="navigation-headline section-heading"><?php _e( 'Post navigation', 'happenstance' ); ?></h2>
             <div class="nav-wrapper">
       			 <p class="navigation-links">
       <?php $big = 999999999;
       echo paginate_links( array(
       	'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
       	'format' => '?paged=%#%',
       	'current' => max( 1, get_query_var('paged') ),
       	'prev_text' => __( '&larr; Previous', 'happenstance' ),
       	'next_text' => __( 'Next &rarr;', 'happenstance' ),
       	'total' => $wp_query->max_num_pages,
       	'show_all' => true,
       	'add_args' => false
       ) );
       ?>
               </p>
             </div>
       		</div>
           </div>
       	<?php }
       }
       ```
   
 * Best regards,
    Tomas Toman
 *  Thread Starter [Goronzor](https://wordpress.org/support/users/goronzor/)
 * (@goronzor)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/css-menu-2/page/2/#post-6792439)
 * Its good ! I had forgotten to remove the closure of php. It works great!
    Thanks
   again.
 *  Thread Starter [Goronzor](https://wordpress.org/support/users/goronzor/)
 * (@goronzor)
 * [10 years ago](https://wordpress.org/support/topic/css-menu-2/page/2/#post-6792442)
 * Hello,
    I have a new problem. When I’m smartphone display my menu changes . Until
   then no problem, but a new clickable button appears “menu” . I wish it takes 
   him to my home page because it is useless.
 * Thank you !
 *  Theme Author [TT Themes](https://wordpress.org/support/users/tomastoman/)
 * (@tomastoman)
 * [10 years ago](https://wordpress.org/support/topic/css-menu-2/page/2/#post-6792443)
 * Hi,
 * for the next time, please create a separate topic for each new question. It helps
   to make the forum clearer. Thank you!
 * Unfortunately, I am not sure whether I correctly understood your question. If
   you can see some new menu button, it is most probably generated by a third-party
   plugin. Please try to deactivate all installed plugins to see whether it disappears
   then.
 * If your problem continues, please post here a screenshot of your issue (or post
   here a link to your website) so I could check it.
 * Best regards,
    Tomas Toman
 *  Thread Starter [Goronzor](https://wordpress.org/support/users/goronzor/)
 * (@goronzor)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/css-menu-2/page/2/#post-6792446)
 * OK Excuse me, this is noted.
 * Here is a screenshot . This could boutton myself profitable to return to home
   but I do not know how to change its link.
 * [http://image.noelshack.com/fichiers/2016/20/1463563040-capture-d-ecran-2016-05-18-a-11-08-24.jpg](http://image.noelshack.com/fichiers/2016/20/1463563040-capture-d-ecran-2016-05-18-a-11-08-24.jpg)
 *  Theme Author [TT Themes](https://wordpress.org/support/users/tomastoman/)
 * (@tomastoman)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/css-menu-2/page/2/#post-6792447)
 * Hi,
 * thank you for clarification. Unfortunately, there is no “home” button in the 
   drop-down menu that is shown on the mobile devices. The “home” button is displayed
   only in the desktop view. The drop-down menu contains only the links that are
   inserted into the Main Header Menu in “Appearance > Menus”. If you would like
   to display the “home” button beside the drop-down menu, please put the following
   custom CSS into “Appearance > Customize > HappenStance General Settings > Custom
   CSS”:
 *     ```
       html #wrapper .menu-box .link-home {display: block !important;}
       .js .selectnav {width: 80% !important; float: right !important;}
       ```
   
 * If you would like to completely hide the drop-down menu, then please use this
   custom CSS:
 * `.js .selectnav {display: none !important;}`
 * Best regards,
    Tomas Toman
 *  Thread Starter [Goronzor](https://wordpress.org/support/users/goronzor/)
 * (@goronzor)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/css-menu-2/page/2/#post-6792448)
 * OK, thank you for your support !
 * See you in another topic !

Viewing 8 replies - 16 through 23 (of 23 total)

[←](https://wordpress.org/support/topic/css-menu-2/?output_format=md) [1](https://wordpress.org/support/topic/css-menu-2/?output_format=md)
2

The topic ‘CSS Menu’ is closed to new replies.

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

 * 23 replies
 * 2 participants
 * Last reply from: [Goronzor](https://wordpress.org/support/users/goronzor/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/css-menu-2/page/2/#post-6792448)
 * Status: not resolved