• 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

    (@chillannyc)

    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 -->

    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”/>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Having coding issues in header.php’ is closed to new replies.