WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] broken header image in single post results page (25 posts)

  1. Scott@adszoom
    Member
    Posted 2 years ago #

    using the default 2011 theme and replacing the default header image in the header.php with our .html file works fine in all browsers and pages,,, but we can not get the image to appear in the single post page example: do a search then land on results page the under a post click "read more"
    at that point it then has a broken image at the top with a blue box then a ? mark in the mid of box. Cant figure it out any idea's?

    could it be the way we export it out of fireworks? if so whats the correct setting?

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. First create a child theme for your changes.

  3. Scott@adszoom
    Member
    Posted 2 years ago #

    ya we are using the child hood theme

  4. Scott@adszoom
    Member
    Posted 2 years ago #

    an exact copy of the orig

  5. Scott@adszoom
    Member
    Posted 2 years ago #

    we just copied the theme and pasted in the theme directory why is this wrong?

  6. esmi
    Forum Moderator
    Posted 2 years ago #

    Then that's not a child theme. And it's no longer the default Twenty Eleven theme.

  7. Scott@adszoom
    Member
    Posted 2 years ago #

    ah ok got it so start from scratch download the 2011 then make a child them from that ? do you think that's the issue?

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    Since we have no way of knowing what you have changed, yes.

  9. Scott@adszoom
    Member
    Posted 2 years ago #

    Ok got it read the full thing question thou if im moving over say header.php do i need to ad anything to the header.php file in the child theme at the top like we did in the .css file? if so what and where can i find it?

  10. Scott@adszoom
    Member
    Posted 2 years ago #

    ok no you dont just tested but still having issue with the header image it still is broke on the single page results any ideas? works fine at the top of any other page.

  11. esmi
    Forum Moderator
    Posted 2 years ago #

    Any template file in the child theme will automatically be loaded in preference to the parent's.

  12. Scott@adszoom
    Member
    Posted 2 years ago #

    ya we got it thanks for your help it did not solve the issue thou we are trying to replace the default nave menu with a .html file and we are not having luck on the single post page. If you do a search then click "read more" under the post, the new nav disappears. any idea?

  13. esmi
    Forum Moderator
    Posted 2 years ago #

    So you've replaced

    <nav id="access" role="navigation">
    				<h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
    				<?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
    				<div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>
    				<div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div>
    				<?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
    				<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    			</nav><!-- #access -->

    with what?
    (if it's more than 10 lines, please use a pastebin).

  14. Scott@adszoom
    Member
    Posted 2 years ago #

    Thanks for your help the only thing im changing is

    <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>

    replaced with

    <?php get_template_part('navigation'); ?>

    this points to a file navigation.php it works fine in any page except single.php for some reason?

    it just dispersers

    if i replace the header image NOT the default menu with new nav INSTEAD, its at the top of every page that calls the header but the single.php

    if i just inject the nav.html with no php "call" it works as well but dose not show on the single.php

    PLEASE HELP LOL

  15. esmi
    Forum Moderator
    Posted 2 years ago #

    it works fine in any page except single.php

    Can you link to a single posts so we can see this? Does your custom nav menu contain an javascript?

  16. Scott@adszoom
    Member
    Posted 2 years ago #

    Hi

    no java just .html local host so no link

  17. Scott@adszoom
    Member
    Posted 2 years ago #

    i cant do a css rule because it needs to be click able. can i somehow point the function to the file that i need to render (nav.html)

  18. Scott@adszoom
    Member
    Posted 2 years ago #

    nav.php sorry that contains nav.html

  19. esmi
    Forum Moderator
    Posted 2 years ago #

    i cant do a css rule because it needs to be click able

    Sorry? I don't understand what you mean...

  20. Scott@adszoom
    Member
    Posted 2 years ago #

    is ok just dose not make any sense if the header is called on the single.php then the new nav should appear and just cant figure it out

    we got a new instal of 2011 + the childhood theme so maybe the data base is corrupt? dono do you think it maybe the .html file the detentions are 1000 x 46

  21. esmi
    Forum Moderator
    Posted 2 years ago #

    It sounds like you have a problem in your nav html markup or your CSS. It's nothing to do with the database.

  22. Scott@adszoom
    Member
    Posted 2 years ago #

    no mods with the css because you can't, to my knowledge ( limited ) lol

    make a css rule using .html only images .png,gif correct? if im wrong please show me how?

    please give me example using .html

  23. esmi
    Forum Moderator
    Posted 2 years ago #

    make a css rule using .html only images .png,gif correct?

    Sorry but I have no idea what you mean by that.

  24. Scott@adszoom
    Member
    Posted 2 years ago #

    yes thanks

  25. Scott@adszoom
    Member
    Posted 2 years ago #

    After a lot of pain!!!!!!! the issue is fixed lol After 3 weeks I have overlooked the obvious !!! so the simple fix was the path of the image. Yes i feel stupid 10 years in lol....
     
    Apparently dreamweaver cs 5 will not use the full path when inserting images into the page example: If you drag the image out of your assets folder or however you do it, DW will give you a path like this <img src="images/glass.jpg" width="800" height="729"> This is not the full path and when your pist!!! you cant see things like that ;( so the image path should look like this: 
     
    <img src="wp-content/themes/adszoom/images/glass.jpg" width="800" height="729">

Topic Closed

This topic has been closed to new replies.

About this Topic