• HI guys,

    I’ve read around on this and somehow my problem seems to be different to others, so I’ve been told to try asking here.

    I’m using attitude theme and am trying to change my header to a logo image.

    I have uploaded my Header Logo under Appearance > Theme Options > Customer Header.

    The next step is to “Go into your header file and replace your current logo image with <?php theme_logo(); ?>”

    But, my header file does not have any mention of my logo image. It only has the below, and I do not know which line to edit..?

    Could someone help me please?

    — header.php —

    <?php
    /**
     * Displays the header section of the theme.
     *
     * @package Theme Horse
     * @subpackage Attitude
     * @since Attitude 1.0
     */
    ?>
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    
    	<?php
    		/**
    		 * attitude_title hook
    		 *
    		 * HOOKED_FUNCTION_NAME PRIORITY
    		 *
    		 * attitude_add_meta 5
    		 * attitude_show_title 10
    		 *
    		 */
    		do_action( 'attitude_title' );
    
    		/**
    		 * attitude_meta hook
    		 */
    		do_action( 'attitude_meta' );
    
    		/**
    		 * attitude_links hook
    		 *
    		 * HOOKED_FUNCTION_NAME PRIORITY
    		 *
    		 * attitude_add_links 10
    		 * attitude_favicon 15
    		 * attitude_webpageicon 20
    		 *
    		 */
    		do_action( 'attitude_links' );
    
    		/**
    		 * This hook is important for wordpress plugins and other many things
    		 */
    		wp_head();
    	?>
    
    </head>
    
    <body <?php body_class(); ?>>
    	<?php
    		/**
    		 * attitude_before hook
    		 */
    		do_action( 'attitude_before' );
    	?>
    
    	<div class="wrapper">
    		<?php
    			/**
    			 * attitude_before_header hook
    			 */
    			do_action( 'attitude_before_header' );
    		?>
    		<header id="branding" >
    			<?php
    				/**
    				 * attitude_header hook
    				 *
    				 * HOOKED_FUNCTION_NAME PRIORITY
    				 *
    				 * attitude_headerdetails 10
    				 */
    				do_action( 'attitude_header' );
    			?>
    		</header>
    		<?php
    			/**
    			 * attitude_after_header hook
    			 */
    			do_action( 'attitude_after_header' );
    		?>
    
    		<?php
    			/**
    			 * attitude_before_main hook
    			 */
    			do_action( 'attitude_before_main' );
    		?>
    		<div id="main" class="container clearfix">

    Thank you kindly

Viewing 10 replies - 1 through 10 (of 10 total)
  • @jay passion To put the header logo image, you don’t need to do any coding. In the dashboard, go to Appearance->Theme Options->Design Options Tab->Custom Header.
    Upload the logo image and check on ‘Show header image only’ option.
    Then click on ‘Save all Changes’.

    Thread Starter jay passion

    (@jay-passion)

    Hi Sanjiv,

    Thank you kindly for your reply.

    I mean I would like it to look something like this

    Does anyone know what I need to do please?

    The area of your concern is under body,
    <header id=”branding”>
    <?php
    do_action(‘attitude_header’);
    ?>
    </header>

    I have able to delete do_action(‘attitude_header’);
    and enter some code like
    echo “<img src=\”https://localhost/yuena/wp-content/themes/attitude-child/2.jpg\” />”;

    and it appeared above the content.
    I suppose you could stick in
    <?php theme_logo(); ?>”
    and see what happens.

    Sorry about my comment.
    You would have to eliminate the php references.

    Instead of

    <?php theme_logo(); ?>”
    put in theme_logo();

    Thread Starter jay passion

    (@jay-passion)

    Will this really work?

    I’m nervous about breaking the php

    Don’t modify theme files EXCEPT in a child theme – otherwise all your changes will be lost when the theme is updated…

    https://codex.www.ads-software.com/Child_Themes

    Assuming what you’re after is both a logo and text, this would work – using a child theme as noted above you need to modify:

    – the width of

    <hgroup id="site-logo" class="clearfix">

    (line 431 of header-extensions.php in the structure folder but do it in your style sheet) to accommodate both text and logo.

    Then just before

    <h1 id="site-title"> in the header-extensions.php in the structure folder you can drop in your image like this:

    <img src="https://www.yourwebsite.com/logo.jpg" style="float:left;margin-right:20px;">

    (Put your style for the logo in the style sheet, I’m just adding it in to show what I applied)

    IPSON

    (@ipson)

    tengo un problema semajante! necesito ayuda urgente!

    necesito poner un logo que ocupe todo el header, no se como hacer. les dejo mi web de ejemplo para que vean el problema que tengo! saludos y gracias desde ya https://www.voltam.com.ar

    IPSON

    (@ipson)

    I have a similar problem! I need urgent help!

    I need to put a logo that fills the header, do not know how. leave my site example for you to see the problem that I have! greetings and thanks from now https://www.voltam.com.ar

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @ipson Please start your own topic, it’s the best way to get support for your specific problem.

    https://www.ads-software.com/support/theme/attitude#postform

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Cant put logo in Header issue’ is closed to new replies.