WordPress.org

Ready to get started?Download WordPress

Forums

Unwelcome broken link icon in logo (24 posts)

  1. chuckmall2
    Member
    Posted 1 year ago #

    May be simple, but I can't get it. I also use Simply Works Core and Akismet. I changed my logo by uploading a new one. Now a junky and embarrassing broken link image appears over my logo. I changed the URL of the "link" (clicking on logo always returns to homepage) and it still doesn't work. Any help much appreciated. I'm not bad at this stuff but not as good as you young bucks!

  2. chuckmall2
    Member
    Posted 1 year ago #

    Oh, the website is SideDishesOnline.com in case you want to see it. This is not a cheap shot at hits. In fact, I wish no one would even SEE the site until I get it fixed.

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of assistance.

  4. chuckmall2
    Member
    Posted 1 year ago #

  5. esmi
    Forum Moderator
    Posted 1 year ago #

    How did you add this logo? Right now it's not pointint to any image - just to http://chuckmall.com/wp-content/

  6. chuckmall2
    Member
    Posted 1 year ago #

    I just uploaded a new image of the logo

  7. esmi
    Forum Moderator
    Posted 1 year ago #

    How did you add the image to your theme? Is there an option in the theme to upload a custom logo image?

  8. chuckmall2
    Member
    Posted 1 year ago #

    On the admin options, I went to Appearance/Header/Select Image and just uploaded the image. But somewhere else in an editor there must be a link. I wouldn't even mind having NO link that image. I just can't find out to get it out.

  9. esmi
    Forum Moderator
    Posted 1 year ago #

    You've already uploaded a header image: http://chuckmall.com/wp-content/uploads/2013/01/final-logo.jpg

    You can't upload a second image to the same area using the same upload process.

  10. chuckmall2
    Member
    Posted 1 year ago #

    That was the one. There is only one. I deleted the 2012 logo out of the library.

  11. esmi
    Forum Moderator
    Posted 1 year ago #

    You've added some kind of markup to the header of the theme, yes?

  12. chuckmall2
    Member
    Posted 1 year ago #

    Not knowingly. It could be part of the Simply Works template? Jason Huber, creator of that, tweeted me: "Looks like you have an incorrect path in the image setting and the alt tag text is showing." Looks like it to me too--but don't know how to fix.

  13. chuckmall2
    Member
    Posted 1 year ago #

    This line is in the theme options (assets/swc_theme_options.php)

    // Logo image - No HTML tags - Just image path

    Would deleting that fix it?

  14. chuckmall2
    Member
    Posted 1 year ago #

    Here's a new summary:
    Since I uploaded a new custom logo (which my theme has as an option) a link--and a broken link image--floats over the logo image. I want to remove this, which appears to be some type of markup in the header.

    I use Simply Works Core and Akismet. I went into the Editor and removed this from the header:

    alt="<?php esc_attr(strip_tags(bloginfo('name'))); ?>"

    That didn't do it, but strangely, the broken link image was smaller.
    It looks like I need to go into Appearance/Editor/Header, but I can't figure out which line of HTML to cut. Any help would be greatly appreciated!

  15. alchymyth
    Forum Moderator
    Posted 1 year ago #

    right now it looks like you have a broken/unclosed img tag;
    which also shows in the validation report: http://validator.w3.org/check?uri=http%3A%2F%2Fchuckmall.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

    please post the full code of header.php (how-to: http://codex.wordpress.org/Forum_Welcome#Posting_Code )

  16. chuckmall2
    Member
    Posted 1 year ago #

    Must be this one?
    Line 44, Column 126: unclosed start-tag requires SHORTTAG YES
    …="http://chuckmall.com"><img src="http://chuckmall.com/wp-content/" </div>

    The construct <foo<bar> is valid in HTML (it is an example of the rather obscure “Shorttags” feature) but its use is not recommended. In most cases, this is a typo that you will want to fix. If you really want to use shorttags, be aware that they are not well implemented by browsers.

  17. chuckmall2
    Member
    Posted 1 year ago #

    I don't even know what a shorttag is! Help!

  18. Andrew
    Forum Moderator
    Posted 1 year ago #

    If the issue is urgent, consider hiring someone at http://jobs.wordpress.net

  19. chuckmall2
    Member
    Posted 1 year ago #

    Well, it's not urgent, but it seems like I am trying to get a fairly simple answer. A simple navigation of exactly where to go would help me get to where I can fix it. The validator listed Line 44 as the possible trouble spot, but when one looks in WordPress in the Editor, no line numbers are given--so that's not much help. I even did a Ctrl+F search to find that particular phrase and it doesn't appear.

  20. alchymyth
    Forum Moderator
    Posted 1 year ago #

    you are welcome to post the full code of header.php so somebody can help checking if anything in the code might be wrong

    - http://codex.wordpress.org/Forum_Welcome#Posting_Code

  21. chuckmall2
    Member
    Posted 1 year ago #

    Oh, thank you. Here is:

    <?php
    /*
    Package: Simply Works Core
    Title: Simply Works Core
    Update: 04/10/12
    Author: Jason Huber
    Version: 1.5.8
    Description: Header include file
     */
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head>
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php if (is_home()) { esc_attr(bloginfo('name') ); } elseif (is_category() || is_tag()) { single_cat_title(); echo ' • ' ; esc_attr(bloginfo('name')); } elseif (is_single() || is_page()) { single_post_title(); } else { wp_title('',true); } ?></title>
    <link rel="stylesheet" href="<?php esc_url(bloginfo( 'stylesheet_url' )); ?>" type="text/css" media="screen" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <link rel="shortcut icon" href="<?php esc_url(bloginfo('stylesheet_directory')); ?>/favicon.ico" />
    <?php if ( is_singular() ) wp_enqueue_script('comment-reply'); ?>
    <?php // Retrieve Simply Works Theme Options Data
    global $swc_options;
    $swc_options = get_option('swc_theme_options');
    if ( isset ($swc_options['swc_sidebar']) &&  ($swc_options['swc_sidebar'] == "1") ) { echo "<style type=\"text/css\">#contentarea {float: right; border: 0;}</style>";}
    if ( isset ($swc_options['swc_stylesheet']) &&  ($swc_options['swc_stylesheet'] != "default") ) {?>
    <?php echo wp_enqueue_style("swc_skin", get_template_directory_uri()."/skins/".$swc_options['swc_stylesheet'].".css", false, '1.0', "screen"); ?>
    <?php } ?>
    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    <div id="webpage"><!-- START webpage ID -->
      <div id="header"><!-- START header ID -->
       <div class="wrapper" <?php
        $is_header_image = get_header_image();
    	/// Check to see if the user added a custom image
       if($is_header_image == NULL) {echo "style=\"height: auto\" ";} ?>><!-- START  wrapper CLASS -->
         <div id="headerleft"><!-- Logo area -->
    <?php if ( isset ($swc_options['swc_logo']) &&  ($swc_options['swc_logo']!="") ) {
    ?>
     <div class="logo" <?php // add a little space around the logo WITHOUT a custom header image
       if($is_header_image != NULL) {echo "style=\"padding: 30px 0 0 0;\" ";} ?>><a>"><img src="<?php echo esc_attr(strip_tags($swc_options['swc_logo'])); ?>"  </a></div>
     <?php } else { ?>
         <h1><a>"> <?php esc_attr(strip_tags(bloginfo('name'))); ?> </a></h1> <span><?php esc_attr(strip_tags(bloginfo('description'))); ?></span>
         <?php } ?>
       </div> <!-- End  logo area -->
    <div id="headerright"><!-- START header right ID-->
    	<?php // Widget area for user to place image or ad code using Appearence > Widget > Text
    	  if (is_active_sidebar('header-ad')) : ?>
    	      <?php dynamic_sidebar('header-ad'); ?>
          <?php endif; ?>
       </div> <!-- END  header right ID-->
      <div class="clear"></div>
     </div> <!-- END  wrapper CLASS -->
    </div> <!-- END  header ID -->
    <?php // Menus only show if user create a menu in Appearence > Menu
    if ( function_exists( 'register_nav_menu' ) ) {
    	if ( has_nav_menu( 'primary-menu' ) ) { ?>
    	<div id="navbar">
           <div class="wrapper">
    		 <?php wp_nav_menu( array( 'theme_location' => 'primary-menu', 'fallback_cb' => '') ); ?>
           </div>
    	</div>
        <div class="clear"></div>
    <?php
       }
      	if ( has_nav_menu( 'secondary-menu' ) ) { ?>
    	<div id="subnav">
           <div class="wrapper">
    		<?php wp_nav_menu( array( 'theme_location' => 'secondary-menu', 'fallback_cb' => '') ); ?>
           </div>
    	</div>
        <div class="clear"></div>
    <?php
      }
    }
    ?>

    [Please post code or markup snippets between backticks or use the code button. Or better still - use a pastebin. As it stands, your posted code may now have been permanently damaged/corrupted by the forum's parser.]

  22. chuckmall2
    Member
    Posted 1 year ago #

    That's funny, a couple of lines appear in blue when I posted it. Could that be the area with the problem?

    I thank anyone very much for their help!

  23. alchymyth
    Forum Moderator
    Posted 1 year ago #

    here is a restored version of header.php:

    http://pastebin.com/CGVqnR7t

    is it possible that you have a space character in the logo option?

    'theme options - logo image'

    make sure that field is totally empty.

    (the above header.php version will ignore space characters in the logo image path field)

    however, this will bring the site title and description back into the header. ;-(

    if you do not want that, you need to remove this full section from header.php:

    <div id="headerleft"><!-- Logo area -->
    <?php if ( isset ($swc_options['swc_logo']) &&  (trim($swc_options['swc_logo'])!="") ) {
    ?>
     <div class="logo" <?php // add a little space around the logo WITHOUT a custom header image
       if($is_header_image != NULL) {echo "style=\"padding: 30px 0 0 0;\" ";} ?>><a href="<?php echo home_url(); ?>"><img src="<?php echo esc_attr(strip_tags($swc_options['swc_logo'])); ?>"  alt="<?php esc_attr(strip_tags(bloginfo('name'))); ?>" /></a></div>
     <?php } else { ?>
         <h1><a href="<?php echo home_url(); ?>"> <?php esc_attr(strip_tags(bloginfo('name'))); ?> </a></h1> <span><?php esc_attr(strip_tags(bloginfo('description'))); ?></span>
         <?php } ?>
       </div> <!-- End  logo area -->
  24. chuckmall2
    Member
    Posted 1 year ago #

    Thank you! I simply used the corrected code from the pastebin, and did check the theme options--there was no space there. But the other advice worked, I removed that one segment and now the weird-ass broken link disappeared. Before I had it where clicking on the logo would drive to the homepage, but I'll experiment with how people navigate this way!

    The important thing to me is that that amateur-ish broken link is out of there. "Looks are everything" as they say. Thank you once again, and I've definitely learned something!

Topic Closed

This topic has been closed to new replies.

About this Topic