Title: Having coding issues in header.php
Last modified: August 20, 2016

---

# Having coding issues in header.php

 *  [chillannyc](https://wordpress.org/support/users/chillannyc/)
 * (@chillannyc)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/having-coding-issues-in-headerphp/)
 * SPOILER: I’m a newb.
 * I’m taking what’s probably my second shot at editing theme files. I’m trying 
   to add a few social bookmarking buttons to header.php.
 * The original segment of code:
    <div id=”page-heading” class=”yui-g”> <div class
   =”yui-u first”> <?php breadcrumb_trail(); ?> <?php if ( function_exists(‘yoast_breadcrumb’)){
   yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’); } ?> </div> <div class=”yui-
   u alignright”> “>Subscribe to RSS Updates </div> </div><!– end #page-heading –
   >
 * I tried a couple variations of this:
    <div id=”page-heading” class=”yui-g”> <
   div class=”yui-u first”> <?php breadcrumb_trail(); ?> <?php if ( function_exists(‘
   yoast_breadcrumb’) ) { yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’); } ?> 
   </div> <div class=”yui-u alignright”> “><img src=”i_put_my_url_here” /> </div
   > </div><!– end #page-heading –>
 * But it completely destroys the layout of the complete page (not the header strangely.
   I was planning on inserting about 5 different linked images this way (the rest
   just w regular URLs, no php). Tried taking out the div class aswell, and taking
   out the div completely.
 * Help?
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [chillannyc](https://wordpress.org/support/users/chillannyc/)
 * (@chillannyc)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/having-coding-issues-in-headerphp/#post-2134636)
 * LOL arg.
 * **original**:
 *     ```
       <div id="page-heading" class="yui-g">
         <div class="yui-u first">
           <?php breadcrumb_trail(); ?>
           <?php if ( function_exists('yoast_breadcrumb') ) {
            yoast_breadcrumb('<p id="breadcrumbs">','</p>');
           } ?>
         </div>
         <div class="yui-u alignright">
            <a class="rss" rel="nofollow" href="<?php bloginfo('rss2_url'); ?>">Subscribe to RSS Updates</a>
         </div>
       </div><!-- end #page-heading -->
       ```
   
 * **my attempt**:
 *     ```
       <div id="page-heading" class="yui-g">
         <div class="yui-u first">
           <?php breadcrumb_trail(); ?>
           <?php if ( function_exists('yoast_breadcrumb') ) {
            yoast_breadcrumb('<p id="breadcrumbs">','</p>');
           } ?>
         </div>
         <div class="yui-u alignright">
            <a href="<?php bloginfo('rss2_url'); ?>"><img src="i_put_my_image_url_here" /></a>
         </div>
       </div><!-- end #page-heading -->
       ```
   
 *  [dbphte1](https://wordpress.org/support/users/dbphte1/)
 * (@dbphte1)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/having-coding-issues-in-headerphp/#post-2134685)
 * if you want to replace your rss with a social bookmark button replace this bit:
   `
   <a class="rss" rel="nofollow" href="<?php bloginfo('rss2_url'); ?>">Subscribe
   to RSS Updates</a>`
 * with this:
    `[<img src=”imagelocation”/>](http://yoururlcom)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Having coding issues in header.php’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [dbphte1](https://wordpress.org/support/users/dbphte1/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/having-coding-issues-in-headerphp/#post-2134685)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
