• 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)
  • Thread Starter Goronzor

    (@goronzor)

    Oups !

    Parse error: syntax error, unexpected ‘endif’ (T_ENDIF)

    Theme Author TT Themes

    (@tomastoman)

    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

    (@goronzor)

    Its good ! I had forgotten to remove the closure of php. It works great!
    Thanks again.

    Thread Starter Goronzor

    (@goronzor)

    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

    (@tomastoman)

    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

    (@goronzor)

    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.

    https://image.noelshack.com/fichiers/2016/20/1463563040-capture-d-ecran-2016-05-18-a-11-08-24.jpg

    Theme Author TT Themes

    (@tomastoman)

    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

    (@goronzor)

    OK, thank you for your support !

    See you in another topic !

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘CSS Menu’ is closed to new replies.