WordPress.org

Ready to get started?Download WordPress

Forums

Change the URL for logo (5 posts)

  1. wotnow
    Member
    Posted 1 year ago #

  2. Something weird happened with the code got pasted in.

    When adding code, make sure you use the code tag to wrap your snippet.

    I think that your header has something like this:

    <a href="<?php bloginfo( 'url'); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>

    You can change that to <?php bloginfo( 'name' ); ?>

  3. wotnow
    Member
    Posted 1 year ago #

    Thanks for your response! I am not sure what you mean by the code .. I can read it fine.

    Your answer has really enlightened me at all<a href="<?php bloginfo( 'url'); ?>

    This line of code I do not have.
    I have re-pasted the code in between code tags.

    <div id="header">
    		<div id="masthead">
    			<div id="branding" role="banner">
    				<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
    				<<?php echo $heading_tag; ?> id="site-title">
    					<span>
    						<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    					</span>
    				</<?php echo $heading_tag; ?>>
    				<div id="site-description"><?php bloginfo( 'description' ); ?></div>
    <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    				<?php
  4. Change this sentence:

    <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>

    to:

    <a href="http://yourdomain.com"><?php bloginfo( 'name' ); ?></a>

  5. wotnow
    Member
    Posted 1 year ago #

    Thanks very much!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags