Title: Problem adding new code to header.php
Last modified: September 1, 2016

---

# Problem adding new code to header.php

 *  [jruvar](https://wordpress.org/support/users/jruvar/)
 * (@jruvar)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/problem-adding-new-code-to-headerphp/)
 * Hi guys,
 * Thanks for reading me and sorry for my english. I have a question adding new 
   code to header.php on my multipurpose template.
 * I’m trying to view one image in header, but, when I paste the next code, nothing
   appears, while in other parts of the code, it shows.
 * `<?php echo '<a href="http://www.castillomontjuic.com/12a-edicion-plenilunios-
   castillo-montjuic" itemprop="url"><div style="/*float: right;position: absolute;
   position: fixed;margin-left: 83%;margin-top: 5%;*/float: right;position: absolute;
   margin-left: 76%;/*margin-top: 7%*/top: 3.5%;/*left: 76%;*/z-index: 2000;"><img
   src="http://www.castillomontjuic.com/wp-content/uploads/logo_top_plenilunis.png"
   alt="Plenilunis" height="" width=""></div></a>'; ?>`
 * I paste the code in this lines…
 *     ```
       <?php if ($header_layout < 8 || ($header_layout > 10 && $header_layout < 15)) : ?>
   
       <!-- <<<< NEW CODE HEARE... BUT, NOT WORKS... >>>> -->
   
       		<div class="main-header-wrapper">
       			<section class="main-header cf">
       				<?php get_template_part('logo'); ?>
       ```
   
 * Thanks to all! 🙂

The topic ‘Problem adding new code to header.php’ is closed to new replies.

## Tags

 * [adding](https://wordpress.org/support/topic-tag/adding/)
 * [code](https://wordpress.org/support/topic-tag/code/)
 * [css](https://wordpress.org/support/topic-tag/css/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [new](https://wordpress.org/support/topic-tag/new/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 0 replies
 * 1 participant
 * Last reply from: [jruvar](https://wordpress.org/support/users/jruvar/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/problem-adding-new-code-to-headerphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
