Forums

href in header keeps getting appended - Barthelme theme (2 posts)

  1. jfletch
    Member
    Posted 2 years ago #

    I've modified the Barthelme theme by adding my own div in the header and sticking an href in there:


    //template code
    <div id="header" style="cursor:pointer;">
    <h1 id="title"><a href="<?php echo get_settings('home'); ?>/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
    //my code
    <div id="foo">
    <a href="<?php echo $linktxt; ?>"> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/house-icon.gif">Hi there.</a>
    </div>
    ...
    </div>

    My url keeps getting http://<home> added to the front of it no matter what i do -- so it always displays as http://<home>/<site i want>. i've tried removing the home href above and it STILL comes back. I thought maybe this was an add_action call somewhere, but no dice. removing wp_head call did nothing.

    what don't i get?

  2. jfletch
    Member
    Posted 2 years ago #

    I'm an idiot. Well, kind of. In order to validate the URL, WP required me to add http:// to the front, which i didn't even think about.

    I was parsing a text file to get www.mysite.com

    adding http:// to the front made the url valid as a link.

    go figure.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags