Forum Replies Created

Viewing 15 replies - 1 through 15 (of 30 total)
  • Zoe

    (@aquickstudy)

    The header image is indeed specified in header.php, in this bit:

    <?php if($custom_logo == 'custom') { ?>
           <img src="<?php bloginfo('template_directory'); ?>/images/uploads/<?php echo $custom_logo_image; ?>" border="0" alt="<?php bloginfo( 'name' ) ?>" />
    <?php } else if($custom_logo == 'default') { ?>
           <img src="<?php bloginfo('template_directory'); ?>/images/logo.png" border="0" alt="<?php bloginfo( 'name' ) ?>" />
    <?php } else { ?>
           <h1><?php bloginfo('name'); ?></h1>
           <div class="description"><?php bloginfo('description'); ?></div>
    <?php } ?>

    Breaking that down, it’s saying:

    <?php if($custom_logo == 'custom') { ?>
           <img src="<?php bloginfo('template_directory'); ?>/images/uploads/<?php echo $custom_logo_image; ?>" border="0" alt="<?php bloginfo( 'name' ) ?>" />

    Checks if you have specified & uploaded a custom logo, if so displays it.

    <?php } else if($custom_logo == 'default') { ?>
           <img src="<?php bloginfo('template_directory'); ?>/images/logo.png" border="0" alt="<?php bloginfo( 'name' ) ?>" />

    If first check fails (no custom image), check if you’ve got it set to the default image – if so, pull logo.png from the theme directory and use that.

    <?php } else { ?>
           <h1><?php bloginfo('name'); ?></h1>
           <div class="description"><?php bloginfo('description'); ?></div>
    <?php } ?>

    If not, then use the blog name & description as text instead of any image.

    To swap it out with CSS, you’ll probably want to replace all of that with an H1 and use CSS background-image to show the right logo for each stylesheet. Alternately, you could possibly create an image sprite as your custom logo, upload it normally through the options, and then use your CSS to show only the appropriate bit for each stylesheet (which wouldn’t require a modification to header.php).

    Of course I feel compelled to point out that this should all be happening in a child theme.

    Zoe

    (@aquickstudy)

    There’s a snippet of code in your loop-single.php file that you need to copy and paste into your loop.php file in the same place.

    Look for:

    <div class="catmet">
         <h6><?php _e('Tags', 'align'); ?></h6>
         <p><?php the_tags('',' , '); ?></p>
    </div>

    You’ll want to add that to loop.php under the similar snippet that shows the Categories.

    Zoe

    (@aquickstudy)

    Are you saying your RSS and styling doesn’t work if you enable the child theme? Just to be sure, because when I click on them now on your site they’re working.

    As far as the child theme not pulling in the parent theme CSS, that’s because you haven’t included the parent theme CSS in your new style.css

    From the Codex, here’s the minimum needed for a child theme that uses the parent theme CSS:

    /*
    Theme Name: Twentyeleven Child
    Description: Child theme for the twentyeleven theme
    Author: Your name here
    Template: twentyeleven
    */
    
    @import url("../twentyeleven/style.css");

    Any rules you write under that will override the parent theme CSS. You cannot put any rules above the @import pulling in the parent stylesheet, so you’ll need to remove the @charset at the top (you probably don’t need it anyway).

    Zoe

    (@aquickstudy)

    Check your URLs under Settings > General to make sure they show the correct URL.

    Zoe

    (@aquickstudy)

    Can you share a link to the site? Have you tried disabling plugins to see if it’s caused by a plugin? What theme are you using? (It doesn’t appear to have a widget-ready sidebar, which seems odd.)

    Zoe

    (@aquickstudy)

    You’re welcome! You may need to add the author link in other theme files, though. Potentially single.php, and if you have any archive.php / category.php / tag.php type files.

    Zoe

    (@aquickstudy)

    If the navigation isn’t going to change, I’d still recommend using a custom menu. It’s the only way I know of off the top of my head to have different menu titles for pages than the actual page title.

    You could also try something like this plugin: http://wordpress.org/extend/plugins/page-menu-editor/ – I haven’t used it so I can’t vouch for it, but it seems like it might do what you need.

    Zoe

    (@aquickstudy)

    Sometimes you need to manually refresh the info Facebook is pulling (if you’ve updated it, for example). You can do that here: http://developers.facebook.com/tools/debug

    Zoe

    (@aquickstudy)

    What’s the full text of sidebar.php (or wherever you’re placing this snippet)? You’ll probably need to use Pastebin if it’s long.

    Zoe

    (@aquickstudy)

    Are you using a custom menu or is it automatically generated? If you’re using a custom menu, you could change the page titles and then edit the name shown in the menu so that the menu still appears consistent. Would obviously be more maintenance than a custom menu, though.

    Zoe

    (@aquickstudy)

    Hi there,

    1. The gap is caused by a bottom margin on the header div in your css. You’ll want to override it in a child theme or using a CSS plugin. Here’s what you have now (just the bit that’s causing the gap):

    .post header, .page header {
    margin-bottom: 20px;
    }

    However, that also impacts other parts of the page, so you’ll want to use this to override it:

    #page-header {
    margin-bottom: 0;
    }

    2. You’ll want to create a child theme and add <?php get_the_author_link(); ?> or <?php $author = get_the_author(); ?> (depending on whether you want it linked or not) into a the post content block. I’m not familiar with the particular theme you’re using to be able to tell you exactly which file.

    Zoe

    (@aquickstudy)

    That thread seems to have more to do with custom post types and the nav menu. Are you using custom post types as well? Is there an addition to your functions.php that would relate to the nav menu?

    The standard Twenty Ten functions.php doesn’t have anything that would cause this, that I know of (no conditionals or special functions other than registering the menu and providing a fallback if no custom menu is specified).

    Zoe

    (@aquickstudy)

    What’s in your header.php? (Probably best to post it using http://pastebin.com/). Any conditionals or anything like that? I’m assuming that based on the other thread you already checked for conditionals in both the header.php and functions.php, but just to be sure…

    I’m not seeing info about the theme in the files – is it a supported theme?

    Zoe

    (@aquickstudy)

    No problem! Usually you wouldn’t have that form code in header.php, it would be called in from searchform.php.

    Zoe

    (@aquickstudy)

    That may have been your problem. You weren’t supposed to replace them, just copy them and add them to the root folder. They should be in BOTH the root and the subdirectory, with the changes only to the file in the root directory.

    You can add a searchform.php file. See here: http://codex.wordpress.org/Function_Reference/get_search_form

    The default code is the first Example.

    You’d want to replace
    <form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
    with
    <form role="search" method="get" id="searchform" action="http://www.a-bike.co.uk">

Viewing 15 replies - 1 through 15 (of 30 total)