Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter djedje

    (@djedje)

    **on mysite.com instead of the homepage showing, a generic hello world! blog page comes up.**

    I just realised, a comma is crucial to defining that sentence’s meaning ??

    Thread Starter djedje

    (@djedje)

    In the end I realised that calling multiple classes through php does not required commas, in that way I managed to apply existing styles to my new menu.

    Thanks bcworkz, using the developer tools I found out which CSS classes were applied to each element.

    Thread Starter djedje

    (@djedje)

    Hi Biren, thanks for your reply. I’m trying to do that but it doesn’t seem that the styles are being applied to the new menu class. Here’s my code from header.php

    <header role="banner">
    
    			<div class="navbar navbar-default navbar-fixed-top">
    				<div class="container container-full">
    
    					<div class="navbar-header">
    						<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-responsive-collapse">
    							<span class="icon-bar"></span>
    							<span class="icon-bar"></span>
    							<span class="icon-bar"></span>
    						</button>
    
                                                    <?php if( $berry_redux['berry-nav-branding-logo-is-image'] == true ):  ?>
                                                    <a class="navbar-brand is-image" title="<?php echo get_bloginfo('description'); ?>" href="<?php echo home_url(); ?>">
                                                        <img class="branding-logo" src="<?php echo $berry_redux['berry-nav-branding-logo']['url']; ?>" alt="<?php echo get_bloginfo('description'); ?>">
                                                    </a>
                                                    <?php else : ?>
    						<a class="navbar-brand" title="<?php echo get_bloginfo('description'); ?>" href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a>
                                                    <?php endif; ?>
    					</div>
    
    					<div class="collapse navbar-collapse navbar-responsive-collapse">
    
    						<?php wp_bootstrap_main_nav(); // Adjust using Menus in WordPress Admin ?>
                            <?php wp_nav_menu( array( 'theme_location' => 'new-menu', 'container_class' => 'navbar-responsive-collapse' ) ); ?>
Viewing 3 replies - 1 through 3 (of 3 total)