• ro

    (@rohitdudani)


    Hi,

    I have installed “preus” theme and trying to customize few things

    1) Trying to add a logo (as image) in the top header
    2) Trying to add “new post” and “old post” link in all category page.
    3) Change the default color of the all the post to black.

    website – kiipfit.com
    Current header code:

    [please mark any posted code – https://codex.www.ads-software.com/Forum_Welcome#Posting_Code ]

    <?php
    /**
     * The Header for our theme.
     *
     * Displays all of the <head> section and everything up till <div id="content">
     *
     * @package Preus
     */
    ?><!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <!-- 38B5D3A1-B806-40E5-B41F-61AA5DB69DF7 -->
    </head>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php wp_title( '|', true, 'right' ); ?></title>
    <link rel="profile" href="https://gmpg.org/xfn/11">
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="parallax-bg"></div>
    <div id="page" class="hfeed site">
    	<?php do_action( 'before' ); ?>
    
    	<div id="top-bar">
    	<div class="container">
    
    	<div id="top-search" class="col-lg-4 col-md-12 col-sm-12">
    	<?php get_search_form(); ?>
    	</div>
    
    		 <div class="default-nav-wrapper col-md-12 col-lg-8 col-xs-12 col-sm-12">
    	   <div class="nav-wrapper container">
    		   <nav id="site-navigation" class="navbar navbar-default main-navigation" role="navigation">
    
    			<div class="navbar-header">
    		    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
    		      <span class="sr-only">Toggle navigation</span>
    		      <span class="icon-bar"></span>
    		      <span class="icon-bar"></span>
    		      <span class="icon-bar"></span>
    		    </button>
    		  </div>
    
    			<?php
    			    wp_nav_menu( array(
    			        'theme_location'    => 'top',
    			        'depth'             => 2,
    			        'container'         => 'div',
    			        'container_class'   => 'collapse navbar-collapse navbar-ex1-collapse',
    			        'menu_class'        => 'nav navbar-nav',
    			        'fallback_cb'       => false,
    			        'walker'            => new wp_bootstrap_navwalker())
    			    );
    ?>
    		 </nav><!-- #site-navigation -->
    		</div>
    	  </div>
    
    	</div>
    	</div><!--#top-bar-->
    
    	<div id="content" class="site-content row">
    
    	<?php get_template_part('carousel'); ?>
    
    			<div class="container col-md-12">
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with header and color change’ is closed to new replies.