• I would like to insert a small logo on the rightside of the title in the header. Would appreciate information on how i can do it.

    Thanks in advance

Viewing 7 replies - 1 through 7 (of 7 total)
  • First off setup and activate child theme:
    http://codex.wordpress.org/Child_Themes

    Then copy header.php from /wp-content/themes/montezuma/admin/default-templates/sub-templates/ and paste it in /wp-content/themes/your-child-theme-directory/admin/default-templates/sub-templates/

    Then edit header.php from /wp-content/themes/your-child-theme-directory/admin/default-templates/sub-templates/.

    Find line 5, and change the anchor tag to point your logo image.

    No, for Montezuma you do not need to create a child theme. In fact, one of the strengths of Montezuma is that you don’t need to create child themes to make those kind of changes.

    From the Dashboard, go to Appearances > Montezuma Options > Subtemplates > header.php. Look for the DIV with the id of logo-area and you should be able to add your image after the link to the sitetitle.

    @ CrouchingBruin could you make a sample in what part i add the header logo?

    this is what i see

    <div id="banner-bg" class="cf">
    	<div id="banner" class="row">
    		<div id="logo-area" class="col5">
    			<<?php bfa_if_front_else( 'h1', 'h3' ); ?> id="sitetitle">
    				<a>"><?php bloginfo( 'name' ); ?></a>
    			</<?php bfa_if_front_else( 'h1', 'h3' ); ?>>
    			<p id="tagline"><?php bloginfo( 'description' ); ?></p>
    		</div>
    		<?php wp_nav_menu( array(
    			'container' => 'nav',
    			'container_class' => 'menu-wrapper col7',
    			'container_id' => 'menu1-wrapper',
    			'menu_id' => 'menu1',
    			'menu_class' => 'cf menu',
    			'theme_location' => 'menu1',
    			'fallback_cb' => 'bfa_page_menu'
    		) ); ?>
    	</div>
    </div>
    
    <a>" class="rsslink" title="<?php _e( 'Subscribe to RSS Feed', 'montezuma' ); ?>"></a>
    
    <div id="breadcrumbs1-bg">
    	<nav id="breadcrumbs1" class="breadcrumbs lw">
    		<?php bfa_breadcrumbs( 'breadcrumbs1' ); ?>
    	</nav>
    </div>

    [Please post code & markup between backticks or use the code button. Your posted code has now been permanently damaged by the forum’s parser.]

    Somewhere in this DIV, with the ID of logo-area, is where you would put an image. The line of code with the ID of sitetitle is what prints out your site’s name (which you set in the WordPress settings). The line of code which has the ID of tagline will print the tagline of your site (which you also set in your WordPress settings). In the example below, I placed an image right after the opening DIV tag for logo-area, with the ID of MyLogo; that way you can format/position the logo using the #MyLogo selector in your CSS settings (float left or right, add margins, borders, adjust the size, etc). I also put the logo within an anchor (link) tag so users can get to my home page by clicking on the logo.

    <div id="logo-area" class="col5">
         <a href="http://mysite.com"><img id="MyLogo" src="/images/mylogo.jpg" /></a>
         <<?php bfa_if_front_else( 'h1', 'h3' ); ?> id="sitetitle">
         <a>"><?php bloginfo( 'name' ); ?></a>
         </<?php bfa_if_front_else( 'h1', 'h3' ); ?>>
         <p id="tagline"><?php bloginfo( 'description' ); ?></p>
    </div>

    SallyAnnLaw

    (@sallyannlaw)

    I am using the Asteria Light wordpress theme.
    I have tried these several methods of inserting the code but no one is really explaining where exactly to put the code and what to do once its there.

    I want to put the logo into the same place the header would be???

    Also WordPress creators why wouldn’t you guys have this as a standard capability for this theme?

    I mean isn’t being able to insert a logo a fundamental requirement of a site or theme?

    Any help would be wonderful but please make it fairly clear and a expect no prior knowledge on my behalf???

    Thanks so much

    SallyAnnLaw

    (@sallyannlaw)

    I am not sure of the right code either.

    CrouchingBruin

    (@crouchingbruin)

    Hi, Sally Ann:

    First of all, this is the support forum for the Montezuma theme. If you have a question about Asteria Lite, you should post it on the Asteria Lite support page. You’re more likely to get a specific answer to your question there. In fact, there’s a recent thread that goes over how to add a logo image to the header.

    Also WordPress creators why wouldn’t you guys have this as a standard capability for this theme? I mean isn’t being able to insert a logo a fundamental requirement of a site or theme?

    There are plenty of users who don’t need or use a logo. Many personal blog sites, which is one of the biggest uses for WordPress, don’t use or need a logo. If a theme developer thought it would be useful to their target audience, he or she would hopefully add that option to their theme.

    Even if it weren’t an option for a particular theme, you can change just about theme to add a logo by creating a child theme and making changes to the code which outputs the header (usually header.php, but it could be something else, depending upon the theme). If you don’t know how to code, then maybe you should think about going through some tutorials. If you are planning on making changes to a theme beyond what’s available in its options, it’s always better to have some coding knowledge.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Insert Logo in header’ is closed to new replies.